/* LUNARSHARK - FINAL STYLE
   Features: Tech Grid Background, Fixed Mobile Menu, Neon UI
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* --- 1. CONFIGURATION --- */
:root {
    --primary: #00f2ff;
    --primary-dim: rgba(0, 242, 255, 0.1);
    --primary-glow: rgba(0, 242, 255, 0.6);
    --secondary: #7000ff;
    
    --bg-deep: #050507;
    --bg-surface: #0e0e12;
    --bg-nav: rgba(5, 5, 8, 0.9);
    
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    
    --danger: #ff2a2a;
    --discord: #5865F2;

    --nav-height: 80px;
    --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- 2. RESET --- */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none; text-decoration: none;
    outline: none; border: none;
}

/* Oprava odkazov (Žiadna modrá) */
a { color: inherit; transition: var(--transition); }
a:visited, a:active { color: inherit; }

html { scroll-behavior: smooth; overflow-x: hidden; }

/* --- 3. NOVÝ BACKGROUND (Tech Grid + Spotlight) --- */
body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    /* Mriežka */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed; /* Pozadie stojí pri scrollovaní */
}

/* Žiara zhora (Spotlight efekt) */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, #1a1a40 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.container {
    max-width: 1300px; margin: 0 auto; padding: 0 25px;
}

/* --- 4. NAVBAR --- */
.navbar {
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    /* ZMENA TU: fixed namiesto sticky zabezpečí, že sa nepohne */
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    z-index: 10000;
}

.nav-flex {
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

/* Logo */
.logo a {
    font-size: 1.8rem; font-weight: 900; color: white;
    text-transform: uppercase; letter-spacing: 2px;
}
.logo span {
    color: var(--primary); text-shadow: 0 0 20px var(--primary-glow);
    animation: flicker 4s infinite alternate;
}

/* PC Menu */
.nav-links { display: flex; gap: 35px; }

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem; font-weight: 700; text-transform: uppercase;
    position: relative; padding: 25px 0; letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: white; text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0; height: 3px; background: var(--primary);
    box-shadow: 0 -5px 15px var(--primary);
    transition: var(--transition); transform: translateX(-50%);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* --- 5. TLAČIDLÁ --- */

/* Panel Button (Skosený tvar) */
.panel-btn {
    background: var(--danger);
    color: white !important;
    padding: 10px 28px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    transform: skewX(-15deg);
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}
/* Narovnanie textu vo vnútri */
.panel-btn span {
    transform: skewX(15deg);
    display: inline-block;
}

.panel-btn:hover {
    background: #ff0000;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.6);
    transform: skewX(-15deg) translateY(-2px);
    border-color: white;
}

/* Hero Button */
.btn {
    padding: 18px 45px; border-radius: 4px;
    font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
    display: inline-flex; align-items: center; gap: 10px;
    transition: var(--transition); cursor: pointer;
    position: relative; overflow: hidden; z-index: 1;
}

.btn-main {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
}
.btn-main:hover {
    background: var(--primary); color: black;
    box-shadow: 0 0 50px var(--primary-glow);
}

.btn-discord {
    background: rgba(88, 101, 242, 0.1); border: 2px solid var(--discord); color: var(--discord);
}
.btn-discord:hover {
    background: var(--discord); color: white; transform: translateY(-3px);
}

/* --- 6. HAMBURGER MENU --- */
.menu-toggle {
    display: none; /* Na PC skryté */
    cursor: pointer;
    width: 35px; height: 25px;
    position: relative; z-index: 10002;
}

.menu-toggle span {
    display: block; width: 100%; height: 3px;
    background: #ffffff;
    border-radius: 4px;
    position: absolute; transition: 0.4s;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; width: 100%; right: 0; } /* Opravená šírka */
.menu-toggle span:nth-child(3) { top: 22px; }

/* Animácia na X */
.menu-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); background: var(--primary); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.menu-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); background: var(--primary); }

/* --- 7. MOBILE RESPONSIVENESS (FIXED) --- */
.nav-left-mobile { display: none; }

