/**
 * ECLOSIA - Thème Minecraft Jaune/Bleu/Blanc
 */

/* =====================================================
   VARIABLES MINECRAFT
   ===================================================== */
:root {
    /* Couleurs principales Minecraft */
    --mc-yellow: #FFAA00;
    --mc-yellow-light: #FFD700;
    --mc-yellow-dark: #CC8800;
    
    --mc-aqua: #55FFFF;
    --mc-aqua-light: #7FFFFF;
    --mc-aqua-dark: #00CCCC;
    
    --mc-white: #FFFFFF;
    --mc-white-soft: #F0F0F0;
    
    --mc-dark: #1D1D1D;
    --mc-darker: #141414;
    --mc-gray: #373737;
    --mc-gray-light: #555555;
    
    --mc-green: #55FF55;
    --mc-red: #FF5555;
    --mc-purple: #AA00AA;
    
    /* Aliases */
    --primary: var(--mc-yellow);
    --primary-dark: var(--mc-yellow-dark);
    --secondary: var(--mc-aqua);
    --accent: var(--mc-yellow-light);
    --dark: var(--mc-dark);
    --darker: var(--mc-darker);
    --light: var(--mc-white);
    --gray: var(--mc-gray-light);
    --success: var(--mc-green);
    --error: var(--mc-red);
    --warning: var(--mc-yellow);
    --discord: #5865F2;
}

/* =====================================================
   BASE STYLES
   ===================================================== */
.home-page {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    overflow-x: hidden;
}

.home-page * {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: bold;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 170, 0, 0.15);
    color: var(--mc-yellow);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-auth {
    display: flex;
    gap: 10px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--mc-yellow), var(--mc-yellow-dark));
    color: var(--mc-dark);
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 170, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--mc-aqua);
    color: var(--mc-aqua);
    text-shadow: 0 0 10px rgba(85, 255, 255, 0.5);
}

.btn-discord {
    background: var(--discord);
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95)),
        url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.title-main {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% auto;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-server {
    margin-bottom: 30px;
}

.server-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 170, 0, 0.08);
    border: 3px solid var(--mc-yellow);
    border-radius: 4px;
    padding: 15px 25px;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3), inset 0 0 20px rgba(255, 170, 0, 0.1);
}

.ip-icon {
    color: var(--mc-yellow);
    font-size: 1.3rem;
}

.ip-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    color: var(--mc-yellow);
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
}

.copy-btn {
    background: rgba(255, 170, 0, 0.2);
    border: 2px solid var(--mc-yellow);
    color: var(--mc-yellow);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--mc-yellow);
    color: var(--mc-dark);
}

.server-version {
    font-size: 0.85rem;
    color: var(--gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--mc-aqua);
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(85, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: var(--gray);
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--mc-yellow);
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features {
    background: rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--mc-yellow);
    box-shadow: 0 10px 40px rgba(255, 170, 0, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--mc-yellow), var(--mc-aqua));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--mc-dark);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--light);
}

.feature-desc {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =====================================================
   GAMEMODES SECTION
   ===================================================== */
.gamemodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.gamemode-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gamemode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.gamemode-green::before { background: var(--mc-green); }
.gamemode-red::before { background: var(--mc-red); }
.gamemode-aqua::before { background: var(--mc-aqua); }
.gamemode-gold::before { background: var(--mc-gold); }

.gamemode-green:hover { border-color: var(--mc-green); }
.gamemode-red:hover { border-color: var(--mc-red); }
.gamemode-aqua:hover { border-color: var(--mc-aqua); }
.gamemode-gold:hover { border-color: var(--mc-gold); }

.gamemode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gamemode-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.gamemode-green .gamemode-icon { color: var(--mc-green); }
.gamemode-red .gamemode-icon { color: var(--mc-red); }
.gamemode-aqua .gamemode-icon { color: var(--mc-aqua); }
.gamemode-gold .gamemode-icon { color: var(--mc-gold); }

.gamemode-players {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.gamemode-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.gamemode-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* =====================================================
   DISCORD SECTION
   ===================================================== */
.discord-section {
    background: rgba(0, 0, 0, 0.3);
}

.discord-box {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.1));
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.discord-icon {
    font-size: 3rem;
    color: var(--discord);
}

.discord-text h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.discord-text p {
    color: var(--gray);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.1), rgba(85, 255, 255, 0.1));
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   FLASH MESSAGES
   ===================================================== */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success { border-color: var(--success); }
.flash-success i { color: var(--success); }

.flash-error { border-color: var(--error); }
.flash-error i { color: var(--error); }

.flash-warning { border-color: var(--warning); }
.flash-warning i { color: var(--warning); }

.flash-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    margin-left: auto;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: var(--mc-yellow);
}

.footer-section p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--mc-yellow);
}

.server-ip {
    background: rgba(255, 170, 0, 0.08);
    padding: 15px;
    border-radius: 4px;
    border: 2px solid var(--mc-yellow);
}

.ip-label {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.ip-value {
    font-family: 'Press Start 2P', monospace;
    color: var(--mc-yellow);
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.ip-value:hover {
    color: var(--light);
}

.ip-value.copied {
    color: var(--success);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.discord:hover { background: var(--discord); }
.social-link.twitter:hover { background: #1DA1F2; }
.social-link.youtube:hover { background: #FF0000; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-bottom .disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Mobile auth links hidden on desktop */
.nav-auth-mobile,
.nav-auth-mobile-divider {
    display: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    /* Fix iOS background-attachment: fixed (causes blank backgrounds) */
    .hero {
        background-attachment: scroll;
        padding: 80px 20px 50px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-auth {
        display: none;
    }

    /* Show auth items inside the mobile menu */
    .nav-auth-mobile {
        display: block;
    }

    .nav-auth-mobile-divider {
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 8px 0;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .discord-box {
        flex-direction: column;
        text-align: center;
    }
    
    .discord-content {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .server-ip-box {
        flex-direction: column;
        gap: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 25px;
    }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
    .hero {
        padding: 70px 16px 40px;
    }

    .title-line {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .title-main {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .server-ip-box {
        padding: 12px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .ip-text {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.2rem;
        gap: 10px;
    }

    .feature-card {
        padding: 20px;
    }

    .discord-box {
        padding: 20px;
    }

    .discord-icon {
        font-size: 2rem;
    }

    .cta-section {
        padding: 60px 16px;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Very small phones (≤ 360px) */
@media (max-width: 360px) {
    .title-main {
        font-size: 1.2rem;
    }

    .nav-logo .logo-text {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* =====================================================
   GLOBAL UI REFRESH (HOME)
   ===================================================== */
.home-page {
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 170, 0, 0.12), transparent 30%),
        radial-gradient(circle at 92% 0%, rgba(85, 255, 255, 0.08), transparent 24%),
        linear-gradient(130deg, #0b1220, #111827 40%, #0b1220);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -35% -10%;
    height: 260px;
    background: radial-gradient(ellipse at center, rgba(255, 170, 0, 0.14), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content,
.hero-particles {
    z-index: 1;
}

.feature-card,
.discord-box,
.about-card,
.stat-card,
.cta-content {
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 38px rgba(2, 6, 23, 0.45);
}

.feature-card:hover,
.about-card:hover,
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 170, 0, 0.4);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 170, 0, 0.15) inset;
}

.btn {
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(140deg, #ffbe33, #ff9f1a);
    box-shadow: 0 10px 22px rgba(255, 170, 0, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 14px 28px rgba(255, 170, 0, 0.5);
}

.nav-link {
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(255, 170, 0, 0.35);
    box-shadow: 0 8px 24px rgba(255, 170, 0, 0.15);
}
