/* --- ZÁKLADNÉ NASTAVENIA --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f3f3f3;
    transition: background 0.3s;
    scroll-behavior: smooth; /* smooth scroll */
}

.dark {
    background: #1b1b1b;
    color: white;
}

/* --- LOGO A JAZYKY (Fix blikania) --- */
[data-en], [data-sk], [data-de] {
    display: none !important;
}

[data-en].show, [data-sk].show, [data-de].show {
    display: inline-block !important;
}

.logo {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    min-height: 80px;
}

.logo span {
    display: block;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 5px;
    opacity: 0.8;
    margin-top: -5px;
}

/* --- HLAVIČKA --- */
header {
    background: linear-gradient(135deg, #3f5d73 0%, #2c3e50 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-bottom: 4px solid #e8f5bd;
    text-align: center;
}

.controls {
    display: flex;
    gap: 8px;
}

.lang, .theme {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px); /* menej náročné */
    padding: 8px 12px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.lang:hover, .theme:hover {
    background: #e8f5bd;
    color: #333;
    transform: scale(1.05);
}

/* --- NAVIGÁCIA --- */
nav {
    background: #d8d1be;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: center;
}

nav ul { list-style: none; margin: 0; padding: 0; }
nav li { display: inline-block; }

nav a {
    text-decoration: none;
    color: #444;
    padding: 8px 15px;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 14px;
    display: inline-block;
    margin: 0 5px;
}

nav a:hover, nav a.active {
    background: #3f5d73;
    color: white;
}

.dark nav { background: #252525; }
.dark nav a { color: #ddd; }
.dark nav a:hover, .dark nav a.active { background: #e8f5bd; color: #222; }

/* --- GRID A KARTY --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px); /* menej náročné */
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d; /* GPU akcelerácia */
}

.card:hover {
    transform: translate3d(0,-8px,0); /* GPU akcelerácia */
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.card h2 {
    margin: 0;
    padding: 12px;
    font-size: 16px;
    color: white;
    text-align: center;
    font-weight: 600;
}

/* --- FAREBNÉ KATEGÓRIE --- */
.pokemon { border-top-color: #F6CF6D; } .pokemon h2 { background: #F6CF6D; color: #333; }
.comics { border-top-color: #A03C3C; } .comics h2 { background: #A03C3C; }
.lego { border-top-color: #CF5D5D; } .lego h2 { background: #CF5D5D; }
.hockey { border-top-color: #2D4263; } .hockey h2 { background: #2D4263; }
.sneakers { border-top-color: #9A8686; } .sneakers h2 { background: #9A8686; }
.figures { border-top-color: #513E5C; } .figures h2 { background: #513E5C; }
.watches { border-top-color: #7FB5FF; } .watches h2 { background: #7FB5FF; }
.magic { border-top-color: #91AC8F; } .magic h2 { background: #91AC8F; }
.stamps { border-top-color: #E8C4C4; } .stamps h2 { background: #E8C4C4; }
.hotwheels { border-top-color: #F1935C; } .hotwheels h2 { background: #F1935C; }
.retro-video-games { border-top-color: #C6D69E; } .retro-video-games h2 { background: #C6D69E; color: #333; }
.sport-memorabilia { border-top-color: #66806A; } .sport-memorabilia h2 { background: #66806A; }
.coins { border-top-color: #AD8B73; } .coins h2 { background: #AD8B73; }

/* --- TABUĽKY A CENY --- */
table { width: 100%; border-collapse: collapse; }
tr { border-bottom: 1px solid #eee; transition: 0.2s; }
.dark tr { border-bottom: 1px solid #333; }
tr:nth-child(even) { background: rgba(0,0,0,0.02); }
.dark tr:nth-child(even) { background: rgba(255,255,255,0.02); }
tr:hover { background: rgba(232, 245, 189, 0.15) !important; }

td { padding: 10px; font-size: 13px; vertical-align: middle; }
td a { text-decoration: none; color: #333; display: inline-block; }
.dark td a { color: #eee; }
td a:hover { text-decoration: underline; }

td:last-child { text-align: right; font-weight: 600; width: 160px; line-height: 1.5; padding-right: 15px; }

.usd { color: #2e7d32; display: block; }
.eur { color: #3f5d73; display: block; font-weight: 500; }
.dark .usd { color: #81c784; }
.dark .eur { color: #a5c2d9; }

/* --- MEDAILY --- */
td:first-child { position: relative; padding-left: 35px !important; }
tr:nth-child(-n+3) td:first-child::before {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}
tr:nth-child(1) td:first-child::before { content: "🥇"; }
tr:nth-child(2) td:first-child::before { content: "🥈"; }
tr:nth-child(3) td:first-child::before { content: "🥉"; }

/* --- RESPONSIVE --- */
@media (min-width: 1050px) {
    header { flex-direction: row; justify-content: center; padding: 40px 20px; }
    .controls { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 600px) {
    td:last-child { width: 140px; }
    .grid { padding: 10px; }
}
@media (max-width: 480px) {
    .logo { font-size: 24px; }
    .logo span { font-size: 10px; letter-spacing: 2px; }
    td:first-child { padding-left: 30px !important; }
}

/* --- PÄTIČKA A REKLAMA --- */
footer {
    margin-top: 50px;
    padding: 40px 20px;
    background: #e0dbce; 
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}
.dark footer { background: #151515; border-top: 1px solid rgba(255,255,255,0.05); }

.disclaimer { max-width: 800px; margin: 0 auto; }
.disclaimer p { font-size: 12px; line-height: 1.6; color: #666; margin-bottom: 10px; }
.dark .disclaimer p { color: #999; }

.copyright { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 20px; opacity: 0.6; }

.ad-box {
    margin: 30px auto;
    max-width: 900px;
    padding: 15px;
    border: 1px dashed #888;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}
.ad-small { font-size: 12px; opacity: 0.6; }

body {
    opacity: 0;               /* stránka je skrytá pri načítaní */
    transition: opacity 0.3s; /* jemné vyjavovanie */
}

body.visible {
    opacity: 1;               /* odhalená stránka */
}

/* --- Špeciálne nastavenie pre komunitu bez rámčeka --- */
.community-content {
    background: transparent;
    color: inherit;
}