@media (max-width: 992px) {
    /* Grid rozloženie pre Navbar */
    .nav-flex { 
        display: grid; 
        grid-template-columns: 1fr auto 1fr; 
        align-items: center;
        padding: 0 20px; 
        height: 100%;
    }

    /* 1. Panel vľavo */
    .nav-left-mobile { display: block; grid-column: 1; justify-self: start; }
    
    /* 2. Logo v strede */
    .logo { grid-column: 2; text-align: center; }
    
    /* 3. Hamburger vpravo */
    .nav-right { grid-column: 3; display: flex; justify-content: flex-end; }
    
    .pc-only { display: none !important; }
    .menu-toggle { display: block; }

.nav-links {
        /* Toto zabezpečí, že menu začne presne pod fixným navbarom */
        position: fixed; 
        top: var(--nav-height); 
        left: 0;
        width: 100%; 
        height: calc(100vh - var(--nav-height));
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        gap: 30px; 
        z-index: 10001;
        opacity: 0; 
        pointer-events: none; 
        transform: translateY(-20px);
        transition: 0.4s ease;
    }

    .nav-links.active { 
        opacity: 1; 
        pointer-events: all; 
        transform: translateY(0); 
    }

    .nav-links a { font-size: 1.5rem; color: white; letter-spacing: 2px; }
    .nav-links a::after { display: none; }
}

/* --- 8. HERO & CONTENT --- */
.hero { padding: 160px 0 100px; text-align: center; position: relative; }
.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 900; 
    text-transform: uppercase; line-height: 1; margin-bottom: 20px;
}
.hero h1 span {
    color: transparent; -webkit-text-stroke: 2px var(--primary);
    text-shadow: 0 0 30px var(--primary-dim); display: block;
}
/* Na mobile plný text */
@media (max-width: 768px) { .hero h1 span { -webkit-text-stroke: 0; color: var(--primary); } }

.hero p { color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }













/* --- HERO LAYOUT (TEXT VĽAVO - GIF VPRAVO) --- */
.hero-flex-container {
    display: flex;
    align-items: center;       /* Vertikálne na stred */
    justify-content: center;   /* Celý blok na stred stránky */
    gap: 50px;                 /* Medzera medzi nimi */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- 1. TEXT (Ľavá strana) --- */
.hero-content {
    flex: 1.5;                 /* Text dostane viac miesta */
    max-width: 650px;
    text-align: left;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 4rem;           /* Veľký nadpis */
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 900;
}

/* EFEKT NEVYPLNENÉHO TEXTU (Len obrys) */
.hero-content h1 span.outline-text {
    color: transparent;        /* Priehľadné vnútro */
    -webkit-text-stroke: 2px var(--primary); /* Neónový obrys */
    text-shadow: 0 0 30px var(--primary-dim); /* Jemná žiara okolo */
    display: block;            /* Aby bol na novom riadku (voliteľné) */
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 90%;
}

/* Tlačidlá */
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

/* --- 2. GIF (Pravá strana & Malý) --- */
.hero-gif {
    flex: 0.8;                 /* Menší priestor pre GIF */
    display: flex;
    justify-content: flex-start; /* Zarovnanie k textu */
    position: relative;
    z-index: 2;
}

.hero-gif img {
    width: 100%;
    max-width: 280px;          /* TU SA MENÍ VEĽKOSŤ (Celkom malý) */
    height: auto;
    
    /* Ostrosť a Vizuál */
    image-rendering: -webkit-optimize-contrast;
    mix-blend-mode: screen;    /* Odstránenie čiernej */
    
    filter: 
        drop-shadow(0 0 20px var(--primary-glow)) 
        contrast(1.3) 
        saturate(1.2) 
        brightness(1.1);

    /* Animácia */
    animation: floating 5s ease-in-out infinite;
    border-radius: 20px;
}

/* --- RESPONSIVITA (MOBIL) --- */
@media (max-width: 992px) {
    .hero-flex-container {
        flex-direction: column; /* Pod seba */
        text-align: center;
        gap: 30px;
    }

    /* Na mobile dáme GIF hore, aby to vyzeralo lepšie */
    .hero-gif {
        order: -1; 
        justify-content: center;
        margin-bottom: 10px;
    }

    /* Na mobile ešte menší */
    .hero-gif img {
        max-width: 220px; 
    }

    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 3rem; /* Menšie písmo na mobile */
    }
    
    /* Na mobile pre lepšiu čitateľnosť vypneme "dutý" efekt a dáme plnú farbu */
    .hero-content h1 span.outline-text {
        -webkit-text-stroke: 0;
        color: var(--primary);
    }
}

