:root {
  --primary-color: #e54888;    /* sytější malinová, ne neon */
  --secondary-color: #6a56ff;  /* královská modrá */
  --accent-color: #4acfcf;     /* tlumená tyrkysová, ne neon */
  --light-color: #f7f7fb;      /* světlejší než dřív */
  --dark-color: #1b1b35;       /* tmavě modrošedá */
  --text-color: #2c2c4a;       /* tmavší šedomodrá */
  --text-color-light: #d9d9f3; /* jemná světlá modrá */
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.dark-mode {
  --primary-color: #e56a95;    /* jemnější růžová */
  --secondary-color: #7c67ff;  /* jemnější fialová */
  --accent-color: #6fcfcf;     /* jemná tyrkysová */
  --light-color: #121229;      /* velmi tmavá modrošedá */
  --dark-color: #d6d7f5;       /* světlá modrošedá */
  --text-color: #d6d7f5;       /* světlá modrá */
  --text-color-light: #2c2c4a; /* tmavá šedomodrá */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: var(--transition);
}
.floating-coffee {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #FFDD00, #FFC107);
  color: #1a1a1a;
  padding: 14px 18px 10px; /* víc spodního paddingu pro sub-text */
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(255, 221, 0, 0.6);
  font-size: 20px;
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
  display: flex;
  flex-direction: column; /* aby šly texty pod sebe */
  align-items: center;
  gap: 4px;
  transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  animation: floatUpDown 3s ease-in-out infinite;
  width: 140px; /* pevná šířka, aby byl nápis pod tlačítkem vycentrovaný */
  text-align: center;
}

.floating-coffee:hover {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.8);
  transform: scale(1.1);
}

.floating-coffee .coffee-icon {
  width: 80px;      /* velikost obrázku na PC */
  height: 80px;
  margin-bottom: 4px;
  object-fit: contain;
}

/* Menší ikona na mobilních zařízeních (max šířka 600px) */
@media (max-width: 600px) {
  .floating-coffee .coffee-icon {
    width: 28px;
    height: 28px;
  }

  .floating-coffee .main-text {
    font-size: 16px;
  }

  .floating-coffee .sub-text {
    font-size: 15px;
  }
}

.floating-coffee .main-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.floating-coffee .sub-text {
  font-size: 15px;
  font-weight: 400;
  color: #5a5a00; /* tmavší žlutá pro kontrast */
  line-height: 1;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
/* Floating Background */
/* Floating Background */
.floating-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-item {
  position: absolute;
  bottom: -100px; /* Začátek pod obrazovkou */
  animation: float 18s linear infinite;
  opacity: 0; /* Start neviditelný */
  animation: float 18s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 107, 182, 0.5));
  transition: var(--transition);
}

@keyframes float {
  0% { 
    transform: translateY(0); 
    opacity: 0; /* začátek neviditelný */
  }
  10% {
    opacity: 0.4; /* postupné zviditelnění během prvních pár % */
  }
  100% { 
    transform: translateY(-120vh) rotate(360deg); 
    opacity: 0.4;
  }
}

/* Header */
header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  transition: var(--transition), transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body.dark-mode header {
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.7), rgba(20, 20, 40, 0.4));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-dark);
}

/* Container */
.container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
  user-select: none;
  cursor: pointer;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.logo:hover::after {
  opacity: 1;
  height: 5px;
  box-shadow: 0 0 8px var(--accent-color);
}

.logo:hover {
  transform: scale(1.08) rotate(1.5deg);
}

.logo img {
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  filter: none;
}

body.dark-mode .logo img {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}
/* Nav Links */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 14px;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  border-radius: 6px;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 70%;
  left: 50%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-color);
  transform: scale(1.05);
  font-weight: 600;
  background: rgba(255, 107, 182, 0.1);
}

.nav-links li a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Language Selector */
.lang-selector {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 59, 142, 0.15);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

body.dark-mode .lang-selector {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(44, 255, 160, 0.2);
}

