/* ========================================
   Choice Page Styles
   Edition Selection
   ======================================== */

/* ========================================
   Page Specific
   ======================================== */
.choice-page {
    overflow: hidden;
}

/* Reuse landing page background */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFFFFF;
    box-shadow:
        100px 200px #FFFFFF,
        200px 100px #FFFFFF,
        300px 300px #FFFFFF,
        400px 150px #FFFFFF,
        150px 400px #FFFFFF,
        500px 250px #FFFFFF,
        250px 500px #FFFFFF,
        350px 450px #FFFFFF,
        450px 350px #FFFFFF,
        100px 500px #FFFFFF,
        500px 100px #FFFFFF,
        200px 350px #00FFFF,
        350px 200px #FF1493,
        450px 450px #39FF14,
        50px 50px #FFFF00,
        550px 550px #FF00FF;
    animation: twinkle 3s infinite ease-in-out;
}

.stars::after {
    animation-delay: 1.5s;
}

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

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0, 255, 255, 0.1) 50px,
            rgba(0, 255, 255, 0.1) 52px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 20, 147, 0.1) 50px,
            rgba(255, 20, 147, 0.1) 52px
        );
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ========================================
   Container
   ======================================== */
.choice-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 50px;
}

/* ========================================
   Header
   ======================================== */
.choice-header {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.choice-title {
    font-size: 32px;
    color: #FFFFFF;
    text-shadow:
        0 0 5px #FF00FF,
        0 0 15px #FF00FF;
        
        
    animation: titlePulse 2s ease-in-out infinite;
    line-height: 1.4;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.95;
    }
}

/* ========================================
   Edition Buttons
   ======================================== */
.edition-buttons {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edition-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 4px solid;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.edition-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Family Edition Button */
.family-btn {
    border-color: #39FF14;
    box-shadow:
        0 0 20px rgba(57, 255, 20, 0.5),
        inset 0 0 20px rgba(57, 255, 20, 0.1);
}

.family-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 30px rgba(57, 255, 20, 0.8),
        0 0 40px rgba(57, 255, 20, 0.6),
        inset 0 0 30px rgba(57, 255, 20, 0.2);
}

.family-btn:active {
    transform: scale(0.95);
}

/* Adult Edition Button */
.adult-btn {
    border-color: #FF1493;
    box-shadow:
        0 0 20px rgba(255, 20, 147, 0.5),
        inset 0 0 20px rgba(255, 20, 147, 0.1);
}

.adult-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 30px rgba(255, 20, 147, 0.8),
        0 0 40px rgba(255, 20, 147, 0.6),
        inset 0 0 30px rgba(255, 20, 147, 0.2);
}

.adult-btn:active {
    transform: scale(0.95);
}

/* Button Content */
.btn-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.btn-title {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 24px;
    color: #FFFFFF;
    text-shadow:
        0 0 5px #FFFFFF,
        0 0 10px currentColor;
    margin-bottom: 8px;
}

.family-btn .btn-title {
    color: #39FF14;
    text-shadow:
        0 0 5px #39FF14,
        0 0 12px #39FF14;
}

.adult-btn .btn-title {
    color: #FF1493;
    text-shadow:
        0 0 5px #FF1493,
        0 0 12px #FF1493;
}

.btn-subtitle {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    color: #A0E7FF;
    text-shadow: 0 0 5px #A0E7FF;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Small mobile */
@media (max-width: 360px) {
    .choice-title {
        font-size: 24px;
    }

    .btn-icon {
        font-size: 36px;
    }

    .btn-title {
        font-size: 18px;
    }

    .btn-subtitle {
        font-size: 10px;
    }

    .edition-btn {
        padding: 25px 30px;
        min-height: 130px;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .choice-title {
        font-size: 40px;
    }

    .edition-buttons {
        flex-direction: row;
        gap: 40px;
        max-width: 900px;
    }

    .edition-btn {
        flex: 1;
        min-height: 200px;
    }

    .btn-icon {
        font-size: 64px;
    }

    .btn-title {
        font-size: 28px;
    }

    .btn-subtitle {
        font-size: 14px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .choice-title {
        font-size: 48px;
    }

    .btn-icon {
        font-size: 72px;
    }

    .btn-title {
        font-size: 32px;
    }

    .btn-subtitle {
        font-size: 16px;
    }

    .edition-btn {
        min-height: 220px;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.edition-btn:focus {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .choice-title,
    .edition-btn::before,
    .stars::before,
    .stars::after,
    .grid-lines {
        animation: none !important;
    }
}
