/**
 * GOALBET Responsive Stylesheet
 * @package moban-32
 */

/* ========== TABLET: 1024px ========== */
@media (max-width: 1024px) {
    .content-area { flex-direction: column; }
    .sidebar { width: 100%; }

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

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

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

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

    .hero-football { right: 20px; opacity: 0.1; }
    .football-ball { width: 200px; height: 200px; }

    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.8rem; }

    .promo-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-card:last-child { grid-column: 1 / -1; }

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

/* ========== SMALL TABLET: 768px ========== */
@media (max-width: 768px) {
    .container { padding: 0 15px; }

    .header-top { flex-wrap: wrap; gap: 10px; }
    .header-time { display: none; }

    .header-btn-group a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .logo-text { font-size: 1.8rem; }

    /* Mobile nav */
    .mobile-menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 0;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pitch-green-dark);
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu.active { display: flex; }

    .nav-link { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }

    .main-navigation { position: relative; }

    /* Hero */
    .hero-pitch-bg { padding: 40px 20px; min-height: 400px; }
    .hero-title { font-size: 2.5rem; letter-spacing: 4px; }
    .hero-subtitle { font-size: 1.5rem; letter-spacing: 3px; }
    .hero-desc { font-size: 0.95rem; }
    .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 15px; }
    .hero-stat { flex: 1; min-width: 80px; padding: 10px 15px; }
    .stat-number { font-size: 1.5rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta a { text-align: center; }
    .hero-football { display: none; }

    /* Live matches */
    .live-match-grid { grid-template-columns: 1fr; }

    /* Pitch section */
    .pitch-field-bg { padding: 40px 20px; }
    .pitch-league-cards { grid-template-columns: 1fr; }
    .pitch-center-circle { width: 100px; height: 100px; }
    .pitch-penalty-top, .pitch-penalty-bottom { width: 60%; }
    .pitch-goal-top, .pitch-goal-bottom { width: 25%; }

    /* Player cards */
    .player-card-grid { grid-template-columns: 1fr; }
    .player-card { min-height: auto; }

    /* Celebration */
    .celebration-card { padding: 30px 20px; }
    .celebration-teams { flex-direction: column; gap: 20px; }
    .celeb-vs { order: -1; }
    .celeb-team { max-width: 100%; }
    .celeb-team-logo { width: 60px; height: 60px; }
    .celebration-odds { grid-template-columns: 1fr; gap: 10px; }

    /* Promos */
    .promo-grid { grid-template-columns: 1fr; }
    .promo-card:last-child { grid-column: auto; }

    /* Footer CTA */
    .footer-cta-bg { padding: 40px 20px; }
    .footer-cta-content h2 { font-size: 1.8rem; }
    .footer-cta-buttons { flex-direction: column; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

    /* Single */
    .single-post-header { padding: 20px; }
    .single-title { font-size: 1.5rem; }
    .single-meta { flex-wrap: wrap; gap: 10px; }
    .single-content { padding: 20px; }
    .single-cta { flex-direction: column; text-align: center; }

    .related-grid { grid-template-columns: 1fr; }

    /* Sidebar */
    .sidebar { margin-top: 20px; }

    /* Section titles */
    .section-title { font-size: 1.5rem; }
}

/* ========== MOBILE: 480px ========== */
@media (max-width: 480px) {
    .header-btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-btn-group a {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .logo-text { font-size: 1.5rem; }
    .logo-icon { font-size: 1.5rem; }

    .hero-pitch-bg { padding: 30px 15px; min-height: 350px; }
    .hero-title { font-size: 2rem; letter-spacing: 3px; }
    .hero-subtitle { font-size: 1.2rem; }

    .live-match-card { padding: 15px; }
    .match-odds { gap: 5px; }
    .odd-btn { padding: 6px 3px; }

    .player-card-grid { gap: 15px; }
    .card-image { height: 150px; }
    .card-stats { grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 8px; }

    .celebration-card { padding: 20px 15px; }
    .celeb-team h3 { font-size: 1.2rem; }
    .celeb-vs .vs-text { font-size: 1.8rem; }

    .promo-card { padding: 25px 15px; }
    .promo-icon { width: 50px; height: 50px; }
    .promo-icon i { font-size: 1.3rem; }

    .page-header { padding: 25px 15px; }
    .page-title { font-size: 1.8rem; }

    .section-title { font-size: 1.3rem; }

    .footer-col h4 { font-size: 1rem; }

    .match-ticker { height: 30px; }
    .ticker-label { padding: 0 10px; font-size: 0.75rem; }
    .ticker-item { font-size: 0.75rem; }

    .modal-content { padding: 20px 15px; }
    .modal-header h2 { font-size: 1.2rem; }
    .team-score { font-size: 1.5rem; }
}

/* ========== SWIPER OVERRIDES ========== */
.swiper-button-next,
.swiper-button-prev {
    color: var(--pitch-green-light) !important;
}
.swiper-pagination-bullet-active {
    background: var(--pitch-green-light) !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem !important;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-green { color: var(--pitch-green-light); }
.text-gold { color: var(--pitch-gold); }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }

/* ========== PRINT ========== */
@media print {
    .site-header, .site-footer, .sidebar, .match-ticker,
    .goalbet-modal, .footer-cta, .celebration-section { display: none; }
    body { background: #fff; color: #000; }
    .main-content { width: 100%; }
}

/* === Mobile Optimization Additions === */
@media (max-width: 768px) {
  .nav-link, .btn-login, .btn-register, .btn-demo,
  a, button, .sidebar-btn {
    min-height: 44px;
    min-width: 44px;
  }
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  .article-card {
    margin-bottom: 20px;
  }
  .content-area {
    padding: 10px;
  }
}
@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }
  h1, .hero-title {
    font-size: 24px !important;
  }
  h2 {
    font-size: 20px !important;
  }
}
