/* CR7 Goal Tracker - Styles */

:root {
  --primary: #c4a747;
  --primary-dark: #9e8639;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --text: #ffffff;
  --text-muted: #888888;
  --accent-green: #4caf50;
  --accent-red: #e53935;
  --gradient-gold: linear-gradient(135deg, #c4a747 0%, #f0d875 50%, #c4a747 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.silhouette {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 300px;
  height: 400px;
  background: linear-gradient(to top, transparent, rgba(196, 167, 71, 0.1));
  clip-path: polygon(50% 0%, 65% 15%, 70% 30%, 75% 50%, 70% 70%, 60% 85%, 50% 100%, 40% 85%, 30% 70%, 25% 50%, 30% 30%, 35% 15%);
  opacity: 0.3;
}

.goal-counter-container {
  margin-bottom: 3rem;
}

.counter-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.goal-counter {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  text-shadow: 0 0 50px rgba(196, 167, 71, 0.3);
}

.target-info {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.target-info strong {
  color: var(--primary);
}

.remaining {
  color: var(--accent-green);
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  max-width: 500px;
  height: 12px;
  background: #222;
  border-radius: 6px;
  margin: 2rem auto 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 6px;
  transition: width 1s ease-out;
}

.progress-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.last-goal {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 8px;
  display: inline-block;
}

.last-goal-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.last-goal-date {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 0.25rem;
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Breakdown Sections */
.breakdown-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.breakdown-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.filter-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid #333;
  background: transparent;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
}

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

.club-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.club-card:hover {
  transform: scale(1.02);
}

.club-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.club-years {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.club-league {
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.club-goals {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
}

/* Year Chart */
.year-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  padding: 1rem 0;
  overflow-x: auto;
}

.year-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}

.bar-container {
  display: flex;
  flex-direction: column;
  height: 150px;
  justify-content: flex-end;
}

.bar-club {
  background: var(--primary);
  width: 30px;
  border-radius: 3px 3px 0 0;
  transition: height 0.5s;
}

.bar-intl {
  background: #4a9eff;
  width: 30px;
  border-radius: 3px 3px 0 0;
}

.bar-year {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.bar-total {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.year-legend {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.legend-color.club {
  background: var(--primary);
}

.legend-color.intl {
  background: #4a9eff;
}

/* Upcoming Section */
.upcoming-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.upcoming-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.no-games {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 8px;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* Records Section */
.records-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.records-filter {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.record-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
}

.record-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.record-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 600;
}

.record-scope {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #222;
  border-radius: 4px;
}

/* Records Highlight */
.records-highlight {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.records-highlight h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

.milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.milestone {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.milestone-number {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  color: var(--primary);
  font-weight: 700;
}

.milestone-text {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Honors Section */
.honors-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.honors-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #222;
  padding-bottom: 0.5rem;
}

.honors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.honor-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.honor-name {
  font-weight: 500;
}

.honor-years {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.honor-clubs {
  font-size: 0.75rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.honor-count {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.honor-count::before {
  content: '×';
  font-size: 1rem;
  color: var(--text-muted);
}

/* Trophy Counter */
.trophy-counter {
  text-align: center;
  padding: 2rem;
}

.trophy-stat {
  display: inline-block;
  background: var(--bg-card);
  padding: 2rem 4rem;
  border-radius: 16px;
}

.trophy-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.trophy-number {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trophy-label {
  color: var(--text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Spotlight Sections */
.spotlight-section {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.spotlight-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.ballon-dor-timeline,
.ucl-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.ballon-year,
.ucl-year {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  min-width: 150px;
}

.ballon-year .year,
.ucl-year .year {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
}

.ballon-year .trophy,
.ucl-year .trophy {
  font-size: 2rem;
  display: block;
  margin: 0.5rem 0;
}

.ballon-year .team,
.ucl-year .team {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ucl-year .opponent {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
  background: #0d0d0d;
  border-top: 1px solid #222;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content a {
  color: var(--primary);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.last-updated {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .goal-counter {
    font-size: 5rem;
  }
  
  .hero {
    min-height: auto;
    padding: 3rem 1rem;
  }
  
  .silhouette {
    display: none;
  }
  
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 1rem;
  }
  
  .breakdown-section,
  .upcoming-section,
  .records-section,
  .honors-section {
    padding: 2rem 1rem;
  }
  
  .year-chart {
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .quick-stats {
    grid-template-columns: 1fr;
  }
  
  .clubs-grid {
    grid-template-columns: 1fr;
  }
  
  .records-grid {
    grid-template-columns: 1fr;
  }
  
  .honors-grid {
    grid-template-columns: 1fr;
  }
}
