/* ============================
   SECTION 1: DE FAÇADE
   ============================ */

#facade {
    background: linear-gradient(180deg, #ffeef5 0%, #f0f8ff 50%, #fffaf0 100%);
    padding: var(--space-lg) var(--space-sm);
    position: relative;
    overflow: hidden;
}

.facade-header {
    text-align: center;
    padding: var(--space-md) 0 var(--space-lg);
    color: #333;
}

.facade-header .app-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.facade-header .app-tagline {
    font-size: 11px;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}


.post-feed {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    will-change: transform, opacity;
    transform: translateZ(0);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
}

.post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-pastel-pink), var(--color-sky-blue));
    flex-shrink: 0;
}

.post-avatar.av2 { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.post-avatar.av3 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.post-avatar.av4 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.post-avatar.av5 { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.post-avatar.av6 { background: linear-gradient(135deg, #fccb90, #d57eeb); }

.post-username {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.post-location {
    font-size: 11px;
    color: #999;
}

.post-options {
    margin-left: auto;
    font-size: 18px;
    color: #ccc;
    cursor: default;
}

.post-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #FFB6C1 0%, #87CEEB 100%);
    position: relative;
    overflow: hidden;
}

.post-image.img2 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.post-image.img3 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.post-image.img4 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.post-image.img5 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.post-image.img6 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-image-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.post-actions {
    padding: 10px 16px 6px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.post-action-btn {
    font-size: 22px;
    cursor: default;
    transition: transform 0.1s ease;
    user-select: none;
}

.post-likes {
    padding: 0 16px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.post-likes .like-count {
    display: inline;
}

.post-caption {
    padding: 0 16px 6px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.post-caption strong {
    font-weight: 600;
}

.post-comments {
    padding: 0 16px 8px;
    font-size: 12px;
    color: #aaa;
}

.post-timestamp {
    padding: 0 16px 14px;
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shadow-anomaly {
    box-shadow: -4px 8px 30px rgba(0,0,0,0.18), 2px -3px 15px rgba(100,0,200,0.04);
}


/* ============================
   SECTION 2: DE BREUK
   ============================ */

#breuk {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffeef5 0%, #f0f8ff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frozen-post-wrapper {
    max-width: 480px;
    width: 100%;
    padding: 0 var(--space-sm);
    position: relative;
    z-index: 2;
}

.crack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.crack-overlay svg {
    width: 100%;
    height: 100%;
}

.loading-fail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loading-fail.visible {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(100,100,100,0.2);
    border-top-color: #999;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.fail {
    border-color: rgba(255,100,100,0.4);
    border-top-color: #ff4444;
    animation: spinFail 0.3s ease-out forwards;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinFail {
    to { transform: rotate(540deg); border-color: rgba(255,0,0,0.6); }
}

.loading-fail-text {
    font-size: 12px;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s;
}

.loading-fail-text.visible {
    opacity: 1;
}

.rgb-split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    mix-blend-mode: screen;
}


/* ============================
   SECTION 3: DE OVERLOAD
   ============================ */

#overload {
    position: relative;
    min-height: 400vh;
    background: #050510;
    overflow: hidden;
}

.overload-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.overload-bg-pulse {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,0,60,0.08) 0%, transparent 70%);
    animation: bgPulse 3s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.flying-texts-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.flying-text {
    position: absolute;
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    will-change: transform;
    pointer-events: none;
    user-select: none;
}

.flying-text.academic { color: rgba(255, 200, 100, 0.9); }
.flying-text.social { color: rgba(150, 220, 255, 0.9); }
.flying-text.appearance { color: rgba(255, 150, 180, 0.9); }
.flying-text.family { color: rgba(200, 150, 255, 0.9); }
.flying-text.fomo { color: rgba(100, 255, 200, 0.85); }
.flying-text.self-doubt { color: rgba(255, 80, 80, 0.95); font-weight: 700; }

.contradictions-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    pointer-events: none;
}

.contradiction-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    opacity: 0;
}

.contradiction-left,
.contradiction-right {
    font-family: var(--font-sans);
    font-size: clamp(14px, 2.5vw, 22px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    will-change: transform;
}

.contradiction-left { color: rgba(255, 255, 255, 0.9); }
.contradiction-right { color: rgba(255, 100, 100, 0.9); }

.contradiction-arrow {
    font-size: 20px;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
    margin: 0 1rem;
}

.counters-container {
    position: absolute;
    top: 10%;
    right: 3%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 5;
}

.counter-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 14px;
    text-align: right;
    backdrop-filter: blur(4px);
    min-width: 160px;
}

.counter-label {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 2px;
}

.counter-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-warning-yellow);
    display: block;
}

.counter-box.danger .counter-value {
    color: var(--color-red);
    animation: counterDanger 0.5s steps(2) infinite;
}

@keyframes counterDanger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notifications-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 340px;
    padding: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 3px solid var(--color-electric-blue);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    transform: translateX(-120%);
    opacity: 0;
    will-change: transform, opacity;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification.urgent {
    border-left-color: var(--color-red);
    animation: notifUrgent 1s steps(2) infinite;
}

@keyframes notifUrgent {
    0%, 100% { background: rgba(255,0,0,0.08); }
    50% { background: rgba(255,0,0,0.15); }
}

.notification .notif-icon { font-size: 16px; flex-shrink: 0; }

.overload-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 30;
}

