/* ========================================
   МОДЕРЕН ПРОФЕСИОНАЛЕН ДИЗАЙН
   Bulls & Cows - Responsive Design
   ======================================== */

/* ========== ОСНОВНИ СТИЛОВЕ ========== */
:root {
  /* Цветова палитра - Светла тема */
  --primary-color: #391212;
  --primary-dark: #310f0f;
  --primary-light: #818cf8;
  --secondary-color: #f59e0b;
  --accent-color: #1e2260;
  
  /* Неутрални цветове */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  
  /* Границы и сенки */
  --border-color: #b1aedf;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Размери */
  --header-height: 60px;
  --nav-height: 70px;
  --max-width: 1200px;
  --sidebar-width: 300px;
  
  /* Анимации */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Тъмна тема */
.theme-dark {
  --primary-color: #391212;
  --primary-dark: #310f0f;
  --primary-light: #a5b4fc;
  
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-light: #94a3b8;
  
  --border-color: #334155;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* Скрит текст за screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== ГОРНА ЛЕНТА (Header Top) ========== */
.header-top {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 10%);
  color: white;
  padding: 10px 0;
  font-size: 14px;
  position: relative;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-top-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.header-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.header-tagline i {
  color: var(--secondary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Езикови бутони */
.header-lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-btn-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.lang-btn-header:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.lang-btn-header.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Бутон за тема */
.header-theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
}

.header-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(20deg) scale(1.1);
}

/* ========== ЛОГО СЕКЦИЯ ========== */
.logo-section {
  background: var(--bg-primary);
  padding: 5px 20px;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-image {
  max-width: 260px;
  transition: var(--transition);
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-subtitle {
  font-size: 16px;
  font-weight: 500;
  padding: 0px 10px;

}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 99;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  min-height: var(--nav-height);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff !important;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  transition: var(--transition-fast);
}

.nav-toggle:hover {
  color: #fff !important;
  transform: scale(1.1);
  opacity: 0.8;
}

.nav-toggle:active {
  color: #fff !important;
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  transition: all 0.3s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-2px);
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: white;
  border-radius: 3px 3px 0 0;
}

/* Логин форма в навигацията */
.login-form-inline {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.form-group-inline {
  position: relative;
}

.form-input-inline {
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  width: 150px;
  transition: var(--transition-fast);
}

.form-input-inline::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input-inline:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.btn-login-inline {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-login-inline:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-login-inline:active {
  transform: translateY(0);
}

/* Потребителско меню */
.user-menu-inline {
  margin-left: auto;
}

.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-dropdown-toggle:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.3);
}

.username {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 5px 0;
}

.logout-btn {
  color: #ef4444;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* ========== ОСНОВЕН LAYOUT ========== */
.main-layout {
  max-width: var(--max-width);
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 30px;
}

.main-content {
  min-width: 0;
}

/* ========== СЛАЙДЕР ========== */
.slider-section {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  position: relative;
}

.slider-container {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slider-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 40px;
  color: white;
}

.slide-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
  font-size: 18px;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.slider-dot.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

/* ========== СТАТИСТИКА ========== */
.stats-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-primary);
  padding: 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--border-color);
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== РЕКЛАМНИ БАНЕРИ ========== */
.ad-banner {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

.ad-728x90 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 728px;
  height: 90px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.ad-728x90::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: inherit;
  border-radius: 12px;
  z-index: -1;
}

.ad-728x90:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.3);
}

