@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=VT323&family=Press+Start+2P&display=swap');

/* === 8-Bit Retro Inspired Styles === */

body {
    background-color: #0b0b12; /* Dark retro bg */
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 160px 120px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 200px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 220px 140px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 250px 200px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 300px 60px, #ffffff, rgba(0,0,0,0));
    background-size: 350px 350px;
    color: #e0e0e0;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin: 0;
    padding: 0;
    padding-left: 100px; /* Space for Sidebar */
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (max-width: 768px) {
    body {
        padding-left: 0;
        padding-bottom: 140px; /* Increased space for Bottom Nav + Popouts + Safe Area */
    }
}

/* Auth Pages Centering */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 100%;
}

.auth-box {
    background: #1a1a24;
    border: 4px solid #fff;
    box-shadow: 10px 10px 0px #ff00ea;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
}

.auth-box form {
    display: flex;
    flex-direction: column;
}

.auth-box label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #ffd700;
    margin-bottom: 10px;
    text-transform: uppercase;
    margin-top: 20px;
}

.auth-box input, .auth-box select {
    background: #000;
    border: 4px solid #fff;
    color: #fff;
    padding: 15px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.auth-box input:focus, .auth-box select:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.auth-box .btn {
    margin-top: 25px;
    width: 100%;
    text-align: center;
}

.auth-box p {
    font-size: 1.2rem;
    color: #86868b;
    margin-top: 0;
}

.auth-box a {
    color: #39ff14;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-align: center;
    display: block;
    margin-top: 20px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.auth-box a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
}

/* Retro Guide Character */
.retro-guide {
    display: flex;
    flex-direction: row-reverse; /* Emoji on left, message on right */
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.speech-bubble {
    background: #fff;
    color: #000;
    padding: 15px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    border-radius: 0;
    border: 4px solid #ff00ea;
    box-shadow: 4px 4px 0px #000;
    position: relative;
    text-align: center;
    min-width: 200px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    left: -19px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 15px 15px 15px 0;
    border-style: solid;
    border-color: transparent #ff00ea transparent transparent;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
    z-index: 1;
}

.sprite {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(4px 4px 0px #ff00ea);
}

.apple-container, .awwwards-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography Overrides */
h1, h2, h3, h4, .apple-title-pro, .awwwards-title, .apple-eyebrow, .profile-name, .feature-subtitle, .confessions-title {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.retro-accent {
    font-family: 'Press Start 2P', cursive;
}

/* Main Section */
.apple-main-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
}

/* Left: Gallery */
.apple-gallery-wrapper {
    flex: 1 1 50%;
    position: sticky;
    top: 40px;
    height: 70vh;
    background: #111;
    border: 4px solid #fff;
    box-shadow: 10px 10px 0px #00f0ff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.apple-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    scrollbar-width: none;
}
.apple-gallery::-webkit-scrollbar { display: none; }

.gallery-img {
    flex: 0 0 100%;
    scroll-snap-align: center;
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: contrast(1.2) sepia(0.2); 
}

/* Right: Information */
.apple-info {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
}

.apple-eyebrow {
    color: #ffd700;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.apple-title-pro {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 30px 0;
    text-shadow: 4px 4px 0px #ff00ea;
    line-height: 1.5;
}

.apple-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #a0a0b0;
    margin-bottom: 50px;
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 1.2rem;
}

.apple-specs {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    border-top: 4px dashed #333;
    padding-top: 30px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-value {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #00f0ff;
    text-shadow: 2px 2px 0px #000;
}

.spec-label {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 10px;
    text-transform: uppercase;
}

.apple-users-list {
    background: #1a1a24;
    border: 4px solid #fff;
    box-shadow: 6px 6px 0px #ff00ea;
    padding: 30px;
}

.apple-users-list h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.apple-users-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
}
.apple-users-list ul::-webkit-scrollbar {
    width: 10px;
}
.apple-users-list ul::-webkit-scrollbar-track {
    background: #000;
    border-left: 2px solid #fff;
}
.apple-users-list ul::-webkit-scrollbar-thumb {
    background: #ff00ea;
    border: 2px solid #000;
}

.apple-users-list li {
    padding: 12px 0;
    border-bottom: 4px dashed #333;
    font-size: 1rem;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.apple-users-list li:last-child {
    border-bottom: none;
}

.user-handle {
    color: #00f0ff;
    font-size: 1.2rem;
    margin-left: 10px;
}

/* More Features Section */
.apple-more-features {
    text-align: center;
    padding: 100px 0;
    border-top: 4px dashed #333;
}

.apple-more-features h2 {
    font-size: 1.5rem;
    color: #39ff14;
    margin: 0;
    text-shadow: 4px 4px 0px #000;
}

.feature-subtitle {
    font-size: 1rem;
    color: #e0e0e0;
    margin-top: 20px;
    margin-bottom: 80px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.dark-card {
    background: #1a1a24;
    border: 4px solid #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 8px 8px 0px #ff00ea;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
}

.dark-card a {
    text-decoration: none;
}

.dark-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #ff00ea;
}

.dark-card h3 {
    font-size: 1rem;
    color: #ffd700;
    margin: 0 0 20px 0;
    text-align: center;
}

.dark-card p {
    color: #e0e0e0;
    font-size: 1rem;
    margin: 0;
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

/* Awwwards Home Page Specific Styles -> Converted to 8-Bit */
.awwwards-home {
    padding-top: 80px;
}

.home-header {
    text-align: center;
    margin-bottom: 80px;
}

.awwwards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 50px;
}

.awwwards-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.awwwards-card {
    background: #1a1a24;
    border: 4px solid #fff;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 8px 8px 0px #39ff14;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.awwwards-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #39ff14;
}

.awwwards-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid #fff;
}

.awwwards-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.2) grayscale(0.2);
}

