/* ==========================================================================
   Basic Minimal Monochrome Theme - Seamless Layout & Timed Release Lock
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #000000 !important;
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.pure-minimal {
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Timed Release Lock Screen Overlay */
.lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lock-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lock-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.lock-icon {
    font-size: 2.4rem;
    color: #ffffff;
    opacity: 0.85;
}

/* Countdown Grid Unit Styling */
.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 4px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
}

.unit-val {
    font-size: 2.2rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 1px;
}

.unit-lbl {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

.unit-colon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    margin-top: -14px;
}

.lock-sub-note {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.3px;
    margin-top: 8px;
}

/* Minimal Photo Progress Counter Badge */
.photo-counter-badge {
    position: fixed;
    top: 18px;
    right: 18px;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.photo-counter-badge.visible {
    opacity: 1;
}

.photo-counter-badge #currentPhotoNum {
    color: #ffffff;
    font-weight: 600;
}

/* Basic Intro Overlay */
.headphone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.headphone-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.headphone-card {
    max-width: 420px;
    width: 100%;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.headphone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.headphone-svg-icon {
    width: 52px;
    height: 52px;
    opacity: 0.95;
}

.headphone-card h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

/* 5-Second Countdown Timer */
.timer-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: #222222;
    stroke-width: 5;
}

.timer-progress {
    fill: none;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 263.89;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
}

/* "Başlat" Button */
.btn-start-experience {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 14px 44px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-start-experience.hidden {
    display: none !important;
}

.btn-start-experience:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Main Container Layout */
.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

/* Card Stack Container & Smooth Entrance Animation */
.card-stack-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.card-stack-wrapper.entrance-anim {
    animation: stackEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stackEntrance {
    0% {
        opacity: 0;
        transform: scale(0.84) translateY(25px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

/* Dynamic Sliding Swipe Gesture Overlay */
.large-swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 3.2rem;
    pointer-events: none;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95));
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.large-swipe-hint.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.swipe-hand-anim {
    display: inline-block;
    animation: swipeLeftMotion 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes swipeLeftMotion {
    0% {
        transform: translateX(80px) rotate(15deg);
        opacity: 0;
    }
    20% {
        transform: translateX(60px) rotate(10deg);
        opacity: 1;
    }
    80% {
        transform: translateX(-80px) rotate(-15deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-120px) rotate(-20deg);
        opacity: 0;
    }
}

.card-stack-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Borderless Direct Photo Card */
.stack-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    user-select: none;
    touch-action: none;
    cursor: grab;
    will-change: transform, opacity, filter;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, filter 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-card:active {
    cursor: grabbing;
}

/* Stack depth layers & blur logic */
.stack-card.card-top {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px) brightness(1);
}

.stack-card.card-next {
    transform: translate(-50%, calc(-50% + 10px)) scale(0.96) rotate(-1deg);
    opacity: 0.82;
    filter: blur(10px) brightness(0.6);
}

.stack-card.card-third {
    transform: translate(-50%, calc(-50% + 20px)) scale(0.92) rotate(1deg);
    opacity: 0.55;
    filter: blur(18px) brightness(0.35);
}

.stack-card.card-hidden {
    transform: translate(-50%, calc(-50% + 28px)) scale(0.88);
    opacity: 0;
    filter: blur(24px) brightness(0.2);
    pointer-events: none;
}

/* Fly Off Animations */
.stack-card.fly-left {
    transform: translate(-180vw, -50%) rotate(-25deg) !important;
    opacity: 0 !important;
    filter: blur(4px) !important;
    transition: transform 0.45s ease-out, opacity 0.4s ease-out, filter 0.4s ease-out !important;
}

.stack-card.fly-right {
    transform: translate(180vw, -50%) rotate(25deg) !important;
    opacity: 0 !important;
    filter: blur(4px) !important;
    transition: transform 0.45s ease-out, opacity 0.4s ease-out, filter 0.4s ease-out !important;
}

/* Uncropped Pure Photo Display without Borders or Background Frame */
.photo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 88vh;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.photo-wrapper img {
    max-width: 95vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Minimalist Short Final Note Container with Cinematic Floating Reveal */
.final-note-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 340px;
    width: 90%;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
}

.final-note-card:not(.hidden) {
    animation: finalNoteEntrance 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.final-note-card.hidden {
    display: none;
}

@keyframes finalNoteEntrance {
    0% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 25px)) scale(0.92);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0px);
    }
}

.final-note-card p {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
}