.overload-flash {
    position: fixed;
    inset: 0;
    background: red;
    opacity: 0;
    pointer-events: none;
    z-index: 200;
}


/* ============================
   SECTION 4: SPLITSCREEN
   ============================ */

#splitscreen {
    background: #0a0a1e;
}

.split-section-title {
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    font-family: var(--font-serif);
    font-size: clamp(20px, 4vw, 36px);
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

.split-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.split-divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.08);
    transform: translateX(-50%);
    z-index: 2;
}

.split-label {
    position: absolute;
    top: 24px;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    z-index: 3;
}

.split-label.label-outside { left: calc(25% - 40px); transform: translateX(-50%); }
.split-label.label-inside { right: calc(25% - 40px); transform: translateX(50%); }

.outside {
    background: linear-gradient(135deg, #FFE5E5 0%, #E5F3FF 100%);
    padding: var(--space-lg) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.inside {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    padding: var(--space-lg) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    position: relative;
}

/* Chat bubbles */
.chat-container {
    max-width: 280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    background: #fff;
    border-radius: 18px;
    padding: 10px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 80%;
}

.chat-bubble.from-them {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    background: #f0f0f0;
    color: #333;
}

.chat-bubble.from-me {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: #0084FF;
    color: #fff;
}

.chat-bubble .sender {
    font-size: 10px;
    opacity: 0.6;
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-bubble .message {
    font-size: 14px;
    line-height: 1.4;
}

.thought-storm {
    max-width: 280px;
}

.thought {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    opacity: 0;
    transform: translateY(10px);
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
}

.thought::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255,100,100,0.6);
}

.thought.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mask-text {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-style: italic;
    opacity: 0;
}

/* Instagram post in split */
.ig-post-split {
    max-width: 280px;
    width: 100%;
}

.ig-post-split .ig-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.ig-post-split .ig-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.ig-post-split .ig-stats {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.ig-post-split .ig-caption {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.reality-list {
    max-width: 280px;
}

.reality-item {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateX(-10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reality-item::before {
    content: '›';
    color: rgba(255,200,100,0.7);
    flex-shrink: 0;
}

.reality-item.feeling {
    color: rgba(255,150,150,0.8);
    font-style: italic;
}

.reality-item.feeling::before {
    content: '♡';
    color: rgba(255,100,100,0.5);
}

.reality-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Achievement split */
.achievement-card {
    max-width: 280px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: var(--space-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.achievement-emoji {
    font-size: 48px;
    margin-bottom: 10px;
}

.achievement-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.achievement-card p {
    font-size: 13px;
    color: #666;
}

.cost-list {
    max-width: 280px;
}

.cost-item {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cost-item::before {
    content: '+';
    color: rgba(255,100,100,0.6);
    font-weight: 700;
}

.cost-question {
    margin-top: 1.5rem;
    font-family: var(--font-serif);
    font-size: 18px;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    opacity: 0;
}

.cost-item.visible, .cost-question.visible {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* Comparison split */
.perfect-profile {
    max-width: 280px;
    width: 100%;
}

.profile-header-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
}

.profile-avatar-big {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fccb90, #d57eeb);
    border: 3px solid transparent;
    background-clip: padding-box;
    flex-shrink: 0;
}

.profile-name { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.profile-handle { font-size: 12px; color: #999; }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
    background: #f0f0f0;
}

.profile-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
}

.profile-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-caption-card {
    background: #fff;
    padding: 10px 16px;
    border-radius: 0 0 12px 12px;
}

.profile-caption-card p {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.comparison-thoughts {
    max-width: 280px;
}

.negative-thought {
    font-family: var(--font-mono);
    font-size: 14px;
    color: rgba(255,120,120,0.85);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(8px);
    line-height: 1.5;
}

.small-truth {
    margin-top: 1.5rem;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    font-style: italic;
    opacity: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.negative-thought.visible, .small-truth.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


/* ============================
   SECTION 5: DE STILTE
   ============================ */

#stilte {
    min-height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-lg) var(--space-md);
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='none' stroke='white' stroke-width='1'/><circle cx='12' cy='12' r='4' fill='white'/></svg>") 12 12, auto;
}

.breath-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 6s ease-in-out infinite;
}

.breath-circle-2 {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 6s ease-in-out infinite 1s;
}

@keyframes breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

.silence-container {
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
}

.question {
    font-family: var(--font-serif);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 2;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.credits {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    font-family: var(--font-sans);
    line-height: 1.8;
    opacity: 0;
    z-index: 2;
}

.credits p {
    margin: 0.15rem 0;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 767px) {
    .split-example {
        grid-template-columns: 1fr;
    }

    .outside, .inside {
        min-height: 60vh;
        padding: var(--space-md) var(--space-sm);
    }

    .split-divider {
        display: none;
    }

    .outside {
        border-bottom: 2px solid rgba(0,0,0,0.1);
    }

    .split-label.label-outside { left: 50%; transform: translateX(-50%); }
    .split-label.label-inside { right: auto; left: 50%; transform: translateX(-50%); }

    .counters-container {
        display: none;
    }

    .notifications-container {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .post-feed {
        padding: 0 0.5rem;
    }

    .facade-clock {
        font-size: 10px;
        padding: 2px 6px;
    }
}