.lang-option {
  padding: 8px 18px;
  border-radius: 26px;
  font-size: 0.95rem;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.lang-option.active {
  background: var(--accent-color);
  color: var(--text-color-light);
  box-shadow: 0 0 14px var(--accent-color);
}

.lang-option:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-1px);
  box-shadow: 0 0 12px var(--primary-color);
}

.lang-option:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Ripple effect for lang-option */
.lang-option::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: 1;
}

.lang-option:active::before {
  width: 100px;
  height: 100px;
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  color: var(--accent-color);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 0 10px var(--accent-color);
}

.theme-toggle:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.theme-toggle[aria-label="Switch to dark mode"] i::before {
  content: '\f186'; /* Moon icon */
}

.theme-toggle[aria-label="Switch to light mode"] i::before {
  content: '\f185'; /* Sun icon */
}

/* Menu Icon */
.menu-icon {
  display: none;
  font-size: 1.9rem;
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition);
  padding: 8px;
  border-radius: 50%;
}

.menu-icon:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.menu-icon:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
main {
  padding: 5rem 0;
  min-height: calc(100vh - 140px);
}

.hero {
  text-align: center;
  margin-bottom: 5rem;
  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  max-width: 850px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  opacity: 0.85;
}

.search-container {
  max-width: 750px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 18px 55px 18px 22px;
  border-radius: 14px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

body.dark-mode .search-input {
  background: rgba(25, 25, 50, 0.95);
  color: var(--text-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(255, 59, 142, 0.25);
}

.search-icon {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--primary-color);
}

.tag-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3.5rem;
}