/* Animácia */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Herné Karty (Minihry) */
.games-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin: 60px 0;
}
.game-card {
    background: var(--bg-surface); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; overflow: hidden; transition: 0.4s;
}
.game-card:hover {
    transform: translateY(-10px); border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.15);
}
.game-card img { width: 100%; height: 220px; object-fit: cover; }
.game-info { padding: 25px; text-align: center; }
.game-info h3 { color: white; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 10px; }
.game-info p { color: var(--text-muted); font-size: 0.9rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 40px 0; }
.stat-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    padding: 40px 20px; text-align: center; border-radius: 15px;
}
.stat-card h3 { font-size: 3.5rem; color: var(--primary); font-weight: 800; line-height: 1; }
.stat-card p { margin-top: 10px; color: #888; text-transform: uppercase; letter-spacing: 2px; }

footer {
    /* Tmavý gradient zhora nadol */
    background: linear-gradient(180deg, #020203 0%, #0a0a10 100%);
    border-top: 1px solid rgba(0, 242, 255, 0.2); /* Neónový okraj */
    padding: 80px 0 40px; margin-top: 100px;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5); /* Tieň dohora */
}

/* Jemná žiara nad footerom */
footer::before {
    content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary);
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; }
.footer-col h4 { 
    color: white; margin-bottom: 25px; text-transform: uppercase; 
    border-left: 3px solid var(--primary); padding-left: 15px; 
    font-size: 1.1rem; letter-spacing: 1px;
}

.footer-col ul li a { 
    color: #777; transition: 0.3s; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; 
}
.footer-col ul li a:hover { color: var(--primary); padding-left: 8px; text-shadow: 0 0 8px var(--primary-glow); }

.socials { display: flex; gap: 10px; }
.socials a {
    width: 45px; height: 45px; background: #111;
    display: flex; align-items: center; justify-content: center;
    color: white; border-radius: 5px; transition: 0.3s;
    border: 1px solid #222;
}
.socials a:hover { background: var(--primary); color: black; transform: translateY(-5px); border-color: var(--primary); }

.footer-bottom {
    text-align: center; margin-top: 60px; padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05); color: #444; font-size: 0.85rem;
}

/* --- 10. ANIMACIE --- */
@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.5; }
}
/* --- PRAVIDLÁ (RULES SECTION) --- */
.rules-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar | Obsah */
    gap: 40px;
    align-items: start;
}