.awwwards-card-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.awwwards-title {
    font-size: 1.1rem;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.5;
    text-shadow: 2px 2px 0px #000;
}

.awwwards-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 4px dashed #555;
    padding-top: 20px;
}

.awwwards-users {
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: 500;
}

.awwwards-arrow {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Chakra Petch', sans-serif;
}

/* General Buttons */
button, .btn, .apple-btn-buy, .apple-btn-secondary, .submit-btn {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    background: #ff00ea;
    color: #000;
    border: 4px solid #fff;
    padding: 15px 20px;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.5);
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover, .apple-btn-buy:hover, .apple-btn-secondary:hover, .submit-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    background: #ff00a0;
}

/* Confessions CSS */
.confessions-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 180px; /* even more padding for safety */
}

.confessions-header {
    text-align: center;
    margin-bottom: 50px;
}

.confessions-title {
    font-size: 2rem;
    color: #ff00ea;
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 15px;
}

.confessions-subtitle {
    font-size: 1rem;
    color: #a0a0b0;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.confessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.confession-card {
    background: #1a1a24;
    border: 4px solid #fff;
    box-shadow: 6px 6px 0px #39ff14;
    padding: 30px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.confession-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px #39ff14, 6px 6px 0px #fff;
    z-index: 2;
}

.confession-text {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 1.2rem;
}

.confession-footer {
    display: flex;
    justify-content: space-between;
    border-top: 4px dashed #555;
    padding-top: 15px;
}

.confession-author, .confession-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00f0ff;
    font-family: 'Chakra Petch', sans-serif;
}

.confession-form-container {
    background: #111;
    border: 4px solid #fff;
    box-shadow: 8px 8px 0px #ffd700;
    padding: 20px 30px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 860px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.confession-form-container:focus-within {
    box-shadow: 0 0 15px #ffd700, 8px 8px 0px #fff;
}

.input-wrapper {
    display: flex;
    gap: 20px;
}

.confession-textarea {
    flex: 1;
    background: #000;
    border: 4px solid #fff;
    color: #fff;
    padding: 15px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    resize: none;
}
.confession-textarea:focus {
    outline: none;
    border-color: #ff00ea;
}

@media (max-width: 900px) {
    .apple-main-section {
        flex-direction: column;
        gap: 30px;
    }
    .apple-gallery-wrapper {
        position: relative;
        top: 0;
        height: 50vh;
        flex: 1 1 100%;
    }
    .apple-info {
        padding-top: 10px;
        flex: 1 1 100%;
    }
    .apple-title-pro {
        font-size: 1.5rem;
    }
    .input-wrapper {
        flex-direction: row; /* Keep it horizontal for compact sticky bar */
        gap: 10px;
    }
    .confession-form-container {
        padding: 10px 15px;
        bottom: 85px; /* Floats above the 70px navigation bar */
        width: calc(100% - 20px);
        transform: translateX(-50%);
        z-index: 6000; /* Ensure it's above everything including nav */
    }
    .submit-btn {
        padding: 10px;
    }
    .btn-text {
        display: none; /* Only show icon on mobile to save space */
    }
    .btn-icon {
        font-size: 1.2rem;
    }
}

/* === Side Panel (Instagram Style Navigation) === */
.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 90px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    gap: 25px;
    padding: 0;
    background: #000;
    border-right: 4px solid #fff;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

.side-panel-item {
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    gap: 8px;
}

.side-panel-item:hover {
    background: rgba(57, 255, 20, 0.1);
    color: #39ff14;
}

.side-panel-item.active {
    color: #ff00ea;
    background: rgba(255, 0, 234, 0.1);
    text-shadow: 0 0 10px rgba(255, 0, 234, 0.5);
}

.side-panel-item i {
    font-size: 1.6rem;
}

.side-panel-text {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .side-panel {
        top: auto;
        bottom: 0;
        left: 0;
        height: 70px;
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-top: 4px solid #fff;
        padding: 0;
        justify-content: space-around;
        align-items: center;
    }
    .nav-logo {
        display: none;
    }
    .side-panel-item {
        width: auto;
        height: 100%;
        flex: 1;
        border-left: none;
        border-bottom: 5px solid transparent;
        padding: 10px 0;
    }
    .side-panel-item.active {
        border-left: none;
        border-bottom-color: #ff00ea;
    }
    .radio-now-playing {
        left: 50%;
        bottom: 85px;
        top: auto;
        transform: translateX(-50%);
    }
}


/* === Night City Parallax Background === */
.parallax-city-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #050510;
}

