/*
Theme Name: FC Pirin
Theme URI: https://fcpirin.com
Author: FC Pirin Development Team
Author URI: https://fcpirin.com
Description: Official WordPress theme for FC Pirin Blagoevgrad football club website
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fcpirin
Tags: sports, football, club, responsive
*/

/* CSS Variables */
:root {
  --primary-green: hsl(145, 63%, 25%);
  --primary-green-dark: hsl(145, 63%, 20%);
  --secondary-green: hsl(145, 50%, 35%);
  --accent-red: hsl(0, 72%, 51%);
  --dark-section: hsl(145, 40%, 15%);
  --text-dark: hsl(150, 30%, 10%);
  --text-light: hsl(0, 0%, 100%);
  --border-color: hsl(150, 10%, 90%);
  --muted-bg: hsl(150, 10%, 96%);
  --muted-text: hsl(150, 10%, 40%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* Header Styles */
.header-bg {
  background-color: var(--primary-green-dark);
  color: var(--text-light);
}

.top-bar {
  padding: 0.5rem 0;
  font-size: 0.75rem;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-info a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s;
}

.top-bar-info a:hover {
  color: var(--accent-red);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a:hover {
  color: var(--accent-red);
}

/* Navigation */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Custom Logo and Default Logo Support */
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo .custom-logo,
.site-logo .default-logo {
  height: 3.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.logo-circle {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--text-light);
  overflow: hidden;
}

.logo-inner {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  color: var(--text-light);
  font-weight: 900;
  font-size: 0.75rem;
  text-align: center;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu li a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-menu li a:hover {
  color: var(--accent-red);
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
}

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

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav ul li a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
}

/* Hero Section */
.hero-section {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  height: 350px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(23, 88, 48, 0.9), rgba(23, 88, 48, 0.6), transparent);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  height: 6rem;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

.hero-text {
  color: var(--text-light);
}

.hero-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.hero-description {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.hero-button {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background-color: var(--accent-red);
  color: var(--text-light);
  font-weight: 700;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.hero-button:hover {
  background-color: hsl(0, 72%, 45%);
}

/* Match Info Section */
.match-info-section {
  background-color: var(--primary-green-dark);
  padding: 1.5rem 0;
}

.match-info-grid {
  display: grid;
  gap: 2rem;
  color: var(--text-light);
}

.match-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.match-card h3::before {
  content: '';
  width: 0.25rem;
  height: 1.25rem;
  background-color: var(--accent-red);
  display: inline-block;
}

.match-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.match-date::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--accent-red);
  border-radius: 50%;
}

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

.team-name {
  text-align: center;
  font-size: 0.75rem;
}

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

.team-logo {
  width: 2.5rem;
  height: 2.5rem;
}

.score-display {
  font-size: 1.5rem;
  font-weight: 900;
}

.score-red {
  color: var(--accent-red);
}

.score-vs {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

/* Section Title */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title::before {
  content: '';
  width: 0.25rem;
  height: 1.25rem;
  background-color: var(--accent-red);
  display: inline-block;
}

/* Card Styles */
.card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  overflow: hidden;
}

.news-card {
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-0.25rem);
}

/* News Section */
.news-section {
  padding: 2rem 0;
}

.news-grid {
  display: grid;
  gap: 1.5rem;
}

.news-featured {
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  overflow: hidden;
}

.news-image-wrapper {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-featured:hover .news-image {
  transform: scale(1.05);
}

.news-content {
  padding: 1rem;
}

.news-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.news-link {
  font-size: 0.875rem;
  color: var(--accent-red);
  font-weight: 600;
}

.news-link:hover {
  text-decoration: underline;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  padding: 0.75rem;
}

.news-item-image {
  width: 8rem;
  height: 6rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  overflow: hidden;
}

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

.news-item-content {
  flex: 1;
}

.news-item-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-excerpt {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Standings Table */
.standings-section {
  padding: 2rem 0;
}

.standings-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.standings-table thead tr {
  border-bottom: 1px solid var(--border-color);
}

.standings-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--muted-text);
}

.standings-table th:first-child {
  width: 2rem;
}

.standings-table th:nth-child(3),
.standings-table th:nth-child(4) {
  text-align: center;
}

.standings-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.standings-table tbody tr:last-child {
  border-bottom: none;
}

.standings-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.standings-table tbody tr.highlighted {
  background-color: rgba(23, 88, 48, 0.1);
}

.standings-table td {
  padding: 0.5rem 0.75rem;
}

.standings-table td:first-child {
  text-align: center;
  font-weight: 700;
}

.standings-table td:nth-child(3),
.standings-table td:nth-child(4) {
  text-align: center;
}

.standings-table tr.highlighted td:first-child,
.standings-table tr.highlighted td:nth-child(4) {
  color: var(--accent-red);
}

.standings-table tr.highlighted td:nth-child(2) {
  color: var(--primary-green);
  font-weight: 700;
}

.standings-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.standings-link {
  font-size: 0.875rem;
  color: var(--accent-red);
  font-weight: 600;
}

.standings-link:hover {
  text-decoration: underline;
}

/* Results Section */
.results-section {
  padding: 2rem 0;
}

.results-list {
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  overflow: hidden;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

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

.result-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.result-team {
  flex: 1;
}

.result-team.home {
  text-align: right;
}

.result-team.away {
  text-align: left;
}

.result-team.pirin {
  font-weight: 700;
  color: var(--primary-green);
}

.result-score {
  margin: 0 1rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
}

.result-score.win {
  background-color: var(--secondary-green);
}

.result-score.draw {
  background-color: var(--muted-text);
}

.result-score.loss {
  background-color: var(--accent-red);
}

.results-footer {
  padding: 0.75rem;
  background-color: var(--accent-red);
  text-align: center;
}

.results-link {
  display: block;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 600;
}

.results-link:hover {
  text-decoration: underline;
}

/* Players Section */
.players-section {
  padding: 2rem 0;
  background-color: var(--dark-section);
  color: var(--text-light);
}

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

.players-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.players-title::before {
  content: '';
  width: 0.25rem;
  height: 1.25rem;
  background-color: var(--accent-red);
  display: inline-block;
}

.players-title h2 {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.players-nav {
  display: flex;
  gap: 0.5rem;
}

.player-nav-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.player-nav-btn.prev {
  background-color: var(--secondary-green);
  color: var(--text-light);
}

.player-nav-btn.next {
  background-color: var(--accent-red);
  color: var(--text-light);
}

.player-nav-btn:hover {
  opacity: 0.8;
}

.players-grid {
  display: grid;
  gap: 1.5rem;
}

.player-card {
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
  cursor: pointer;
}

.player-card:hover .player-image {
  transform: scale(1.1);
}

.player-image-wrapper {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.player-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary-green), rgba(23, 88, 48, 0.6), transparent);
  opacity: 0.8;
}

.player-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.player-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--secondary-green);
  line-height: 1;
}

