/**
 * Welcome Page - Le Mot du Professeur
 * ====================================
 */

/* =============================================
   PAGE CONTAINER
   ============================================= */

.welcome-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.welcome-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.welcome-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(212, 175, 125, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 20%, rgba(139, 125, 96, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF7D' stroke-opacity='0.03'%3E%3Crect x='25' y='25' width='50' height='50' transform='rotate(0 50 50)'/%3E%3Crect x='25' y='25' width='50' height='50' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3C/g%3E%3C/svg%3E"),
        var(--bg-primary);
}

/* =============================================
   CONTAINER
   ============================================= */

.welcome-container {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-8);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* =============================================
   CALLIGRAPHY
   ============================================= */

.welcome-calligraphy {
    font-family: var(--font-arabic);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
    text-shadow: 0 0 40px var(--accent-glow);
    letter-spacing: 0;
    line-height: 1.2;
    animation: calligraphyGlow 4s ease-in-out infinite;
}

@keyframes calligraphyGlow {
    0%, 100% {
        text-shadow: 0 0 30px var(--accent-glow);
    }
    50% {
        text-shadow: 0 0 50px var(--accent-glow), 0 0 80px rgba(212, 175, 125, 0.15);
    }
}

/* =============================================
   DIVIDER
   ============================================= */

.welcome-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin: 0 auto var(--space-6);
    max-width: 300px;
}

.welcome-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
}

.welcome-divider__ornament {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    animation: ornamentSpin 20s linear infinite;
}

.welcome-divider__ornament svg {
    width: 100%;
    height: 100%;
}

@keyframes ornamentSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================
   AVATAR
   ============================================= */

.welcome-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-primary), var(--ochre));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px var(--accent-glow);
}

.welcome-avatar svg {
    width: 36px;
    height: 36px;
    color: var(--bg-primary);
}

/* =============================================
   TITLE & MESSAGE
   ============================================= */

.welcome-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

.welcome-message {
    margin-bottom: var(--space-6);
}

.welcome-message p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-3);
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

/* =============================================
   FEATURES
   ============================================= */

.welcome-features {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.welcome-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
}

.welcome-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xl);
    background: rgba(212, 175, 125, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.welcome-feature__icon svg {
    width: 22px;
    height: 22px;
}

.welcome-feature__text {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

/* =============================================
   BUTTON
   ============================================= */

.welcome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--ochre));
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-default);
    margin-bottom: var(--space-4);
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.welcome-btn svg {
    transition: transform var(--duration-fast) var(--ease-default);
}

.welcome-btn:hover svg {
    transform: translateX(3px);
}

/* =============================================
   SECONDARY LINK
   ============================================= */

.welcome-secondary {
    text-align: center;
}

.welcome-link {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.welcome-link:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

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

@media (max-width: 640px) {
    .welcome-page {
        padding: var(--space-4);
    }

    .welcome-container {
        padding: var(--space-8) var(--space-5);
        border-radius: var(--radius-xl);
    }

    .welcome-calligraphy {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .welcome-title {
        font-size: var(--text-xl);
    }

    .welcome-message p {
        font-size: var(--text-sm);
    }

    .welcome-features {
        gap: var(--space-3);
    }

    .welcome-feature__icon {
        width: 38px;
        height: 38px;
    }

    .welcome-feature__icon svg {
        width: 18px;
        height: 18px;
    }

    .welcome-feature__text {
        font-size: 11px;
    }

    .welcome-avatar {
        width: 64px;
        height: 64px;
    }

    .welcome-avatar svg {
        width: 28px;
        height: 28px;
    }
}
