:root {
    --bg-color: #0b0f19; --panel-bg: #151b2b; --text-main: #e2e8f0;
    --gold: #d4af37; --silver: #a0aabf; --neon-blue: #00f3ff; --neon-purple: #b026ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; }

nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: rgba(11, 15, 25, 0.95); border-bottom: 1px solid rgba(212, 175, 55, 0.2); position: sticky; top: 0; z-index: 1000; }
.logo { display: flex; align-items: center; gap: 15px; font-size: 24px; font-weight: bold; color: var(--gold); text-decoration: none; letter-spacing: 2px; }
.logo img { height: 50px; border-radius: 4px; }
.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; margin-left: 30px; font-size: 14px; text-transform: uppercase; font-weight: bold; transition: 0.3s; }
.nav-links a:hover { color: var(--neon-blue); text-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }

/* Styl pro tlačítka jazyků */
.lang-switch { margin-left: 30px; display: flex; gap: 10px; }
.lang-switch button { background: transparent; border: 1px solid var(--silver); color: var(--silver); padding: 5px 10px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.lang-switch button:hover { color: var(--gold); border-color: var(--gold); }

header { text-align: center; padding: 100px 20px; background: radial-gradient(circle at top, #1a233a, var(--bg-color)); }
h1 { font-size: 3.5rem; margin-bottom: 15px; background: linear-gradient(45deg, var(--gold), var(--silver)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: 1.2rem; color: var(--silver); max-width: 600px; margin: 0 auto; }

.container { max-width: 1200px; margin: 60px auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--panel-bg); border-radius: 12px; padding: 40px 30px; text-align: center; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.card.nexus::before { background: var(--neon-blue); } .card.ludus::before { background: var(--gold); } .card.kronika::before { background: var(--neon-purple); }
.card:hover { transform: translateY(-10px); }
.card.nexus:hover { box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1); border-color: var(--neon-blue); }
.card.ludus:hover { box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1); border-color: var(--gold); }
.card.kronika:hover { box-shadow: 0 10px 30px rgba(176, 38, 255, 0.1); border-color: var(--neon-purple); }
.card h2 { font-size: 1.8rem; margin-bottom: 15px; } .card p { color: var(--silver); margin-bottom: 30px; font-size: 0.95rem; flex-grow: 1; }

.btn { display: inline-block; padding: 10px 25px; border-radius: 25px; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; border: 1px solid; }
.btn-nexus { color: var(--neon-blue); border-color: var(--neon-blue); } .btn-nexus:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 15px var(--neon-blue); }
.btn-ludus { color: var(--gold); border-color: var(--gold); } .btn-ludus:hover { background: var(--gold); color: #000; box-shadow: 0 0 15px var(--gold); }
.btn-kronika { color: var(--neon-purple); border-color: var(--neon-purple); } .btn-kronika:hover { background: var(--neon-purple); color: #fff; box-shadow: 0 0 15px var(--neon-purple); }
footer { text-align: center; padding: 30px; color: #64748b; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; font-size: 14px; }

/* === RESPONZIVITA PRO MOBILY (KOUZLO) === */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { flex-direction: column; gap: 15px; width: 100%; text-align: center; }
    .nav-links a { margin: 0; font-size: 16px; }
    .lang-switch { margin-left: 0; justify-content: center; margin-top: 10px; }
    h1 { font-size: 2.2rem; }
    header { padding: 60px 20px; }
    .container { grid-template-columns: 1fr; margin: 30px auto; }
}
/* === STYLY PRO KRONIKU === */
.btn-zpet { padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); }
.btn-zpet:hover { background: var(--neon-purple); border-color: var(--neon-purple); color: white; box-shadow: 0 0 15px rgba(176, 38, 255, 0.4); }

.header-kronika { text-align: center; padding: 80px 20px; background: radial-gradient(circle at top, #1a0b2e, var(--bg-color)); }
.header-kronika h1 { background: none; -webkit-text-fill-color: var(--neon-purple); color: var(--neon-purple); text-shadow: 0 0 20px rgba(176, 38, 255, 0.4); }

.story-container { max-width: 1000px; margin: 60px auto; padding: 0 20px; }
.story-card { background: var(--panel-bg); border-radius: 12px; padding: 40px; margin-bottom: 40px; border-left: 4px solid var(--neon-purple); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.story-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 10px; }
.story-title { font-size: 2rem; color: var(--gold); }
.game-tag { background: rgba(176, 38, 255, 0.1); color: var(--neon-purple); padding: 5px 15px; border-radius: 15px; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; }
.story-content { color: var(--silver); margin-bottom: 30px; text-align: justify; }
.media-placeholder { width: 100%; height: 400px; background: #000; border: 1px solid rgba(176, 38, 255, 0.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #555; font-style: italic; text-align: center; padding: 20px;}

@media (max-width: 768px) {
    .story-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .story-title { font-size: 1.5rem; }
    .media-placeholder { height: 250px; }
}
/* === STYLY PRO LUCČINU KNIHOVNU === */
.header-knihovna { text-align: center; padding: 80px 20px; background: radial-gradient(circle at top, #2e2311, var(--bg-color)); }
.header-knihovna h1 { background: none; -webkit-text-fill-color: #fce6a8; color: #fce6a8; text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

.library-container { max-width: 1000px; margin: 60px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 40px; }
.book-card { display: flex; background: var(--panel-bg); border-radius: 12px; overflow: hidden; border: 1px solid rgba(212, 175, 55, 0.15); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: 0.3s; }
.book-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15); border-color: rgba(212, 175, 55, 0.4); }

.book-cover { width: 30%; background: #1a1610; display: flex; align-items: center; justify-content: center; border-right: 1px solid rgba(255, 255, 255, 0.05); color: #555; font-style: italic; position: relative; min-height: 300px; text-align: center; padding: 20px;}
/* Vytvoření iluze hřbetu knihy na levé straně */
.book-cover::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 10px; background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(255,255,255,0.05)); }

.book-info { padding: 40px; width: 70%; display: flex; flex-direction: column; }
.book-status { align-self: flex-start; background: rgba(212, 175, 55, 0.1); color: var(--gold); padding: 5px 15px; border-radius: 15px; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.book-title { font-size: 2.2rem; color: #fce6a8; margin-bottom: 20px; }
.book-desc { color: var(--silver); margin-bottom: 30px; text-align: justify; flex-grow: 1; }
.book-actions { display: flex; gap: 15px; }
.btn-book { padding: 10px 25px; border-radius: 25px; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; border: 1px solid var(--gold); color: var(--gold); }
.btn-book:hover { background: var(--gold); color: #000; box-shadow: 0 0 15px var(--gold); }

@media (max-width: 768px) {
    .book-card { flex-direction: column; }
    .book-cover { width: 100%; height: 250px; min-height: 250px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .book-info { width: 100%; padding: 25px; }
    .book-title { font-size: 1.8rem; }
}
/* === STYLY PRO TÝM A ČTEČKU === */
.section-team { padding: 80px 20px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.section-team h2 { font-size: 2.5rem; color: var(--gold); margin-bottom: 10px; }
.section-team .subtitle { margin-bottom: 50px; color: var(--silver); }

.team-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.team-member { background: var(--panel-bg); padding: 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.02); transition: 0.3s; display: flex; flex-direction: column; align-items: center; }
.team-member:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.team-member.jiskra:hover { border-color: var(--neon-blue); box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1); }

.avatar { width: 80px; height: 80px; background: #1a1610; border-radius: 50%; margin-bottom: 20px; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--gold); font-weight: bold; }
.avatar.jiskra-avatar { border-color: var(--neon-blue); color: var(--neon-blue); background: rgba(0, 243, 255, 0.05); }

.team-member h3 { font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.member-role { font-size: 0.85rem; color: var(--neon-purple); text-transform: uppercase; font-weight: bold; margin-bottom: 15px; letter-spacing: 1px; }
.member-desc { color: var(--silver); font-size: 0.95rem; line-height: 1.5; text-align: center; }

/* Čtečka */
body.reader-bg { background-color: #12100d; } 
.reader-container { max-width: 800px; margin: 40px auto; padding: 60px 40px; background: #1a1612; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); border: 1px solid rgba(212, 175, 55, 0.15); }
.chapter-title { font-size: 2.5rem; color: #fce6a8; text-align: center; margin-bottom: 10px; font-family: 'Georgia', serif; }
.chapter-subtitle { color: var(--silver); text-align: center; margin-bottom: 40px; font-size: 1.2rem; font-family: 'Georgia', serif; border-bottom: 1px solid rgba(212, 175, 55, 0.2); padding-bottom: 20px; }
.story-text { color: #d4cfc5; font-size: 1.15rem; line-height: 1.8; font-family: 'Georgia', serif; text-align: justify; }
.story-text p { margin-bottom: 20px; }
.btn-zpet-knihovna { display: inline-block; margin-bottom: 20px; color: var(--gold); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; font-weight: bold; transition: 0.3s; }
.btn-zpet-knihovna:hover { color: #fff; text-shadow: 0 0 10px var(--gold); }