/**
 * Fichier: /superpublique/css/login-landing.css
 * Description: Styles pour la page de login/landing GameHub
 * Thème: Dark gaming avec accents colorés
 */

/* ================================
   Variables & Reset
   ================================ */
.login-landing {
    --bg-primary: #1a1a1e;
    --bg-secondary: #25252b;
    --bg-tertiary: #2d2d35;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-primary: #00d4ff;
    --accent-secondary: #6b46c1;
    --accent-success: #10b981;
    --accent-warning: #f97316;
    --accent-danger: #ef4444;
    
    --glow-primary: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-secondary: 0 0 20px rgba(107, 70, 193, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* ================================
   Particules Background
   ================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ================================
   Hero Section
   ================================ */
.hero-section {
    text-align: center;
    padding: 3rem 2rem 2rem;
    animation: fadeInDown 1s ease;
    position: relative;
    z-index: 2;
}

.hero-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo-svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(var(--glow-primary));
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(var(--glow-primary));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(var(--glow-secondary));
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ================================
   Glass Card Design
   ================================ */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ================================
   Main Layout
   ================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ================================
   Météo Gaming
   ================================ */
.gaming-weather {
    animation: slideInLeft 0.8s ease;
}

.weather-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.weather-info h3 {
    color: var(--accent-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.weather-status {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.weather-status strong {
    color: var(--text-primary);
}

.weather-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 24px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* ================================
   Citation Gaming
   ================================ */
.gaming-quote {
    border-left: 3px solid var(--accent-secondary);
    animation: slideInLeft 1s ease;
}

.gaming-quote blockquote {
    margin: 0;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.quote-author {
    display: block;
    text-align: right;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ================================
   Games Showcase
   ================================ */
.games-showcase {
    animation: slideInLeft 1.2s ease;
}

.showcase-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.game-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.game-cover {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 8px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
}

.game-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.game-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.game-rating {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.game-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-top {
    background: linear-gradient(135deg, var(--accent-success), #059669);
    color: white;
}

.badge-flop {
    background: linear-gradient(135deg, var(--accent-danger), #dc2626);
    color: white;
}

/* ================================
   Login Section
   ================================ */
.login-section {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.login-card {
    transform: rotate(-1deg);
    transition: var(--transition);
    animation: slideInRight 0.8s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.login-card:hover {
    transform: rotate(0);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px) rotate(-1deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(-1deg);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-warning), var(--accent-secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.achievement-badge svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-login:active {
    transform: translateY(0);
}

/* ================================
   FAQ Section
   ================================ */
.faq-section {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.accordion {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-glass);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-header[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 300px;
}

.accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================
   Catalog Full-Width Section
   ================================ */
.catalog-full-width {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.games-preview-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalog-table {
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    overflow: hidden;
    flex: 1;
}

.catalog-table__header {
    display: grid;
    grid-template-columns: 50px 1fr 90px 120px 90px 60px 80px;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.catalog-table__body {
    display: flex;
    flex-direction: column;
}

.catalog-row {
    display: grid;
    grid-template-columns: 50px 1fr 90px 120px 90px 60px 80px;
    gap: 8px;
    padding: 9px 12px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.85rem;
    transition: background 0.15s;
}

.catalog-row:last-child {
    border-bottom: none;
}

.catalog-row:hover {
    background: rgba(0,212,255,0.04);
}

.catalog-col--cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.catalog-cover-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.catalog-col--title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.catalog-col--platform {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-col--genre {
    font-size: 0.75rem;
}

.catalog-genre-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(107, 70, 193, 0.2);
    border: 1px solid rgba(107, 70, 193, 0.4);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--accent-secondary);
    white-space: nowrap;
}

.catalog-col--date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.catalog-col--rating {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-align: center;
}

.catalog-col--trailer {
    text-align: center;
}

.catalog-trailer-btn {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.catalog-trailer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.catalog-no-trailer {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.catalog-cta {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ================================
   Footer
   ================================ */
.landing-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.platform-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 70px;
    padding: 10px 4px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    color: var(--accent-primary);
    text-decoration: none;
}

.platform-badge:hover {
    transform: translateY(-3px);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.15);
}

.platform-badge__name {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    line-height: 1;
}

.platform-badge a {
    text-decoration: none;
    color: inherit;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================================
   FAQ FAB & Drawer
   ================================ */
.faq-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: var(--transition);
    z-index: 999;
    color: white;
}

.faq-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6);
}

.faq-fab__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.faq-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

.faq-drawer.active {
    pointer-events: all;
}

.faq-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-drawer.active .faq-drawer__overlay {
    opacity: 1;
}

.faq-drawer__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: var(--bg-primary);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.faq-drawer.active .faq-drawer__content {
    transform: translateX(0);
}

.faq-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.faq-drawer__header .section-title {
    margin: 0;
    font-size: 1.5rem;
}

.faq-drawer__close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-drawer__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .faq-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .faq-drawer__content {
        max-width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-section {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .login-card {
        transform: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 0 1rem;
    }
    
    .faq-section {
        padding: 0 1rem;
    }
    
    .platforms {
        gap: 0.75rem;
    }
    
    .platform-badge {
        width: 60px;
    }
    
    .catalog-full-width {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    /* Catalog table mobile : keep only title, rating, trailer */
    .catalog-table__header {
        grid-template-columns: 1fr 60px 80px;
    }
    
    .catalog-row {
        grid-template-columns: 1fr 60px 80px;
    }
    
    .catalog-col--cover,
    .catalog-col--platform,
    .catalog-col--genre,
    .catalog-col--date {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .accordion-header {
        padding: 1rem;
    }
    
    .accordion-body {
        padding: 0 1rem 1rem;
    }
}

/* ================================
   Alert Messages
   ================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    animation: slideInDown 0.3s ease;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ================================
   Transitions pour JS
   ================================ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}