/* ==========================================================================
   Responsive Styles - Подари Топлина
   ========================================================================== */

/* ==========================================================================
   Small Devices (landscape phones, 576px and up)
   ========================================================================== */

@media (min-width: 576px) {
  .hero-buttons {
    flex-direction: row;
  }

  .mission-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }

  /* Clothes carousel - no grid override needed */

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .donation-cards {
    grid-template-columns: repeat(2, 1fr);
  }


  /* About - 2 columns with 3rd centered */
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid .about-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 350px;
  }
}

/* ==========================================================================
   Medium Devices (tablets, 768px and up)
   ========================================================================== */

@media (min-width: 768px) {
  :root {
    --text-4xl: 3rem;
    --text-5xl: 3.5rem;
  }

  .container {
    padding: 0 var(--space-6);
  }

  section {
    padding: var(--space-20) 0;
  }

  .section-title {
    font-size: var(--text-4xl);
  }

  /* Navigation */
  .nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-header-lang {
    display: none;
  }

  .mobile-menu,
  .mobile-overlay {
    display: none;
  }

  /* Hero */
  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

  /* About - all 3 in one row on larger screens */
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid .about-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }

  /* Map - uses flexbox, no grid override needed */

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Donation */
  .donation-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Timeline */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 40px;
  }

  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
    padding-right: 0;
  }

  .timeline-marker {
    left: auto;
    right: -21px;
  }

  .timeline-item:nth-child(even) .timeline-marker {
    left: -21px;
    right: auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .payment-security {
    flex-direction: row;
    gap: var(--space-8);
  }
}

/* ==========================================================================
   Large Devices (desktops, 992px and up)
   ========================================================================== */

@media (min-width: 992px) {
  :root {
    --text-5xl: 4rem;
  }

  .container {
    padding: 0 var(--space-8);
  }

  section {
    padding: var(--space-24) 0;
  }

  /* Hero */
  .hero-content {
    padding: var(--space-12);
  }

  .hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-8);
  }

  /* Donation */
  .donation-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .donation-card.donation-custom {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Extra Large Devices (large desktops, 1200px and up)
   ========================================================================== */

@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-10);
  }

  .nav-list {
    gap: var(--space-10);
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .header,
  .hero-scroll,
  .snowflakes,
  .btn,
  .mobile-menu,
  .mobile-overlay {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-background,
  .hero-overlay {
    display: none;
  }

  .hero-content {
    color: #000;
  }

  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

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

  .snowflakes {
    display: none;
  }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
  :root {
    --primary: #6B1D29;
    --text-medium: #333;
  }

  .btn {
    border: 2px solid currentColor;
  }
}