/* 1. Sidebar (Bočné menu) */
.rules-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 30px);
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.rules-sidebar h3 {
    color: white;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.rules-sidebar ul li { margin-bottom: 5px; }

.rules-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.rules-sidebar a:hover, .rules-sidebar a.active {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding-left: 20px;
}

/* 2. Obsah Pravidiel (Karty) */
.rules-content section {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Farebný prúžok vľavo */
.rules-content section::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.rule-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.rule-header h2 {
    font-size: 1.8rem; color: white; margin: 0; text-transform: uppercase;
}

/* 3. Tagy (Farebné štítky) */
.rule-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.tag-general { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.tag-lunario { background: rgba(0, 242, 255, 0.15); color: var(--primary); border: 1px solid var(--primary); }
.tag-jailbreak { background: rgba(255, 165, 0, 0.15); color: orange; border: 1px solid orange; }
.tag-cs { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid #ff4757; }
.tag-discord { background: rgba(88, 101, 242, 0.15); color: #5865F2; border: 1px solid #5865F2; }

/* 4. Zoznamy pravidiel */
.rules-list {
    list-style: none; padding: 0; counter-reset: rule-counter;
}

.rules-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Číslovanie pravidiel */
.rules-list li::before {
    counter-increment: rule-counter;
    content: counter(rule-counter);
    position: absolute; left: 0; top: 2px;
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.05);
    color: var(--primary);
    font-weight: 700; font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

/* 5. Jailbreak Špeciálne formátovanie */
.jb-sub {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(255,255,255,0.03);
}

.jb-sub h3 {
    color: var(--text-main); font-size: 1.2rem; margin-bottom: 10px;
    border-left: 3px solid var(--primary); padding-left: 10px;
}

.jb-sub p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; font-style: italic; }

/* Separátor */
.separator {
    height: 1px; background: rgba(255,255,255,0.05);
    margin: 40px 0; border: none;
}

/* Odkazy v texte */
.rules-content a { color: var(--primary); text-decoration: underline; }
.rules-content a:hover { color: white; }

/* Responsivita */
@media (max-width: 900px) {
    .rules-container { grid-template-columns: 1fr; }
    .rules-sidebar { position: relative; top: 0; margin-bottom: 30px; }
}

.page-header {
    padding-top: 160px; /* Toto je tá "pekná medzera" (rovnaká ako na indexe) */
    padding-bottom: 50px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05) 0%, transparent 70%); /* Jemné pozadie */
}

.page-header h1 {
    font-size: 3.5rem; 
    font-weight: 900; 
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.2;
}



/* --- A-TEAM PRO REDESIGN (Cyber-Tech Style) --- */

.ateam-wrapper {
    padding-bottom: 100px;
}

/* Nadpisy sekcií s čiarou */
.section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 60px 0 40px;
}

.section-divider span {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.section-divider .line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    box-shadow: 0 0 10px var(--primary);
    opacity: 0.5;
}

/* GRID Layout */
.ateam-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 50px 30px; /* Väčšia medzera vertikálne */
}

