/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #dc2626;
  --secondary-color: #f59e0b;
  --background-color: #ffffff;
  --text-color: #374151;
  --card-background: #fef2f2;
  --border-color: #e5e7eb;
  --muted-color: #f9fafb;
  --muted-text: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--background-color);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo-icon {
  font-size: 2rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  display: flex;
  align-items: center;
  background: var(--muted-color);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  padding: 0.25rem 0.5rem;
  width: 200px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* News Ticker */
.news-ticker-container {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.news-ticker {
  display: inline-block;
  animation: scroll 30s linear infinite;
}

.ticker-item {
  margin-right: 3rem;
  font-weight: 500;
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.main-column {
  min-height: 500px;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero-section {
  background: var(--card-background);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
  height: 300px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding: 1.5rem;
}

.hero-category {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.3;
}

.hero-description {
  color: var(--muted-text);
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-text);
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-content {
  padding: 1.25rem;
}

.news-card-category {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.news-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.news-card-excerpt {
  color: var(--muted-text);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted-text);
}

/* Match Cards */
.matches-container {
  display: grid;
  gap: 1rem;
}

.match-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.team-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--muted-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-score {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 1rem;
}

.match-info {
  text-align: right;
}

.match-status {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.match-status.live {
  background: var(--danger-color);
  color: white;
}

.match-status.finished {
  background: var(--muted-color);
  color: var(--muted-text);
}

.match-status.upcoming {
  background: var(--secondary-color);
  color: white;
}

/* Transfer Cards */
.transfers-container {
  display: grid;
  gap: 1rem;
}

.transfer-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.transfer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.transfer-player {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.transfer-amount {
  background: var(--success-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

.transfer-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transfer-clubs {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.transfer-club {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.transfer-arrow {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.transfer-status {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.transfer-status.confirmed {
  background: var(--success-color);
  color: white;
}

.transfer-status.rumor {
  background: var(--warning-color);
  color: white;
}

/* Standings Table */
.standings-container {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.standings-table {
  width: 100%;
}

.standings-table table {
  width: 100%;
  border-collapse: collapse;
}

.standings-table th,
.standings-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.standings-table th {
  background: var(--muted-color);
  font-weight: 600;
  font-size: 0.875rem;
}

.standings-table .position {
  width: 40px;
  text-align: center;
  font-weight: 600;
}

.standings-table .team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.standings-table .team-logo {
  width: 24px;
  height: 24px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.top-scorers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scorer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--muted-color);
}

.scorer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scorer-goals {
  font-weight: 600;
  color: var(--primary-color);
}

.upcoming-matches {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.upcoming-match {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--muted-color);
}

.upcoming-match-teams {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.upcoming-match-time {
  font-size: 0.875rem;
  color: var(--muted-text);
}

/* Footer */
.footer {
  background: var(--text-color);
  color: white;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-block;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid #4b5563;
  padding: 1rem 0;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search-input {
    width: 150px;
  }

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

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .filter-buttons {
    flex-wrap: wrap;
  }

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

  .match-card {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .transfer-details {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .news-card-content {
    padding: 1rem;
  }

  .sidebar-section {
    padding: 1rem;
  }
}
