:root {
  --primary-dark: #6366F1;
  --primary-light: #818CF8;
  --secondary-bg: #1E1E2D;
  --dark-gray: #E5E7EB;
  --medium-gray: #D1D5DB;
  --light-gray: #111827;
  --accent-yellow: #FBBF24;
  --accent-red: #EF4444;
  --accent-green: #22C55E;
  --accent-purple: #A855F7;
  --card-bg: #1F2937;
  --header-bg: #1E1E2D;
  --text-color: #F3F4F6;
  --muted-text: #9CA3AF;
  --footer-bg: #1E1E2D;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-text: #E5E7EB;
}
body.dark-theme {
  background-color: var(--light-gray);
  color: var(--text-color);
}
.dark-theme header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--footer-border);
}
.dark-theme footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}
.dark-theme .bg-indigo-100 {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}
.dark-theme .bg-indigo-200 {
  background-color: var(--header-bg) !important;
  border-top-color: var(--footer-border) !important;
}
.dark-theme .text-indigo-800 {
  color: var(--text-color) !important;
}
.dark-theme .text-indigo-700 {
  color: var(--muted-text) !important;
}
.dark-theme .text-indigo-700:hover {
  color: var(--accent-yellow) !important;
}
.dark-theme .bg-white {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}
.dark-theme .bg-secondary-bg {
  background-color: var(--secondary-bg) !important;
}
.dark-theme .text-dark-gray {
  color: var(--text-color) !important;
}
.dark-theme .text-medium-gray {
  color: var(--muted-text) !important;
}
.dark-theme .bg-indigo-200 {
  background-color: var(--card-bg) !important;
}
.dark-theme .hover\:bg-indigo-200:hover {
  background-color: var(--primary-dark) !important;
  color: white !important;
}
.dark-theme .navbar-desktop-nav-group a,
.dark-theme .navbar-desktop-auth-group a {
  color: var(--text-color);
}
.dark-theme .navbar-desktop-nav-group a:hover,
.dark-theme .navbar-desktop-auth-group a:hover {
  color: var(--accent-yellow);
}
.dark-theme input[type="text"],
.dark-theme input[type="password"],
.dark-theme input[type="email"] {
  background-color: var(--card-bg) !important; 
  color: var(--text-color) !important;       
  border-color: rgba(255, 255, 255, 0.1) !important; 
}
.dark-theme input::placeholder {
  color: var(--muted-text);
}
.dark-theme .game-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-theme .game-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.dark-theme .category-box {
  background-color: var(--card-bg);
  color: var(--text-color);
}
.dark-theme .category-box:hover {
  background-color: var(--primary-dark);
  color: white;
}
.dark-theme .category-dropdown-content {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dark-theme .category-dropdown-content a {
  color: var(--text-color);
}
.dark-theme .category-dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.dark-theme .bg-accent-yellow {
  color: #111827 !important;
}
.dark-theme .game-card-overlay {
  background-color: rgba(0, 0, 0, 0.8);
}
.dark-theme hr {
  border-color: rgba(255, 255, 255, 0.1);
}
.dark-theme .fa-search,
.dark-theme .fa-bars {
  color: var(--text-color);
}
.dark-theme input::placeholder {
  color: var(--muted-text);
}
.dark-theme aside .bg-white {
  background-color: var(--card-bg) !important;
}
.dark-theme .rounded-lg.shadow-md {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dark-theme .bg-white {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
}
.dark-theme .text-gray-700 {
  color: var(--text-color) !important;
}
.dark-theme .text-primary-dark {
  color: var(--accent-yellow) !important;
}
.dark-theme .hover\:text-primary-light:hover {
  color: var(--accent-yellow) !important;
}
.dark-theme .text-medium-gray {
  color: var(--muted-text) !important;
}
.dark-theme .bg-indigo-100 {
  background-color: var(--card-bg) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.dark-theme .text-indigo-700 {
  color: var(--muted-text) !important;
}
.dark-theme .hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
}
.dark-theme .category-dropdown-content a:hover {
  color: var(--accent-yellow) !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-theme .navbar-desktop-nav-group a:hover,
.dark-theme .category-dropdown-button:hover {
  color: var(--accent-yellow) !important;
}
.dark-theme .rounded-xl {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .hover\:text-primary-light:hover {
  color: var(--accent-yellow) !important;
}
.dark-theme .text-medium-gray {
  color: var(--muted-text) !important;
}
.dark-theme .bg-gray-200 {
  background-color: var(--card-bg) !important;
  color: var(--muted-text) !important;
}
.dark-theme #dynamicCategoryContainer a.category-box:hover {
  color: var(--accent-yellow) !important;
  background-color: var(--card-bg) !important;
  transform: translateY(-2px);
}
.dark-theme .bg-accent-yellow {
  color: #111827 !important;
  background-color: var(--accent-yellow) !important;
}
.dark-theme .hover\:bg-yellow-300:hover {
  background-color: #FCD34D !important;
  color: #111827 !important;
}
.dark-theme .game-card h3.text-gray-800 {
    color: var(--text-color) !important;
}
/* Styl pro položky seznamu UL/OL (body) */
.dark-theme ul li,
.dark-theme ol li {
    color: var(--text-color) !important;
    line-height: 1.6; /* Pro lepší čitelnost */
    margin-left: 1.5em; /* Odsazení odrážek */
}

/* Nastavení barvy odrážek (volitelné, pokud jsou špatně vidět) */
.dark-theme ul {
    /* Můžete nastavit barvu tečky odrážky, pokud není vidět */
    list-style-type: disc; 
    color: var(--text-color);
}
.dark-theme p,
.dark-theme ul,
.dark-theme ol {
    /* 1em vytvoří mezeru zhruba o výšce jednoho řádku. */
    margin-bottom: 1em !important; 
    
    color: var(--text-color) !important;
    margin-top: 0 !important;
}.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    /* 🚀 NOVÉ NASTAVENÍ VELIKOSTI PÍSMA */
    font-size: 18px !important; 
    
    /* Původní nastavení stylů: */
    font-weight: bold !important; 
    color: var(--text-color) !important;
    
}
.dark-theme .description-content h2,
.dark-theme .description-content h3,
.dark-theme .description-content h4,
.dark-theme .description-content h5,
.dark-theme .description-content h6 {
    /* POUZE TYTO MEZERY CHCEŠ ZMĚNIT! */
    margin-top: 1.5em !important; 
    margin-bottom: 0.8em !important; 
}
/* Styling pro čistý seznam detailů hry (DL) */
.dark-theme .game-details-list {
    margin-bottom: 20px;
}

.dark-theme .game-details-list dt {
    /* Tučné písmo pro název detailu (klíč) */
    font-weight: bold;
    color: var(--text-color);
    padding: 5px 0;
    width: 35%; /* Nastaví šířku prvního sloupce */
    float: left; /* Umožní zarovnání vedle sebe */
    clear: left; /* Zajistí, že každý detail začíná na novém řádku */
    box-sizing: border-box;
}

.dark-theme .game-details-list dd {
    /* Zarovnání dat (hodnota) */
    margin-left: 35%; /* Začíná hned za DT */
    padding: 5px 0;
    color: var(--muted-text);
}

/* Přidáme linku pro lepší vizuální separaci (volitelné) */
.dark-theme .game-details-list dt {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-theme .game-details-list dd {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-theme .description-content a {
    color: var(--primary-light) !important; 
    text-decoration: underline !important; 
    transition: color 0.2s ease; 
}

.dark-theme .description-content a:hover {
    color: var(--accent-yellow) !important; 
    text-decoration: none !important; 
}