/* --- COLOR VARIABLES (Farby rankov) --- */
.rank-majitel      { --rank-c: #ff3b3b; --rank-bg: rgba(255, 59, 59, 0.1); }
.rank-spolumajitel { --rank-c: #d63031; --rank-bg: rgba(214, 48, 49, 0.1); }
.rank-admin        { --rank-c: #e17055; --rank-bg: rgba(225, 112, 85, 0.1); }
.rank-manazer      { --rank-c: #fdcb6e; --rank-bg: rgba(253, 203, 110, 0.1); }

.rank-hlhelper     { --rank-c: #00cec9; --rank-bg: rgba(0, 206, 201, 0.1); }
.rank-helper       { --rank-c: #0984e3; --rank-bg: rgba(9, 132, 227, 0.1); }
.rank-zkhelper     { --rank-c: #74b9ff; --rank-bg: rgba(116, 185, 255, 0.1); }

.rank-hlbuilder    { --rank-c: #00b894; --rank-bg: rgba(0, 184, 148, 0.1); }
.rank-builder      { --rank-c: #55efc4; --rank-bg: rgba(85, 239, 196, 0.1); }
.rank-zkbuilder    { --rank-c: #a3cb38; --rank-bg: rgba(163, 203, 56, 0.1); }

.rank-vip, .rank-mvip, .rank-sponzor { --rank-c: #a29bfe; --rank-bg: rgba(162, 155, 254, 0.1); }
.ateam-card { --rank-c: #fff; } /* Default */


/* --- PRO CARD DESIGN --- */
.pro-card {
    position: relative;
    background: #0f0f12; /* Veľmi tmavá šedá, takmer čierna */
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 30px;
    
    /* TECH SHAPE (Zrezané rohy) */
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 20px
    );
    
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Svietiaca čiara hore */
.card-border-top {
    position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--rank-c);
    box-shadow: 0 0 15px var(--rank-c);
    z-index: 2;
}

/* Glow efekt na pozadí */
.card-glow {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, var(--rank-bg), transparent);
    z-index: 0;
    transition: 0.3s;
}

/* Avatar - levitujúci */
.pro-avatar {
    position: absolute;
    top: 30px;
    width: 120px;
    height: 120px;
    z-index: 2;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.pro-avatar img {
    width: 100%; height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    transform: rotate(-10deg); /* Jemné natočenie */
}

/* Texty */
.pro-content {
    z-index: 2;
    text-align: center;
    width: 100%;
}

.pro-content h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rank Badge */
.pro-badge {
    display: inline-block;
    padding: 6px 20px;
    background: transparent;
    border: 1px solid var(--rank-c);
    color: var(--rank-c);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Skosený badge */
    transform: skewX(-15deg);
    box-shadow: 0 0 10px var(--rank-bg);
}

/* --- HOVER EFEKTY (Tu sa deje mágia) --- */
.pro-card:hover {
    transform: translateY(-10px);
    background: #15151a;
    border-color: rgba(255,255,255,0.1);
}

.pro-card:hover .pro-avatar {
    top: 15px; /* Hlava vyletí vyššie */
    transform: scale(1.1);
}

.pro-card:hover .pro-avatar img {
    transform: rotate(0deg); /* Hlava sa narovná */
    filter: drop-shadow(0 0 20px var(--rank-c)); /* Hlava začne svietiť farbou ranku */
}

.pro-card:hover .pro-badge {
    background: var(--rank-c);
    color: #000;
    box-shadow: 0 0 20px var(--rank-c);
}

.pro-card:hover .card-glow {
    height: 80%; /* Glow sa zväčší */
    opacity: 1;
}

/* --- ŠTÝL PRE POPULÁRNU KARTU --- */

/* 1. Pridáme efekt žiary pre celú kartu, aby "kričala", že je špeciálna */
.game-card.popular {
    position: relative; /* DÔLEŽITÉ: Aby odznak ostal vo vnútri karty */
    border-color: var(--primary) !important; /* Vynútime modrý okraj */
    background: linear-gradient(180deg, rgba(0, 242, 255, 0.05) 0%, var(--bg-surface) 100%);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15); /* Modrá žiara okolo */
    transform: translateY(-5px); /* Karta bude trošku vyššie ako ostatné */
}

/* 2. Štýl pre odznak (Badge) vpravo hore */
.popular-badge {
    position: absolute;
    top: -5px;          /* Mierne posunuté vyššie, aby to pasovalo k väčšej veľkosti */
    left: 0;
    background: var(--primary);
    color: #000;
    
    /* --- ZMENY PRE ZVÄČŠENIE --- */
    font-size: 0.9rem;  /* Pôvodne 0.75rem -> Väčšie písmo */
    padding: 8px 16px;  /* Pôvodne 6px 12px -> Väčší rámček */
    /* --------------------------- */

    font-weight: 900;
    text-transform: uppercase;
    border-radius: 6px; /* Mierne väčšie zaoblenie */
    box-shadow: 0 0 15px var(--primary);
    z-index: 10;
    letter-spacing: 1.5px; /* Trochu širšie rozostupy písmen */
    
    /* Animácia pulzovania */
    animation: badge-pulse 2s infinite;
}

/* Malý trojuholník pod odznakom (pre 3D efekt) - Voliteľné */
.popular-badge::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 5px;
    border-width: 5px;
    border-style: solid;
    border-color: #008c9e transparent transparent transparent; /* Tmavší odtieň modrej */
}

@keyframes badge-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 242, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); }
}

/* Responsivita */
@media (max-width: 600px) {
    .ateam-grid-pro {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 60px 15px; /* Menšie medzery */
    }
    .pro-card { height: 240px; }
    .pro-avatar { width: 90px; height: 90px; top: 20px; }
    .pro-content h3 { font-size: 1.1rem; }
    .pro-badge { font-size: 0.7rem; padding: 4px 10px; }
}