/* Modern Header Styles */
.site-header {
  background: var(--color-white, #ffffff);
  border-bottom: 2px solid var(--color-gray-200, #e2e8f0);
  margin-bottom: 1.5rem;
  padding: 0.75rem 0 0.5rem;
  width: 100%;
}

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

/* Hero Section */
.header-hero {
  padding: 0 0 0.5rem;
}

.hero-content {
  margin: 0 auto;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.hero-text {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-700, #2d3748);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray-500, #718096);
  background: var(--color-gray-200, #e2e8f0);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--color-gray-600, #4a5568);
  margin: 0;
  line-height: 1.3;
}

/* Quick Links Grid */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.quick-link-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-gray-50, #f8f9fa);
  border: 1px solid var(--color-gray-200, #e2e8f0);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: currentColor;
}

.quick-link-card:hover::before {
  transform: scaleY(1);
}

.quick-link-card:hover .quick-link-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Card Color Variants */
.quick-link-card--primary {
  color: var(--color-tab-year, #2c5282);
}

.quick-link-card--primary .quick-link-icon {
  background: var(--color-tab-year, #2c5282);
  color: var(--color-white, #ffffff);
}

.quick-link-card--telegram {
  color: #0088cc;
}

.quick-link-card--telegram .quick-link-icon {
  background: #0088cc;
  color: var(--color-white, #ffffff);
}

.quick-link-card--kaggle {
  color: #20beff;
}

.quick-link-card--kaggle .quick-link-icon {
  background: #20beff;
  color: var(--color-white, #ffffff);
}

.quick-link-card--download {
  color: #5fa577;
  background: linear-gradient(135deg, #f7fef9 0%, #f0fdf4 100%);
  border: 2px solid #a7dbb8;
  box-shadow: 0 2px 8px rgba(95, 165, 119, 0.15);
}

.quick-link-card--download .quick-link-icon {
  background: #5fa577;
  color: var(--color-white, #ffffff);
}

.quick-link-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1rem;
}

.quick-link-content {
  flex: 1;
  min-width: 0;
}

.quick-link-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.1rem 0;
  color: var(--color-gray-700, #2d3748);
}

.quick-link-description {
  font-size: 0.75rem;
  color: var(--color-gray-600, #4a5568);
  margin: 0;
  line-height: 1.3;
}

.quick-link-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: currentColor;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
}

/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.social-icon--facebook {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.1);
}

.social-icon--facebook:hover {
  background: #1877f2;
  color: white;
  transform: translateY(-2px);
}

.social-icon--youtube {
  color: #ff0000;
  background: rgba(255, 0, 0, 0.1);
}

.social-icon--youtube:hover {
  background: #ff0000;
  color: white;
  transform: translateY(-2px);
}

.social-icon--tiktok {
  color: #000000;
  background: rgba(0, 0, 0, 0.1);
}

.social-icon--tiktok:hover {
  background: #000000;
  color: white;
  transform: translateY(-2px);
}

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

  .header-hero {
    padding: 0 0 0.5rem;
  }

  .hero-main {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .social-icons {
    margin-left: 0;
  }

  .header-logo {
    height: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-badge {
    display: block;
    margin: 0.35rem auto 0;
    width: fit-content;
  }

  /* Приховуємо весь блок швидких посилань на мобільних */
  .quick-links-grid {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-main {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }

  .header-logo {
    height: 36px;
  }

  .hero-text {
    text-align: left;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .hero-badge {
    display: inline-block;
    margin: 0 0 0 0.5rem;
  }

  .hero-subtitle {
    display: none;
  }

  .social-icons {
    display: flex;
  }
}
