/* =========================
   SKYCOON TRUE DARK THEME
========================= */

:root {
    --bg: #070A0F;
    --bg2: #0B0F14;
    --card: #0F141B;
    --border: #1A2230;
    --text: #D6D8DC;
    --muted: #8B93A1;
    --accent: #3B82F6;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.nav-links a {
    color: var(--muted);
    margin: 0 10px;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
}

.btn-play {
    background: var(--accent);
    padding: 8px 14px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
}

/* =========================
   HERO
========================= */

.hero {
    padding: 120px 0;
    text-align: center;
}

.title {
    font-size: 50px;
    font-weight: 700;
}

.subtitle {
    color: var(--muted);
    margin-top: 10px;
}

/* IP BOX */

.ip-box {
    margin-top: 25px;
    display: inline-flex;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.ip-box button {
    background: var(--accent);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* =========================
   SECTION
========================= */

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    margin: 0;
}

.section-title p {
    color: var(--muted);
}

/* =========================
   GRID CARDS
========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* =========================
   CARDS DARK
========================= */

.card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;

    text-decoration: none;
    color: var(--text);

    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.card img {
    width: 52px;
    height: 52px;
    image-rendering: pixelated;
}

.card h3 {
    margin: 0;
}

.card p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--muted);
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 30px 0;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HERO COMPACT + LOGO LARGE
========================= */

.hero {
    height: 70vh; /* 🔥 réduit la section */
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle at center,
        rgba(59,130,246,0.10),
        transparent 60%),
        #05070A;
}

/* WRAPPER */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 LOGO PLUS GROS */
.hero-logo {
    width: clamp(280px, 25vw, 520px);
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 30px 60px rgba(0,0,0,0.8))
        drop-shadow(0 0 50px rgba(59,130,246,0.25));

    animation: floatLogo 5s ease-in-out infinite;
}

/* FLOAT ANIMATION */
@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* =========================
   NAVBAR PLUS VISIBLE (ESUS CLEAN)
========================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;

    background: rgba(5, 7, 10, 0.72);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px 0; /* 🔥 plus grand */
}

/* =========================
   LOGO
========================= */

.nav-logo {
    font-size: 22px; /* 🔥 plus visible */
    font-weight: 800;
    color: #D6D8DC;
    text-decoration: none;
}

/* =========================
   LINKS (PLUS GROS)
========================= */

.nav-links {
    display: flex;
    gap: 22px; /* 🔥 plus espacé */
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;

    text-decoration: none;
    color: #9AA3AF;

    font-size: 15px; /* 🔥 plus lisible */
    font-weight: 500;

    transition: 0.2s;
}

.nav-links a:hover {
    color: #E5E7EB;
}

/* ICONES PLUS GRANDES */
.nav-icon {
    width: 22px; /* 🔥 augmenté */
    height: 22px;
    image-rendering: pixelated;
}

/* =========================
   RIGHT SIDE (AJUSTEMENT POSITION)
========================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-right: 20px; /* 🔥 décale vers la gauche */
}

/* PLAYER HEAD PLUS VISIBLE */
.player-head img {
    width: 38px;  /* 🔥 plus gros */
    height: 38px;

    border-radius: 8px;

    border: 1px solid rgba(255,255,255,0.1);

    transition: 0.2s;
}

.player-head img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(59,130,246,0.4);
}

/* ADMIN / LOGIN PLUS GROS */
.nav-admin,
.nav-link-small,
.nav-btn-small {
    font-size: 14px; /* 🔥 uniformisé */
    padding: 7px 12px;
    border-radius: 10px;
}

/* =========================
   NAVBAR ESPACE GLOBAL (OPTIONNEL)
========================= */

.container.nav-inner {
    padding-left: 10px;
    padding-right: 10px;
}

/* =========================
   NAV ICONS MINECRAFT (PLUS IMPACT)
========================= */

.nav-icon {
    width: 26px;   /* 🔥 plus gros */
    height: 26px;

    image-rendering: pixelated;

    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.6));

    transition: 0.2s ease;
}

.nav-links a:hover .nav-icon {
    transform: translateY(-1px) scale(1.1);
}

.glow {
    filter: drop-shadow(0 0 10px rgba(59,130,246,0.7));
}

