/**
 * Lyvre Play - Styles d'introduction luxueuse
 * Interface d'entrée du lecteur d'histoires interactives
 */

/* ==========================================================================
   RESET ET BASE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #000000 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

.intro-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: backgroundRotation 60s linear infinite;
}

@keyframes backgroundRotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.content {
    text-align: center;
    z-index: 10;
    position: relative;
    height: 100vh;
    animation: contentCounterRotation 60s linear infinite;
}

@keyframes contentCounterRotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* ==========================================================================
   PARTICULES
   ========================================================================== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.top-section {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    text-align: center;
}

.bottom-section {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    text-align: center;
}

/* ==========================================================================
   LOGO
   ========================================================================== */

.logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #ffffff;
    padding: 25px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.logo.beating {
    animation: logoBeat 2s ease-in-out infinite;
}

@keyframes logoBeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */

.title {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 8px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    color: #ffffff;
}

.title .word {
    display: inline-block;
    margin-right: 20px;
    opacity: 0;
    transform: translateY(100px);
}

.title .highlight {
    color: #f39c12;
    font-weight: 300;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(30px);
}

.subtitle {
    transition: all 1.2s ease;
}

.subtitle.highlighting {
    color: #f39c12;
    text-shadow: 
        0 0 10px rgba(243, 156, 18, 0.8),
        0 0 20px rgba(243, 156, 18, 0.4),
        0 0 30px rgba(243, 156, 18, 0.2);
    transform: scale(1.02);
}

.welcome-text {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    width: 100vw;
    text-align: center;
    white-space: nowrap;
}

.welcome-text .word {
    display: inline-block;
    margin-right: 8px;
    opacity: 0;
    transform: translateY(30px);
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */

.buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
}

.btn {
    padding: 18px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: #f39c12;
    border-color: #f39c12;
    color: #000000;
}

.btn-primary:hover {
    background: #e67e22;
    border-color: #e67e22;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS CSS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        letter-spacing: 4px;
        margin-bottom: 20px;
    }
    
    .title .word {
        margin-right: 15px;
    }
    
    .logo {
        width: 120px;
        height: 120px;
        padding: 20px;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
        max-width: 400px;
        margin: 0 auto 25px;
        line-height: 1.6;
    }
    
    .buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        padding: 16px 30px;
        font-size: 0.85rem;
    }
    
    .top-section {
        top: 12%;
    }
    
    .bottom-section {
        bottom: 12%;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }
    
    .title .word {
        margin-right: 10px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
        padding: 15px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
        max-width: 320px;
        margin: 0 auto 20px;
        line-height: 1.5;
    }
    
    .buttons {
        gap: 15px;
        max-width: 280px;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 0.8rem;
    }
    
    .top-section {
        top: 10%;
    }
    
    .bottom-section {
        bottom: 10%;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .title .word {
        margin-right: 8px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
        padding: 12px;
    }
    
    .subtitle {
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .buttons {
        max-width: 250px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.75rem;
    }
}