.player-info {
  color: var(--text-light);
}

.player-name {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-position {
  font-size: 0.75rem;
  color: var(--accent-red);
  font-weight: 600;
}

.player-country {
  font-size: 1.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--primary-green-dark);
  color: var(--text-light);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-section h3::before {
  content: '';
  width: 0.25rem;
  height: 1.25rem;
  background-color: var(--accent-red);
  display: inline-block;
}

.footer-section p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo {
  height: 8rem;
  width: auto;
  max-width: 400px;
  opacity: 0.8;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.footer-social-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 2rem;
  height: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.social-icon:hover {
  background-color: var(--accent-red);
}

.footer-more-btn {
  background-color: var(--accent-red);
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 700;
}

.footer-sponsors {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.footer-sponsors h3 {
  margin-bottom: 1rem;
}

.sponsors-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0.6;
}

.sponsor-logo {
  font-size: 1.5rem;
  font-weight: 900;
}

.sponsor-logo.red {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-red);
}

.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Responsive Design */
@media (min-width: 768px) {
  .hero-image-wrapper {
    height: 400px;
  }

  .hero-logo {
    height: 8rem;
    width: auto;
    max-width: 400px;
  }

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

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

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

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

  .players-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .player-number {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.py-2 { padding: 1rem 0; }
.py-4 { padding: 2rem 0; }
.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
