/* =============================================
   FIXTURES & RESULTS PAGE STYLES
   ============================================= */

/* --- Fixtures / Results Section --- */
.fixtures-section,
.results-section {
  padding: 40px 0 80px;
}

/* --- Week Group --- */
.week-group {
  margin-bottom: 40px;
}

.week-header {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.week-header i {
  color: var(--red);
  font-size: 16px;
}

.week-fixtures {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Fixture Card (in list) --- */
.fixture-item {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-base);
}

.fixture-item:hover {
  background: var(--glass-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.fixture-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.fixture-week-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fixture-date {
  font-size: 13px;
  color: var(--muted);
}

.fixture-teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.fixture-team-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.fixture-team-info.home {
  justify-content: flex-end;
}

.fixture-team-info.away {
  justify-content: flex-start;
}

.fixture-team-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.fixture-team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.fixture-vs-divider {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.fixture-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

.fixture-meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fixture-meta-row i {
  font-size: 14px;
  color: var(--red);
}

/* Status badges */
.status-upcoming {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.status-live {
  background: rgba(234, 88, 12, 0.16);
  color: var(--red);
  animation: pulse 2s infinite;
}

.status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* --- Result Card --- */
.result-item {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition-base);
}

.result-item:hover {
  background: var(--glass-hover);
  border-color: var(--border-light);
}

.result-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.result-week {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.result-team-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.result-team-info.winner .result-team-name {
  color: var(--gold);
}

.result-team-info.home {
  justify-content: flex-end;
  text-align: right;
}

.result-team-info.away {
  justify-content: flex-start;
}

.result-team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.result-team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.result-score-display {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.result-score-display .score {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  min-width: 50px;
  text-align: center;
}

.result-score-display .score.win {
  color: var(--white);
}

.result-score-display .score.loss {
  color: var(--muted);
}

.result-score-display .sep {
  color: var(--border);
  font-size: 24px;
}

.result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
}

.result-date {
  font-size: 13px;
  color: var(--muted);
}

/* --- Gallery Page --- */
.gallery-section {
  padding: 40px 0 80px;
}

.gallery-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.gallery-filter-tab {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-filter-tab:hover {
  background: var(--glass-hover);
  color: var(--white);
}

.gallery-filter-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-masonry .gallery-item:nth-child(4n+1) {
  grid-row: span 2;
}

.gallery-masonry .gallery-item:nth-child(4n+1) img {
  aspect-ratio: 3/4;
}

/* --- Rules Page --- */
.rules-section {
  padding: 40px 0 80px;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.rule-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  transition: var(--transition-base);
}

.rule-card:hover {
  background: var(--glass-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.rule-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.rule-icon i {
  font-size: 24px;
  color: var(--red);
}

.rule-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.rule-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* --- FAQ Accordion --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-header:hover {
  background: var(--glass-hover);
}

.faq-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  padding-right: 16px;
}

.faq-header i {
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-header i {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-body {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* --- Contact Page --- */
.contact-section {
  padding: 40px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 48px;
}

.contact-form-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 40px;
}

.contact-form-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.contact-info-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}

.contact-info-item i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 14px;
  flex-shrink: 0;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.contact-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  transition: var(--transition-fast);
}

.contact-socials a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.contact-map {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(51, 65, 85, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
}

.contact-map i {
  font-size: 48px;
  color: var(--red);
  position: relative;
  z-index: 1;
}
