/* style.css - V21.1 (ALIGNED BORDERS & STICKY HEADER) */

/* --- 1. ASZTALI NÉZET (APP-SHELL) --- */
@media (min-width: 769px) {
    html, body {
        height: 100%;       /* Ablak fixálása */
        margin: 0;
        padding: 0;
        overflow: hidden;   /* TILTJUK a globális görgetést desktopon */
    }

    body {
        display: flex;
        flex-direction: column;
        background-color: #121212;
        color: #ffffff;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-image: radial-gradient(circle at center, #1e1e1e 0%, #000000 100%);
    }

    /* FEJLÉC: Fixen a tetején */
    .navbar {
        flex-shrink: 0;
        width: 100%;
        background-color: rgba(30, 30, 30, 0.95);
        border-bottom: 1px solid #333;
        padding: 20px 0;
        z-index: 1000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    /* TARTALOM KONTÉNER: Ez görög a fejléc alatt */
    .page-container {
        flex-grow: 1;
        overflow-y: auto;   /* Itt van a görgetés */
        overflow-x: hidden;
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        
        /* EZ A KULCS AZ UGRÁLÁS ELLEN! */
        /* Mindig fenntartja a görgetősáv helyét, így nem mozdul el a tartalom */
        scrollbar-gutter: stable; 

        /* SCROLLBAR DESIGN */
        scrollbar-width: thin;
        scrollbar-color: #333 #121212;
    }

    /* Webkit Scrollbar (Chrome/Safari Desktop) */
    .page-container::-webkit-scrollbar { width: 12px; }
    .page-container::-webkit-scrollbar-track { background: #121212; }
    .page-container::-webkit-scrollbar-thumb { background-color: #333; border-radius: 10px; border: 3px solid #121212; }
    .page-container::-webkit-scrollbar-thumb:hover { background-color: #555; }
}

/* --- 2. ÁLTALÁNOS STÍLUSOK (Minden nézetre) --- */

/* Ha mobilon vagyunk, ezek a body alapok kellenek (mert a fenti media query nem fut le) */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    /* Mobilon kell a háttér */
    background-image: radial-gradient(circle at center, #1e1e1e 0%, #000000 100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.nav-center-group { display: flex; justify-content: center; gap: 15px; }

/* JOBB OLDALI GOMB (Desktop) */
.nav-right-item { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }

.nav-item { position: relative; display: flex; align-items: center; }

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-auth-btn { font-size: 14px; padding: 6px 15px; font-weight: 600; border-radius: 6px; transition: all 0.3s ease; text-transform: uppercase; }
.login-btn { color: #aaa; border: 1px solid #555; }
.logout-btn { color: #f44336; border: 1px solid rgba(244, 67, 54, 0.3); }

/* HOVER EFFEKTEK */
.nav-item:hover .nav-home, .nav-home:hover { color: #fff !important; background-color: #e5a00d; box-shadow: 0 0 15px rgba(229, 160, 13, 0.5); border-color: #e5a00d; }
.nav-item:hover .nav-about, .nav-about:hover { color: #fff !important; background-color: #2979ff; box-shadow: 0 0 15px rgba(41, 121, 255, 0.5); border-color: #2979ff; }
.nav-item:hover .nav-projects, .nav-projects:hover { color: #fff !important; background-color: #00e5ff; box-shadow: 0 0 15px rgba(0, 229, 255, 0.5); border-color: #00e5ff; }
.nav-item:hover .nav-friends, .nav-friends:hover { color: #fff !important; background-color: #4caf50; box-shadow: 0 0 15px rgba(76, 175, 80, 0.5); border-color: #4caf50; }
.nav-item:hover .nav-admin, .nav-admin:hover { color: #fff !important; background-color: #d500f9; box-shadow: 0 0 15px rgba(213, 0, 249, 0.5); border-color: #d500f9; }

.nav-login:hover { color: #fff !important; background-color: #d500f9; box-shadow: 0 0 10px rgba(213, 0, 249, 0.5); border-color: #d500f9; text-decoration: none; }
.logout-btn:hover { color: #fff !important; background-color: #d32f2f; box-shadow: 0 0 10px rgba(244, 67, 54, 0.5); border-color: #d32f2f; text-decoration: none; }

/* AKTÍV OLDALAK */
.active-home { color: #e5a00d; }      
.active-about { color: #2979ff; }
.active-projects { color: #00e5ff; }  
.active-friends { color: #4caf50; }   
.active-admin { color: #d500f9; }  

/* DROPDOWN */
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: #2c2c2c; border: 1px solid #444; border-radius: 8px; padding: 10px; width: 220px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); display: none; flex-direction: column; gap: 5px; z-index: 3000; margin-top: 10px; }
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; }
.nav-item:hover .dropdown { display: flex; }
.dropdown-item { display: flex; align-items: center; padding: 10px; color: white; text-decoration: none; border-radius: 5px; transition: background 0.2s; cursor: pointer; overflow: hidden; }
.dropdown-item:hover { background-color: #383838; }
.dropdown-icon { width: 24px; height: 24px; margin-right: 15px; object-fit: contain; transform: scale(1.2); }
.dropdown-text { display: flex; flex-direction: column; align-items: flex-start; }
.dropdown-sub { font-size: 12px; color: #aaa; display: flex; align-items: center; margin-top: 2px; }

/* FŐ TARTALOM */
.main-content { padding: 40px 20px; max-width: 1200px; width: 100%; text-align: center; }
.home-container { display: flex; flex-direction: column; justify-content: center; min-height: calc(80vh - 100px); }
h1 { margin-bottom: 40px; letter-spacing: 2px; text-transform: uppercase; font-size: 32px; color: #e0e0e0; }

/* GRID & CARD (V21.2 - COMPACT ALIGNMENT) */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); gap: 30px; justify-content: center; }

.card { 
    background: #2c2c2c; 
    
    /* MÓDOSÍTÁS: Alul (3. érték) 30px helyett 20px, így kompaktabb */
    padding: 30px 30px 20px 30px; 
    
    border-radius: 16px; 
    text-decoration: none; 
    color: white; 
    transition: transform 0.2s, background 0.2s; 
    border: 1px solid #333; 
    
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    height: 100%; 
    
    position: relative; 
    cursor: pointer; 
    width: 100%; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

/* ÚJ: FELSŐ RÉSZ (Kisebb magasság -> Feljebb csúszik a vonal) */
.card-upper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
    /* MODOSÍTVA: 190px helyett 145px! Így eltűnik a felesleges űr. */
    min-height: 130px; 
}

.card-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (hover: hover) { .card:not(.no-hover):hover { transform: translateY(-7px); background: #383838; border-color: #555; } }
.card:active { transform: scale(0.98); transition: transform 0.1s; background: #333; }
.card-logo { width: 64px; height: 64px; margin-bottom: 20px; object-fit: contain; }
.card-title { font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.card-subtext { font-size: 14px; color: #aaa; }
.card.no-hover { cursor: default; transition: none; }
.card.no-hover:hover { transform: none !important; background: #2c2c2c !important; border-color: #333 !important; }

/* KERETEK */
.border-plex { border-bottom: 4px solid #e5a00d; }
.border-medi { border-bottom: 4px solid #416858; } 
.border-mc { border-bottom: 4px solid #45a049; }
.border-email { border-bottom: 4px solid #e5a00d; }
.border-admin { border-bottom: 4px solid #d500f9; }
.border-nas { border-bottom: 4px solid #0b2545; }      
.border-torrent { border-bottom: 4px solid #64b5f6; }  
.border-cf { border-bottom: 4px solid #f38020; }
.border-cb { border-bottom: 4px solid #3771c8; }
.border-ts { border-bottom: 4px solid #1C1715; }
.border-brevo { border-bottom: 4px solid #00694e; }

/* KIEGÉSZÍTŐK */
.status-dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.online { background-color: #4caf50; box-shadow: 0 0 8px #4caf50, 0 0 12px rgba(76, 175, 80, 0.6); animation: pulse-green 2s infinite ease-in-out; }
.offline { background-color: #f44336; box-shadow: 0 0 8px #f44336, 0 0 12px rgba(244, 67, 54, 0.6); }
.loading { background-color: #ff9800; box-shadow: 0 0 8px #ff9800, 0 0 12px rgba(255, 152, 0, 0.6); }
#copy-msg, #nav-copy-msg { display: none; background-color: #4caf50; color: white; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 5px; text-transform: uppercase; font-weight: bold; }
.player-list { margin-top: 15px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.player-wrapper { position: relative; display: inline-block; }
.player-head { width: 32px; height: 32px; border-radius: 6px; border: 2px solid #555; background-color: #333; transition: transform 0.2s; }

/* --- MINECRAFT JÁTÉKOSOK (HEAD) --- */
.player-wrapper { position: relative; display: inline-block; }

.player-head { 
    width: 32px; 
    height: 32px; 
    border-radius: 6px; 
    border: 2px solid #555; /* Alap keret */
    background-color: #333; 
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; 
    box-sizing: border-box; /* Fontos a mérettartáshoz */
}

.player-wrapper:hover .player-head { 
    transform: scale(1.15); 
    border-color: #fff; 
    z-index: 10; /* Hoverkor jöjjön előre */
}

/* --- RANGOK (VISSZAÁLLÍTVA) --- */

/* ARANY (Te) */
.player-head.gold {
    /*border-color: #e5a00d !important; /* Vajda Gold - felülírja a szürkét */
    box-shadow: 0 0 12px rgba(229, 160, 13, 0.5); /* Finom arany fény */
}

/* EZÜST (Barátok) */
.player-head.silver {
    /*border-color: #e0e0e0 !important; /* Világos ezüst */
    box-shadow: 0 0 10px rgba(224, 224, 224, 0.4); /* Finom ezüst fény */
}
.player-wrapper:hover .player-head { transform: scale(1.15); border-color: #fff; }
.player-tooltip { visibility: hidden; background-color: #000; color: #fff; padding: 5px 10px; border-radius: 6px; position: absolute; z-index: 100; bottom: 125%; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.2s; font-size: 12px; font-weight: bold; white-space: nowrap; box-shadow: 0 5px 10px rgba(0,0,0,0.4); border: 1px solid #444; pointer-events: none; }
.player-wrapper:hover .player-tooltip { visibility: visible; opacity: 1; }
.hamburger { display: none; cursor: pointer; font-size: 32px; color: #e0e0e0; padding: 10px; }
.btn-password { color: #aaa; text-decoration: none; border: 1px solid #444; padding: 12px 25px; border-radius: 30px; transition: all 0.3s ease; background-color: #1e1e1e; font-size: 14px; display: inline-block; }
.btn-password:hover { color: #ffffff; border-color: #d500f9; background-color: #2c2c2c; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.form-input { width: 100%; padding: 12px; background-color: #1e1e1e; border: 1px solid #444; color: white; border-radius: 6px; font-size: 16px; box-sizing: border-box; transition: border-color 0.3s, box-shadow 0.3s; outline: none; }
.form-input:focus { border-color: #aa00c7; box-shadow: 0 0 8px rgba(170, 0, 199, 0.3); }
.btn-primary { 
    background-color: #aa00c7; 
    color: white; 
    border: none; 
    padding: 12px; 
    border-radius: 6px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 16px; 
    
    /* A JAVÍTÁS: Örökölje a betűtípust */
    font-family: inherit; 
    
    transition: all 0.3s ease; 
    width: 100%; 
    margin-top: 15px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
}
.btn-primary:hover { 
    background-color: #7a0090; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(122, 0, 144, 0.4); 
}

/* --- SECONDARY GOMB (LILA, UGYANAZ MINT A PRIMARY) --- */
.btn-secondary { 
    background-color: #aa00c7; 
    color: white; 
    border: none; 
    padding: 12px; 
    border-radius: 6px; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 16px; 
    
    /* A JAVÍTÁS: Örökölje a betűtípust */
    font-family: inherit; 
    
    transition: all 0.3s ease; 
    width: 100%; 
    margin-top: 5px; 
    text-decoration: none; 
    display: inline-block; 
    box-sizing: border-box; 
    text-align: center; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
}
.btn-secondary:hover { 
    background-color: #7a0090; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(122, 0, 144, 0.4); 
}

.link-back { display: block; text-align: center; color: #888; text-decoration: none; font-size: 14px; margin-top: 15px; transition: all 0.3s ease; padding: 5px; }
.link-back:hover { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); transform: scale(1.05); }

/* --- ANIMÁCIÓK FRISSÍTVE (V19.2 FINAL POLISH) --- */

/* 1. INTEGETÉS (Gyors mozgás + Hosszú pihenő) */
@keyframes wave { 
    0% { transform: rotate(0deg); } 
    5% { transform: rotate(14deg); }  /* Gyorsabb mozdulatok... */
    10% { transform: rotate(-8deg); } 
    15% { transform: rotate(14deg); } 
    20% { transform: rotate(-4deg); } 
    25% { transform: rotate(10deg); } 
    30% { transform: rotate(0deg); } 
    100% { transform: rotate(0deg); } /* ...és 30%-tól 100%-ig PIHEN */
}
.waving-hand { 
    display: inline-block; 
    transform-origin: 70% 70%; 
    animation: wave 4.5s infinite; /* A teljes ciklus 3.5s (ebből kb 2s a szünet) */
}

/* 2. UGRÁLÓ PONTOK (Korrekció: A harmadik pont sem csúszik el) */
@keyframes bounce { 
    0% { transform: translateY(0); } 
    25% { transform: translateY(-6px); } 
    45% { transform: translateY(0); } 
    100% { transform: translateY(0); } 
}
.bouncing-dots span { 
    display: inline-block; 
    /* 2s a ciklus, de ebből a mozgás csak az eleje, így bőven van idő pihenni */
    animation: bounce 2.5s infinite ease-in-out both; 
    font-size: inherit; 
    margin-left: 1px; 
}
/* Szorosabb követés, hogy biztosan befejezzék a mozgást a ciklus vége előtt */
.bouncing-dots span:nth-child(1) { animation-delay: 0s; }
.bouncing-dots span:nth-child(2) { animation-delay: 0.15s; }
.bouncing-dots span:nth-child(3) { animation-delay: 0.30s; }


/* 3. TÖLTŐCSÍK (Lassú indulás + Pihenő a végén) */
@keyframes pulse-green { 0% { box-shadow: 0 0 8px #4caf50, 0 0 12px rgba(76, 175, 80, 0.6); } 50% { box-shadow: 0 0 15px #4caf50, 0 0 25px rgba(76, 175, 80, 0.9); } 100% { box-shadow: 0 0 8px #4caf50, 0 0 12px rgba(76, 175, 80, 0.6); } }

.loading-wrapper { max-width: 300px; margin: 0 auto 40px auto; text-align: left; }
.loading-text { font-family: 'Courier New', Courier, monospace; color: #aaa; font-size: 14px; margin-bottom: 5px; font-weight: bold; text-transform: uppercase; }
.loading-bar-container { width: 100%; height: 20px; background-color: #1e1e1e; border: 2px solid #555; border-radius: 4px; overflow: hidden; position: relative; box-shadow: inset 0 0 5px rgba(0,0,0,0.5); }

.loading-bar-fill { 
    height: 100%; 
    
    /* SÖTÉTEBB KIRÁLYKÉK (#0d47a1) - Elegáns és mély */
    background-color: #0d47a1; 
    
    width: 0%; 
    
    /* A lépcsőzetes, megállós animáció marad */
    animation: loadProgress 6s infinite linear; 
}

@keyframes loadProgress { 
    0%   { width: 0%; } 
    15%  { width: 5%; }   /* Nagyon lassú indulás (0-15% idő alatt csak 5%-ot megy) */
    25%  { width: 5%; }   /* 1. MEGÁLLÓ (Pihen) */
    
    40%  { width: 45%; }  /* Nagyobb ugrás */
    50%  { width: 45%; }  /* 2. MEGÁLLÓ (Pihen) */
    
    65%  { width: 80%; }  /* Ugrás */
    75%  { width: 80%; }  /* 3. MEGÁLLÓ (Pihen) */
    
    85%  { width: 100%; } /* Kész, eléri a végét */
    100% { width: 100%; } /* HOSSZÚ PIHENŐ a végén (15%-nyi időt áll tele) */
}
.social-list { display: flex; flex-direction: column; gap: 15px; max-width: 450px; margin: 0 auto; }
.social-item { display: flex; align-items: center; background-color: #2c2c2c; padding: 15px 20px; border-radius: 8px; text-decoration: none; color: white; font-weight: bold; font-size: 18px; border: 1px solid #333; transition: all 0.2s ease; position: relative; overflow: hidden; }
.social-item img { width: 32px; height: 32px; margin-right: 15px; object-fit: contain; transition: transform 0.2s; }
@media (hover: hover) {
    .social-item:hover { background-color: #383838; transform: translateX(10px); }
    .social-item:hover img { transform: scale(1.1); }
    .social-item.linkedin:hover { border-color: #0077b5; box-shadow: 0 0 10px rgba(0, 119, 181, 0.3); }
    .social-item.facebook:hover { border-color: #1877f2; box-shadow: 0 0 10px rgba(24, 119, 242, 0.3); }
    .social-item.instagram:hover { border-color: #e1306c; box-shadow: 0 0 10px rgba(225, 48, 108, 0.3); }
    .social-item.school:hover { border-color: #8b0000; box-shadow: 0 0 10px rgba(139, 0, 0, 0.4); }
    .social-item.email:hover { border-color: #ff9800; box-shadow: 0 0 10px rgba(255, 152, 0, 0.4); }
    .social-item.mal:hover { border: 1.5px solid #2e51a2; box-shadow: 0 0 15px rgba(46, 81, 162, 0.4);}
}
.social-item:active { transform: scale(0.98); }
.social-item.linkedin img, .social-item.facebook img, .social-item.instagram img { transform: scale(1.5); }
.social-item:hover.linkedin img, .social-item:hover.facebook img, .social-item:hover.instagram img { transform: scale(1.65); }
.social-item .szm-logo { transform: scale(1.0); border-radius: 4px; }
.social-item:hover .szm-logo { transform: scale(1.1); }
/* MAL Logó lekerekítése a kártyán */
.social-item.mal img { border-radius: 6px; /* Ez adja meg a lekerekítést, hasonlóan az Instához */}

/* --- ICONS --- */
/* A Rólam oldali nagy ikon */
.emoji-icon {
    font-size: 30px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
    flex-shrink: 0; /* EZ IS FONTOS */
}

/* A Fejléc (Navbar) ikonja */
.emoji-icon-nav {
    font-size: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* A MEGOLDÁS AZ ÖSSZENYOMÁS ELLEN */
}

.social-item:hover .emoji-icon { transform: scale(1.2); }

/* --- DOBOZ RENDSZER (Csak a Barátoknak menühöz teszt) --- */

.icon-box {
    width: 32px;          /* Fix szélesség: Minden ikonnak ekkora helye van */
    height: 32px;         /* Fix magasság */
    display: flex;        /* Flexbox a dobozon belül */
    align-items: center;  /* Függőleges közép */
    justify-content: center; /* Vízszintes közép */
    margin-right: 12px;   /* Távolság a szövegtől */
    flex-shrink: 0;       /* Nem nyomódhat össze */
    /* background: rgba(255,0,0,0.2);  <-- Ezt szedd ki a kommentből, ha látni akarod a dobozt! */
}

/* A dobozban lévő képek viselkedése */
.icon-box img {
    max-width: 100%;      
    max-height: 100%;     
    object-fit: contain;  
    transform: none !important; /* Törlünk minden korábbi torzítást */
    margin: 0 !important;       /* Törlünk minden margót */
}

/* =========================================
   DROPDOWN IKON VEZÉRLŐPULT (Minden egy helyen)
   ========================================= */

/* --- 1. RÓLAM (PORTFOLIO) --- */

/* LinkedIn */
.icon-box img[alt="LI"] { 
    transform: scale(1.6) translateX(-2.5px) !important; /* Jó nagyra */
}

/* Facebook */
.icon-box img[alt="FB"] { 
    transform: scale(1.6) translateX(-2.5px) !important; 
}


/* --- 2. PROJEKTEK --- */

/* Medistock */
.icon-box img[alt="Medi"] { 
    transform: scale(1.2) !important; 
}


/* --- 3. BARÁTOKNAK --- */

/* Plex (Ez a viszonyítási alap, de állíthatod ezt is) */
.icon-box img[alt="Plex"] { 
    transform: scale(1.3) !important; 
}

/* Minecraft (Kocka, lehet kicsit tolni kell) */
.icon-box img[alt="Minecraft"] { 
    transform: scale(1.2) translateX(-1px) !important; 
}

/* Instagram */
.icon-box img[alt="IG"] { 
    transform: scale(1.6) translateX(-0.75px) !important; 
}

/* MyAnimeList */
.icon-box img[alt="MAL"] { 
    transform: scale(1.0) translateX(-1.25px) !important; 
}


/* --- 4. KARBANTARTÁS (ADMIN) --- */

/* TrueNAS (Cápa) */
.icon-box img[alt="NAS"] {
    transform: scale(1.1) !important;
}

/* Torrent (qBittorrent) */
.icon-box img[alt="Torrent"] {
    transform: scale(1.1) !important;
}

/* CloudBeaver (Adatbázis) */
.icon-box img[alt="DB"] {
    transform: scale(1.3) !important; /* Alapméret */
}

/* Cloudflare (Felhő) */
.icon-box img[alt="CF"] {
    transform: scale(1.3) !important;
}

/* Tailscale (Ez alapból pici szokott lenni) */
.icon-box img[alt="TS"] {
    transform: scale(1.9) translateX(-0.5px) !important; 
}

/* Brevo (Levél) */
.icon-box img[alt="Brevo"] {
    transform: scale(1.0) translateY(1px) !important; /* Kicsit lejjebb */
}

/* --- ADMIN DASHBOARD STATS (HIÁNYZÓ RÉSZ) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
    position: relative;
    z-index: 500;
}

.stat-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    cursor: default;
    height: auto; /* Fontos, hogy ne nyúljon feleslegesen */
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: #555;
    background: #252525;
    z-index: 1000;
}

.stat-icon { font-size: 24px; margin-bottom: 8px; }
.stat-value { font-size: 22px; font-weight: bold; color: #d500f9; margin: 5px 0; }
.stat-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }

/* HOVER DROPDOWN (RÉSZLETEK) */
.stat-details {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    width: 200px;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    margin-top: 12px;
    text-align: left;
    font-size: 12px;
    color: #ccc;
    pointer-events: none;
}

.stat-details::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #444 transparent;
}

.stat-card:hover .stat-details {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -5px); } to { opacity: 1; transform: translate(-50%, 0); } }

.detail-row { display: flex; justify-content: space-between; margin-bottom: 4px; border-bottom: 1px solid #383838; padding-bottom: 2px; }
.detail-row:last-child { border-bottom: none; margin-bottom: 0; }
.detail-key { color: #888; }
.detail-val { color: #fff; font-weight: bold; }

/* --- MOBIL NÉZET MÓDOSÍTÁSOK (V20.3 - UNIFORM BARS) --- */
@media (max-width: 768px) {

    /* 1. APP-SHELL RESET */
    html, body {
        height: auto;
        overflow: auto; 
    }
    
    .page-container {
        display: block;
        height: auto;
        overflow: visible;
        flex-grow: 0;
        
        /* IGAZÍTÁS: Mivel a fejléc vékonyabb lett (kb 55px), elég ennyi behúzás */
        padding-top: 70px; 
    }
    
    /* 2. NAVBAR: UGYANOLYAN VASTAG, MINT A MENÜPONTOK */
    .navbar {
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        
        /* 15px padding, hogy passzoljon a lenti elemekhez */
        padding: 15px 0; 
        min-height: 25px; /* Biztosítjuk a testet neki */
        
        background-color: rgba(30, 30, 30, 0.98);
        z-index: 2000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.6);
        border-bottom: 1px solid #333;
    }

    .nav-center-group { flex-direction: column; width: 100%; margin-left: 0; gap: 0; }
    .nav-right-item { position: static; transform: none; width: 100%; text-align: center; margin-top: 0; display: block; }
    .nav-container { padding: 0; justify-content: center; } 
    .dropdown { display: none !important; }
    
    /* MENÜPONTOK: VISSZA A NORMÁL (V20.1) MÉRETHEZ */
    .nav-item { 
        width: 100%; 
        text-align: center; 
        padding: 0; 
        border-bottom: 1px solid #333; 
        display: block; 
    } 
    
    .nav-link { 
        display: block; 
        width: 100%; 
        
        /* 15px padding -> Pontosan akkora lesz, mint a fejléc */
        padding: 15px 0; 
        
        margin: 0; 
        border: none; 
        /* Eredeti háttérszín logika */
    }
    
    .nav-auth-btn { 
        font-size: 14px !important; 
        padding: 15px 0 !important; 
        width: 100%; 
        border-radius: 0; 
        border: none; 
    }
    
    .nav-link:active { background-color: rgba(255, 255, 255, 0.05); }

    .home-container { min-height: 80vh; padding-top: 20px; }
    .main-content { padding: 20px 15px; width: 100%; box-sizing: border-box; }
    .grid-container { grid-template-columns: 1fr; gap: 20px; }
    .card { padding: 20px; width: 100%; min-width: 0; box-sizing: border-box; }
    h1 { font-size: 24px; margin-bottom: 25px; }
    
    /* HAMBURGER MENÜ */
    .hamburger { 
        display: block; 
        position: absolute; 
        right: 20px; 
        top: 50%; 
        transform: translateY(-50%); 
        z-index: 2100; 
        padding: 5px; 
    }
    
    .menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); z-index: 900; display: none; opacity: 0; transition: opacity 0.3s ease; }
    .menu-overlay.active { display: block; opacity: 1; }
    
    /* MENÜ KONTÉNER POZÍCIÓ */
    .nav-container { 
        position: fixed; 
        
        /* MATEK: 15px top pad + 15px bot pad + kb 25px text/icon magasság = ~55px + 1px border */
        /* Beállítjuk 56px-re, hogy pontosan a vonal alól induljon */
        top: 56px; 
        
        left: 0; 
        width: 100%; 
        margin-top: 0; 
        flex-direction: column; 
        align-items: center; 
        gap: 0; 
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.4s ease-in-out; 
        background-color: rgba(30, 30, 30, 0.98); 
        border-bottom: none; 
        z-index: 1000; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-container.active { 
        max-height: 600px; 
        border-bottom: 1px solid #444; 
    }
}