/*
 * Fixtures & Results Page Styles
 */

/* Fixtures Container */
.fixtures-container {
  padding: 3rem 0;
}

/* Filters Section */
.fixtures-filter {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  background-color: var(--halverstown-dark-green, #004d1a);
  padding: 1.5rem;
  border-radius: 8px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  flex: 1;
}

.filter-group label {
  color: var(--halverstown-yellow, #FFEC00);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.filter-dropdown {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23FFEC00' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  cursor: pointer;
}

.filter-dropdown:focus {
  outline: none;
  border-color: var(--halverstown-yellow, #FFEC00);
  box-shadow: 0 0 0 2px rgba(255, 236, 0, 0.2);
}

/* Fixtures Content */
.fixtures-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Month Separator */
.fixtures-month {
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.fixtures-month-title {
  font-size: 1.5rem;
  color: var(--halverstown-yellow, #FFEC00);
  position: relative;
  display: inline-block;
  padding-right: 1rem;
  background: #fff;
  z-index: 1;
}

.fixtures-month:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 112, 60, 0.3);
  left: 0;
  top: 50%;
  z-index: 0;
}

/* Fixture Card */
.fixture-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.fixture-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.fixture-header {
  background-color: var(--halverstown-dark-green, #004d1a);
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fixture-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fixture-date-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--halverstown-yellow, #FFEC00);
}

.fixture-date-details {
  display: flex;
  flex-direction: column;
}

.fixture-month-day {
  font-weight: 500;
}

.fixture-time {
  opacity: 0.8;
  font-size: 0.9rem;
}

.fixture-type {
  background-color: var(--halverstown-yellow, #FFEC00);
  color: var(--halverstown-dark-green, #004d1a);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.fixture-type.friendly {
  background-color: var(--halverstown-blue, #24A0DA);
  color: #fff;
}

.fixture-content {
  padding: 1.5rem;
}

.fixture-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 40%;
}

.team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.team-name {
  font-weight: 600;
  color: var(--halverstown-dark-green, #004d1a);
}

.our-team .team-name {
  color: var(--halverstown-green, #00703C);
  font-weight: 700;
}

.vs {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.3);
  font-size: 1.2rem;
}

.fixture-details {
  display: flex;
  justify-content: space-between;
  color: #666;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.fixture-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fixture-detail i {
  color: var(--halverstown-green, #00703C);
}

/* Result Indicator */
.fixture-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

.result-win {
  background-color: rgba(0, 128, 0, 0.1);
  color: green;
}

.result-loss {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.result-draw {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.result-cancelled {
  background-color: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.result-upcoming {
  background-color: rgba(36, 160, 218, 0.1);
  color: var(--halverstown-blue, #24A0DA);
}

/* Score Display */
.match-score {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}

.team-score {
  text-align: center;
}

.team-score-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--halverstown-dark, #1A3322);
}

.winner .team-score-value {
  color: var(--halverstown-green, #00703C);
}

/* Match Modal */
.match-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-modal.hidden {
  display: none !important;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.modal-container {
  background-color: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  background-color: rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  padding: 0;
}

/* Match Header in Modal */
.match-header {
  background-color: var(--halverstown-dark-green, #004d1a);
  color: #fff;
  padding: 2rem;
  border-radius: 8px 8px 0 0;
}

.match-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.match-vs {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--halverstown-yellow, #FFEC00);
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.match-meta i {
  color: var(--halverstown-yellow, #FFEC00);
  margin-right: 0.5rem;
}

/* Match Result in Modal */
.match-result {
  padding: 2rem;
}

.match-result-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.match-result-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.match-scores {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.match-score-team {
  text-align: center;
  width: 45%;
}

.match-score-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.match-score-detail {
  font-size: 0.9rem;
  color: #666;
}

.match-outcome {
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

/* Match Actions */
.match-actions {
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

.btn-cricket-leinster,
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cricket-leinster {
  background-color: #001689;
  color: white;
  border: none;
  text-decoration: none;
}

.btn-cricket-leinster:hover {
  background-color: #000c4d;
  transform: translateY(-2px);
}

.btn-share {
  background-color: transparent;
  color: #495057;
  border: 1px solid #ced4da;
}

.btn-share:hover {
  background-color: #f1f3f5;
  border-color: #adb5bd;
  transform: translateY(-2px);
}

.btn-cricket-leinster i,
.btn-share i {
  margin-right: 0.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--halverstown-yellow, #FFEC00);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--halverstown-green, #00703C);
}

.empty-state p {
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #666;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .fixtures-filter {
    flex-wrap: wrap;
  }
  
  .filter-group {
    min-width: calc(50% - 0.5rem);
  }
}

@media (max-width: 768px) {
  .fixtures-filter {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .fixture-teams {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .team {
    width: 100%;
  }
  
  .vs {
    margin: 0.5rem 0;
  }
  
  .fixture-details {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .fixture-detail {
    min-width: calc(50% - 0.5rem);
  }
  
  .match-teams {
    flex-direction: column;
    gap: 1rem;
  }
  
  .match-vs {
    margin: 1rem 0;
  }
  
  .match-meta {
    justify-content: center;
  }
  
  .match-scores {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .match-score-team {
    width: 100%;
  }
  
  .match-actions {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .fixture-detail {
    min-width: 100%;
  }
} 