/* ========================================
   ZINTARORUSH - Global Stylesheet
   Clean Football Warm-Up Website
   ======================================== */

/* CSS Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a5632;
  --primary-light: #2a7a4a;
  --primary-dark: #0f3a20;
  --accent: #e8b931;
  --accent-hover: #d4a520;
  --bg: #f5f6f8;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text: #1e1e2d;
  --text-light: #555568;
  --text-muted: #888899;
  --border: #e2e4e9;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: rgba(26, 86, 50, 0.07);
}

.nav-dropdown {
  position: relative;
}

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

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

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: rgba(26, 86, 50, 0.05);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 60px 0;
}

.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-small h1 {
  font-size: 2.2rem;
}

.hero-small {
  min-height: 300px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 10px;
}

/* ========================================
   TOURNAMENT CARDS
   ======================================== */
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tournament-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.tournament-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.tournament-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.tournament-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tournament-card:hover .tournament-card-img img {
  transform: scale(1.04);
}

.tournament-card-body {
  padding: 22px;
}

.tournament-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.tournament-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--primary-light);
}

.card-link::after {
  content: '→';
  transition: transform var(--transition);
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ========================================
   ARTICLE CARDS
   ======================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.article-card-img {
  height: 200px;
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 22px;
}

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(26, 86, 50, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.article-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.article-card-body h3 a:hover {
  color: var(--primary);
}

.article-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========================================
   GROUP CARDS (World Cup, UCL)
   ======================================== */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.group-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.group-card:hover {
  box-shadow: var(--shadow-hover);
}

.group-card-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
}

.group-card-body {
  padding: 18px 20px;
}

.group-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
}

.group-team:last-child {
  border-bottom: none;
}

.team-flag {
  width: 26px;
  height: 18px;
  border-radius: 2px;
  background: var(--border);
  display: inline-block;
  font-size: 1.1rem;
  line-height: 18px;
  text-align: center;
}

.group-prediction {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-light);
}

.group-prediction strong {
  color: var(--primary);
}

/* ========================================
   TEAM CARDS
   ======================================== */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.team-badge {
  width: 48px;
  height: 48px;
  background: rgba(26, 86, 50, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.team-card-header h3 {
  font-size: 1.1rem;
}

.team-card-header .team-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================
   ARTICLE / CONTENT PAGE
   ======================================== */
.article-page {
  padding: 50px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.article-main {}

.article-featured-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.article-featured-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.3;
}

.article-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 14px;
  padding-top: 16px;
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
}

.article-content p {
  margin-bottom: 18px;
  color: var(--text-light);
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(26, 86, 50, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

/* Sidebar */
.article-sidebar {}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.sidebar-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.sidebar-article-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-article-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-article-item img {
  width: 70px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sidebar-article-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-article-item h4 a:hover {
  color: var(--primary);
}

.sidebar-article-item .meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: all var(--transition);
}

.sidebar-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========================================
   INFO / KEY MATCHES / HIGHLIGHT SECTIONS
   ======================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

.match-list {
  margin-top: 14px;
}

.match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.match-item:last-child {
  border-bottom: none;
}

.match-teams {
  font-weight: 600;
}

.match-date {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ========================================
   ABOUT / LEGAL PAGES
   ======================================== */
.page-content {
  padding: 60px 0 80px;
}

.page-content-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-content-inner h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-content-inner .page-updated {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.page-content-inner h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
}

.page-content-inner h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.page-content-inner p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content-inner ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}

.page-content-inner ul li {
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary-light);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.84rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.breadcrumb-list li a {
  color: var(--text-light);
}

.breadcrumb-list li a:hover {
  color: var(--primary);
}

.breadcrumb-list li .sep {
  color: var(--text-muted);
}

/* ========================================
   RESPONSIVE: 1024px
   ======================================== */
@media (max-width: 1024px) {
  .tournaments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .sidebar-widget {
    margin-bottom: 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

/* ========================================
   RESPONSIVE: 768px
   ======================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-list a {
    padding: 14px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    display: none;
  }

  .mobile-overlay.active {
    display: block;
  }

  .hero {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

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

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

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.65rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-featured-img img {
    height: 260px;
  }
}

/* ========================================
   RESPONSIVE: 480px
   ======================================== */
@media (max-width: 480px) {
  .hero {
    min-height: 300px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }

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

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

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

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

  .section-header h2 {
    font-size: 1.4rem;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .page-content-inner h1 {
    font-size: 1.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}