/* Стили для улучшенного хедера */
.site-header {
  background: linear-gradient(to right, rgba(var(--card), 0.95), rgba(var(--card), 0.95)), url('/images/header-bg.png');
  background-size: cover;
  background-position: center;
  padding: 1.25rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(var(--border));
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, rgb(var(--orange)) 0%, rgb(var(--blue-light)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.site-logo-domain {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(var(--foreground));
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem 0 3rem;
  border-radius: 1.5rem;
  background-color: rgba(var(--secondary), 0.8);
  border: 1px solid rgba(var(--border));
  color: rgb(var(--foreground));
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.search-input:focus {
  background-color: rgba(var(--secondary), 1);
  box-shadow: 0 0 0 2px rgba(var(--primary), 0.3);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(var(--muted-foreground));
  pointer-events: none;
  transition: color 0.3s ease;
}

.search-form:focus-within .search-icon {
  color: rgb(var(--primary));
}

.theme-toggle-btn {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(var(--secondary), 0.8);
  border: 1px solid rgba(var(--border));
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.theme-toggle-btn:hover {
  background-color: rgba(var(--secondary), 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Навигация */
.main-navigation {
  background-color: rgba(var(--primary), 0.9);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
  backdrop-filter: blur(5px);
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  flex: 1;
  text-align: center;
}

.nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: rgb(var(--primary-foreground));
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: rgb(var(--orange));
  transition: width 0.3s ease;
}

.nav-link:hover:before,
.nav-link.active:before {
  width: 80%;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

/* Мобильная навигация */
.mobile-menu-button {
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(var(--secondary), 0.8);
  border: 1px solid rgba(var(--border));
  color: rgb(var(--foreground));
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 0;
  }

  .header-top {
    margin-bottom: 0;
  }

  .search-form {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-navigation {
    display: none;
  }

  .mobile-search-form {
    display: block;
    margin-top: 1rem;
  }
}

.top-tabs-container {
  margin: 1.5rem 0;
  background-color: rgba(var(--card), 0.8);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
}

.top-tabs {
  display: flex;
  gap: 0.5rem;
}

.top-tab {
  flex: 1;
  padding: 1rem;
  text-align: center;
  background-color: rgba(var(--secondary), 0.5);
  border-radius: 0.5rem;
  font-weight: 600;
  color: rgb(var(--foreground));
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.top-tab:hover {
  background-color: rgba(var(--orange), 0.1);
  transform: translateY(-2px);
}

.top-tab.active {
  background: linear-gradient(135deg, rgb(var(--orange)) 0%, rgb(var(--primary)) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--orange), 0.3);
}

/* Анимация для табов */
.top-tab:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.top-tab:hover:after {
  transform: translateY(0);
}

/* Секции */
.section {
  margin-bottom: 2.5rem;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--border));
  padding-bottom: 0.75rem;
  position: relative;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(var(--foreground));
  display: flex;
  align-items: center;
}

.section-marker {
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, rgb(var(--orange)), rgb(var(--primary)));
  margin-right: 12px;
  border-radius: 2px;
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(var(--blue-light));
  text-decoration: none;
  padding: 0.5rem 1rem;
  background-color: rgba(var(--accent), 0.5);
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.section-link:hover {
  background-color: rgba(var(--accent), 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