.tag {
  padding: 10px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  font-weight: 400;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

body.dark-mode .tag {
  background: rgba(255, 255, 255, 0.04);
}

.tag:hover, .tag.active {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: scale(1.05);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.article-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

body.dark-mode .article-card {
  background: linear-gradient(145deg, rgba(25, 25, 50, 0.98), rgba(25, 25, 50, 0.9));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.article-image {
  height: 240px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image img {
  transform: scale(1.08);
}

.article-content {
  padding: 26px;
}

.article-date {
  font-size: 0.8rem;
  color: #6a6a8e;
  margin-bottom: 14px;
  font-weight: 300;
}

body.dark-mode .article-date {
  color: #a0a0cc;
}
body.dark-mode .article-tag {
  color: #0d0d1f;
}
.article-title {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--text-color);
}

.article-excerpt {
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.7;
  font-weight: 300;
  opacity: 0.9;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.article-tag {
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--accent-color);
  color: var(--dark-color);
  font-size: 0.75rem;
  font-weight: 400;
}

.read-more {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 400;
  font-size: 0.85rem;
  transition: var(--transition);
}

.read-more:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

body.dark-mode .article-container {
  background: linear-gradient(145deg, rgba(25, 25, 50, 0.98), rgba(25, 25, 50, 0.9));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.article-header {
  text-align: center;
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #6a6a8e;
  margin-bottom: 1rem;
}

body.dark-mode .article-meta {
  color: #a0a0cc;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-color);
}

.back-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 24px;
  font-weight: 400;
  font-size: 0.9rem;
  transition: var(--transition);
  margin-bottom: 2rem;
}

.back-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.related-articles {
  margin: 4rem auto;
  max-width: 1320px;
}

.related-articles h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.related-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

body.dark-mode .related-card {
  background: linear-gradient(145deg, rgba(25, 25, 50, 0.98), rgba(25, 25, 50, 0.9));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.related-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.related-image {
  height: 180px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.related-card:hover .related-image img {
  transform: scale(1.08);
}

.related-content {
  padding: 20px;
}

.related-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-color);
}

.related-excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.9;
}

/* About Section */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-radius: 20px;
  padding: 4rem 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

body.dark-mode .about-section {
  background: linear-gradient(145deg, rgba(25, 25, 50, 0.98), rgba(25, 25, 50, 0.9));
}

.about-section h2 {
  font-family: 'Comic Neue', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 1.5s ease;
}

.about-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 2rem auto;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-image:hover {
  transform: scale(1.05);
  border-color: var(--secondary-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-content h3 {
  font-family: 'Comic Neue', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.about-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.about-content a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.about-content h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-color);
}

.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content li {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.about-content li::before {
  content: '✨';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Kawaii Footer Image */
.kawaii-footer-img {
  display: block;
  width: 100%; /* nebo např. 100vw */
  max-width: 1920px; /* max šířka, pokud chceš omezit */
  height: auto;
  margin: 1rem auto;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

body.dark-mode .kawaii-footer-img {
  border-color: var(--accent-color);
}

.kawaii-footer-img:hover {
  transform: scale(1.02);
  border-color: var(--secondary-color);
}

/* Footer */
footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  color: var(--text-color);
  padding: 3.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode footer {
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.25), rgba(10, 10, 20, 0.1));
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.social-links {
  display: flex;
  gap: 1.8rem;
}

.social-link {
  color: var(--text-color);
  font-size: 1.4rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 0;
    text-align: center;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
  }

  body.dark-mode .nav-links {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.4), rgba(10, 10, 20, 0.2));
  }

  .nav-links li {
    padding: 1rem 0;
  }

  .menu-icon {
    display: block;
  }

  .hero h2 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 3rem 1.5rem;
  }

  .about-section h2 {
    font-size: 2.4rem;
  }

  .about-content h3 {
    font-size: 1.8rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-input {
    width: 100%;
  }

  .newsletter-button {
    width: 50%;
  }

  .kawaii-footer-img {
    width: 10rem; /* Approx. 160px */
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 2rem 1rem;
  }

  .about-image {
    width: 150px;
    height: 150px;
  }

  .about-content {
    padding: 0 1rem;
  }

  .kawaii-footer-img {
    width: 8rem; /* Approx. 128px */
  }
}

:root {
  --primary-color: #e54888;
  --secondary-color: #6a56ff;
  --accent-color: #4acfcf;
  --light-color: #f7f7fb;
  --dark-color: #1b1b35;
  --text-color: #2c2c4a;
  --text-color-light: #d9d9f3;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.dark-mode {
  --primary-color: #e56a95;
  --secondary-color: #7c67ff;
  --accent-color: #6fcfcf;
  --light-color: #121229;
  --dark-color: #1a1c2c;      /* Tmavě fialová / šedá (pozadí) */
  --text-color: #e0dfff;      /* Světle fialová (text) */
  --text-color-light: #2c2c4a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: var(--transition);
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 0.75rem 1rem;
  }

  .container {
    width: 94%;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    display: none;
    background: var(--light-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
  }

  body.dark-mode .nav-links {
    background: var(--dark-color);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-icon {
    display: block;
  }

  .floating-coffee {
    bottom: 16px;
    right: 16px;
    width: 100px;
    padding: 10px;
    font-size: 16px;
  }

  .floating-coffee .coffee-icon {
    width: 28px;
    height: 28px;
  }

  .floating-coffee .main-text {
    font-size: 14px;
  }

  .floating-coffee .sub-text {
    font-size: 12px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .search-container {
    padding: 0 1rem;
  }

  .search-input {
    font-size: 0.9rem;
    padding: 14px 45px 14px 18px;
  }

  .tag-filters {
    padding: 0 1rem;
    gap: 8px;
  }

  iframe[src*="youtube"] {
    width: 100%;
    height: 240px;
  }
}

@media (max-width: 480px) {
  .lang-selector {
    gap: 4px;
    padding: 4px;
  }

  .lang-option {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .theme-toggle {
    font-size: 1.2rem;
    padding: 6px;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo img {
    height: 20px;
  }

  .search-icon {
    font-size: 1rem;
    right: 18px;
  }

  iframe[src*="youtube"] {
    height: 200px;
  }
}