.parallax-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200vw; /* Double width for seamless scrolling */
    height: 100vh;
    background-repeat: repeat-x;
    background-position: bottom left;
    background-size: auto 100%;
}

.parallax-layer.stars {
    background-image: url('/static/city_parallax/stars.svg');
    animation: scrollParallax 150s linear infinite;
    height: 100%;
    background-position: top left;
}

.parallax-layer.city-back {
    background-image: url('/static/city_parallax/city_back.svg');
    animation: scrollParallax 80s linear infinite;
    opacity: 0.5;
}

.parallax-layer.city-mid {
    background-image: url('/static/city_parallax/city_mid.svg');
    animation: scrollParallax 40s linear infinite;
    opacity: 0.8;
}

.parallax-layer.city-front {
    background-image: url('/static/city_parallax/city_front.svg');
    animation: scrollParallax 15s linear infinite;
}

@keyframes scrollParallax {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Make auth container transparent so background shows */
.auth-container {
    position: relative;
    z-index: 1;
}

.auth-box {
    background: rgba(26, 26, 36, 0.85); /* Slightly transparent to see city behind */
    backdrop-filter: blur(4px); /* A little blur for readability */
}


/* === Elevator Intro Scene === */
body.auth-page {
    /* No overflow hidden, allow scrolling */
}

.elevator-scene {
    width: 100%;
    /* Let normal document flow handle the 200vh height */
    z-index: 2;
    overflow-x: hidden;
}

.sky-level {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sky-logo {
    font-family: "Press Start 2P", cursive;
    font-size: 4rem;
    color: #ff00ea;
    text-shadow: 6px 6px 0px #00f0ff;
    animation: float 3s ease-in-out infinite;
    text-align: center;
}

.sky-subtitle {
    font-family: "VT323", monospace;
    font-size: 2rem;
    color: #fff;
    margin-top: 20px;
    opacity: 0.8;
}

.ground-level {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-bottom: 100px; /* Space for the street */
}

.street {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #111;
    border-top: 8px solid #333;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 50px, #555 50px, #555 100px);
    background-size: 150px 10px;
    background-position: bottom;
    background-repeat: repeat-x;
    z-index: 10;
}

.sprite-walker {
    position: absolute;
    bottom: 10px;
    font-size: 2.5rem;
    filter: drop-shadow(4px 4px 0 #000);
    z-index: 11;
}

.human {
    animation: walkRight 25s linear infinite;
    bottom: 15px;
}

.cat {
    animation: walkLeft 18s linear infinite;
    bottom: 5px;
    font-size: 2rem;
}

.rat {
    animation: walkRight 12s linear infinite;
    bottom: 2px;
    font-size: 1.5rem;
}

@keyframes walkRight {
    0% { left: -10vw; transform: scaleX(1); }
    100% { left: 110vw; transform: scaleX(1); }
}

@keyframes walkLeft {
    0% { right: -10vw; transform: scaleX(1); }
    100% { right: 110vw; transform: scaleX(1); }
}