.ad-text {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* ========== КАК СЕ ИГРАЕ ========== */
.how-to-play {
  background: var(--bg-primary);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.step-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.step-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== ДЯСНА КОЛОНА (SIDEBAR) ========== */
.sidebar-right {
  position: relative;
}

.sidebar-sticky {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-block {
  background: var(--bg-primary);
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}

.sidebar-block:hover {
  box-shadow: var(--shadow-lg);
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.sidebar-title i {
  color: var(--primary-color);
}

.ad1-sidebar {
  display: block;
  transition: var(--transition);
  border-radius: 12px;
  overflow: hidden;
}

.ad1-sidebar:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.fb-box {
  background: var(--bg-primary);
  color: #2c55d0;
}

.fb-box .sidebar-title {
  color: #2c55d0;
}

.fb-like-box {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-top: 15px;
}

.fb-like-box i {
  font-size: 48px;
  margin-bottom: 15px;
}

.fb-like-box h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.fb-like-box p {
  opacity: 0.9;
  margin-bottom: 15px;
}

.sidebar-block ul {
  list-style: none;
}

.sidebar-block ul li {
  margin-bottom: 12px;
}

.sidebar-block a {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.sidebar-block a:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* ========== ФУТЪР ========== */
.footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-top: 3px solid var(--primary-color);
  margin-top: 50px;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  color: #e2e8f0;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 20px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.footer-section p {
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-section a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-section ul li i {
  color: var(--primary-light);
  width: 20px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  
  /* Вместо да скриваме sidebar-а, го показваме след основното съдържание */
  .sidebar-right {
    display: block;
    margin-top: 30px;
  }
  
  .sidebar-sticky {
    position: relative;
  }
  
  /* Адаптираме grid-а на sidebar блоковете за мобилни */
  .sidebar-sticky {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 992px) {
  :root {
    --nav-height: auto;
  }
  
  .header-top-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    text-align: left;
  }
  
  .header-tagline {
    font-size: 13px;
    flex: 1 1 100%;
    justify-content: center;
  }
  
  .header-top-left {
    flex: 1 1 100%;
    justify-content: center;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 15px 20px;
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }
  
  .nav-menu.active {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
	color: white;
  }
  
  .nav-link {
    padding: 15px;
    border-radius: 8px;
    color: white;
  }
  
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }
  
  .nav-link.active {
    background: rgba(65, 56, 89, 0.26);
    color: white;
  }
  
  .nav-link.active::after {
    display: none;
  }
  
  .login-form-inline {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
  }
  
  .form-input-inline {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .form-input-inline::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .btn-login-inline {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
  }
  
  .user-menu-inline {
    margin-left: 0;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
  }
  
  .user-dropdown-toggle {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
  }
  
  .user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .user-dropdown-menu {
    position: static;
    margin-top: 10px;
    box-shadow: none;
    border: none;
    background: var(--bg-tertiary);
  }
  
  .slider-container {
    height: 350px;
  }
  
  .slide-title {
    font-size: 24px;
  }
  
  .slide-description {
    font-size: 16px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-top-container {
    flex-direction: column;
    text-align: center;
  }
  
  .header-tagline {
    flex: 1 1 auto;
  }
  
  .header-top-left {
    flex: 1 1 auto;
  }
  
  .logo-image {
    max-width: 200px;
  }
  
  .logo-subtitle {
    font-size: 14px;
  }
  
  .slider-container {
    height: 300px;
  }
  
  .slide-overlay {
    padding: 25px;
  }
  
  .slide-title {
    font-size: 20px;
  }
  
  .slide-description {
    font-size: 14px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-card {
    padding: 25px;
  }
  
  .stat-icon {
    font-size: 40px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .how-to-play {
    padding: 25px;
  }
  
  .step-card {
    padding: 25px;
  }
  
  .ad-728x90 {
    height: 70px;
    font-size: 16px;
  }
  
  .footer-content {
    padding: 30px 20px 20px;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 8px 0;
  }
  
  .header-tagline {
    font-size: 12px;
  }
  
  .lang-btn-header {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .header-theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .logo-image {
    max-width: 180px;
  }
  
  .slider-container {
    height: 250px;
  }
  
  .slide-overlay {
    padding: 20px;
  }
  
  .slide-title {
    font-size: 18px;
  }
  
  .slide-description {
    font-size: 13px;
  }
  
  .slider-controls {
    bottom: 15px;
  }
  
  .slider-dot {
    width: 10px;
    height: 10px;
  }
  
  .slider-dot.active {
    width: 28px;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-icon {
    font-size: 36px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .how-to-play {
    padding: 20px;
  }
  
  .step-card {
    padding: 20px;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .step-icon {
    font-size: 40px;
  }
  
  .step-card h3 {
    font-size: 18px;
  }
  
  .step-card p {
    font-size: 14px;
  }
  
  .ad-728x90 {
    height: 60px;
    font-size: 14px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-section h3 {
    font-size: 18px;
  }
}


@media (max-width: 480px) {
  .header-top {
    padding: 8px 0;
  }
  
  /* ДОБАВЕТЕ ТЕЗИ РЕДОВЕ */
  .logo-section {
    text-align: center;
  }
  
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .logo-image {
    max-width: 180px;
    margin: 0 auto;
  }
  
  .logo-subtitle {
    text-align: center;
  }
}
/* ========== ДОПЪЛНИТЕЛНИ АНИМАЦИИ ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card,
.step-card {
  animation: fadeIn 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus стилове за достъпност */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}



/* ========== СЪДЪРЖАТЕЛЕН БЛОК ========== */
.content-block {
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  padding: 30px;
  margin-bottom: 30px;
}

.content-block h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color);
}

.content-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 25px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

.content-block h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 18px;
  margin-bottom: 8px;
}

.content-block p {

  line-height: 1.8;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .content-block {
    padding: 20px;
  }

  .content-block h1 {
    font-size: 22px;
  }

  .content-block h2 {
    font-size: 18px;
  }
}



/* ========== ДОПЪЛНИТЕЛНИ CSS КЛАСОВЕ ЗА CSP COMPLIANCE ========== */

/* Header theme toggle - replace inline styles */
.header-theme-switcher {
  position: relative;
}

/* Ad banner styles - replace inline styles */
.ad-banner-orange {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.ad-banner-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Facebook like button - replace inline styles */
.fb-like-button {
  background: white;
  color: #3b5998;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  margin-top: 10px;
  cursor: pointer;
}

.fb-like-button:hover {
  background: #f0f0f0;
}

/* Sidebar ads image - replace inline styles */
.sidebar-ad-img {
  width: 100%;
  border-radius: 10px;
}

/* Sidebar links list - replace inline styles */
.sidebar-links-list {
  list-style: none;
  padding: 0;
}

.sidebar-links-item {
  margin-bottom: 12px;
}

/* Logout form - replace inline styles */
.logout-form {
  display: contents;
}


.slide-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.slide-link:hover .slide-title {
    text-decoration: underline;
}


/* ========== DROPDOWN МЕНЮ ========== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 200;
    padding: 8px 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.dropdown-menu .dropdown-item i {
    width: 16px;
    color: var(--primary-color);
}

/* Мобилно dropdown */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.08);
        border-radius: 8px;
        margin: 5px 0 5px 15px;
        padding: 5px 0;
    }

    .dropdown-menu .dropdown-item {
        color: white;
        padding: 10px 15px;
    }

    .dropdown-menu .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    .dropdown-menu .dropdown-item i {
        color: white;
    }
}


/* ========== PRINT СТИЛОВЕ ========== */
@media print {
  .header-top,
  .navbar,
  .sidebar-right,
  .ad-banner,
  .slider-controls,
  .footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .main-layout {
    grid-template-columns: 1fr;
  }
}


.sidebar-recipes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-recipe-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.sidebar-recipe-link:hover .sidebar-recipe-title {
    text-decoration: underline;
}

.sidebar-recipe-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-recipe-nophoto {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #aaa;
    font-size: 1.4rem;
}

.sidebar-recipe-title {
    font-size: 0.88rem;
    line-height: 1.3;
}

.sidebar-empty {
    font-size: 0.85rem;
    color: #888;
}