/* =========================
   PROFILE SYSTEM PRO (ESUS STYLE)
========================= */

.profile-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* BTN PRINCIPAL */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 10px;

    background: rgba(15, 20, 28, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;

    cursor: pointer;

    transition: 0.2s ease;
}

.profile-btn:hover {
    border-color: rgba(59,130,246,0.4);
    box-shadow: 0 0 18px rgba(59,130,246,0.15);
}

/* AVATAR HD */
.profile-avatar {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    image-rendering: auto;

    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}

/* NOM */
.profile-name {
    font-size: 14px;
    color: #D6D8DC;
}

/* DROPDOWN */
.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;

    display: none;
    flex-direction: column;

    min-width: 180px;

    background: rgba(10, 12, 16, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;

    backdrop-filter: blur(16px);

    overflow: hidden;
}

/* LINKS */
.profile-dropdown a {
    padding: 10px 12px;
    text-decoration: none;

    color: #9AA3AF;
    font-size: 13px;

    transition: 0.2s;
}

.profile-dropdown a:hover {
    background: rgba(59,130,246,0.1);
    color: #fff;
}

/* ADMIN LINK */
.admin-link {
    color: #F87171 !important;
}

/* SHOW ON HOVER */
.profile-wrapper:hover .profile-dropdown {
    display: flex;
}

/* =========================
   AUTH BUTTONS (NO LOGIN)
========================= */

.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-btn {
    color: #9AA3AF;
    text-decoration: none;
    font-size: 13px;
}

.register-btn {
    padding: 6px 12px;
    border-radius: 10px;

    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;

    text-decoration: none;
    font-size: 13px;
}

/* =========================
   FIX ALIGNEMENT NAVBAR
========================= */

.nav-inner {
    display: flex;
    align-items: center; /* 🔥 centre vertical tout */
    justify-content: space-between;
}

/* RIGHT SIDE ALIGNMENT */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LINKS ALIGN FIX */
.nav-links a {
    display: flex;
    align-items: center; /* 🔥 centre icône + texte */
    height: 100%;
}

/* FORCE VERTICAL ALIGN BUTTONS */
.login-btn,
.register-btn,
.nav-admin,
.nav-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px; /* 🔥 même hauteur partout */
    line-height: 1;
}

/* =========================
   AUTH BUTTONS FIXED HEIGHT
========================= */

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    color: #9AA3AF;
    text-decoration: none;
    font-size: 14px;

    padding: 0 10px;
    height: 34px;

    display: inline-flex;
    align-items: center;
}

.register-btn {
    padding: 0 12px;
    height: 34px;

    border-radius: 10px;

    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;

    text-decoration: none;
    font-size: 14px;

    display: inline-flex;
    align-items: center;
}

/* =========================
   NAV AVATAR PREMIUM
========================= */

.nav-avatar {
    width: 44px;
    height: 44px;

    border-radius: 10px;

    object-fit: cover;
    image-rendering: auto;

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.6),
        0 0 18px rgba(59,130,246,0.15);

    transition: 0.25s ease;
}

.nav-avatar:hover {
    transform: scale(1.08);
    box-shadow:
        0 15px 35px rgba(0,0,0,0.7),
        0 0 25px rgba(59,130,246,0.35);
}

/* =========================
   NAV ICONS MINECRAFT PREMIUM
========================= */

.nav-icon {
    width: 28px;
    height: 28px;

    image-rendering: pixelated;
    object-fit: contain;

    /* 🔥 amélioration rendu */
    transform: translateZ(0);

    filter:
        drop-shadow(0 6px 10px rgba(0,0,0,0.6))
        contrast(1.1)
        saturate(1.1);

    transition: 0.25s ease;
}

/* hover premium */
.nav-links a:hover .nav-icon {
    transform: translateY(-2px) scale(1.15);

    filter:
        drop-shadow(0 0 10px rgba(59,130,246,0.6))
        contrast(1.2)
        saturate(1.2);
}

/* glow spécial items importants */
.glow {
    filter:
        drop-shadow(0 0 12px rgba(59,130,246,0.8))
        drop-shadow(0 6px 10px rgba(0,0,0,0.6));
}

.nav-icon {
    width: 26px;
    height: 26px;
    transform: scale(1.15);
}