/* =============================================
   Göztepe Fan Sitesi - Ana Stylesheet
   Renkler: Kırmızı #E30613 | Sarı #FFD700
   ============================================= */

/* ---- CSS Custom Properties ---- */
:root {
  --goztep-red: #E30613;
  --goztep-red-dark: #b5000f;
  --goztep-yellow: #FFD700;
  --goztep-yellow-dark: #ccac00;
  --goztep-dark: #1a1a1a;
  --goztep-gray: #555;
  --goztep-light-gray: #f0f0f0;
  --goztep-light: #f9f9f9;
  --goztep-white: #ffffff;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.18);
  --max-width: 1200px;
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--goztep-light);
  color: var(--goztep-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--goztep-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--goztep-red-dark);
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ---- Header & Navigation ---- */
header {
  background: var(--goztep-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-emblem {
  width: 42px;
  height: 42px;
  background: var(--goztep-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: var(--goztep-red);
  letter-spacing: -1px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .club-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--goztep-white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo-text .club-sub {
  font-size: 0.65rem;
  color: var(--goztep-yellow);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Desktop Nav */
nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

nav ul li a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--goztep-yellow);
  text-decoration: none;
}

nav ul li a i {
  font-size: 0.85rem;
}

/* Hamburger (Mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--goztep-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Main Content ---- */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--goztep-red) 0%, #8b000a 60%, var(--goztep-dark) 100%);
  color: var(--goztep-white);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  margin: 0 -1.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-emblem {
  width: 90px;
  height: 90px;
  background: var(--goztep-yellow);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--goztep-red);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--goztep-yellow);
  color: var(--goztep-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-top: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- Section Titles ---- */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--goztep-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--goztep-red), transparent);
  margin-left: 0.5rem;
}

.section-title i {
  color: var(--goztep-red);
}

/* ---- Puan Durumu Tablosu ---- */
.standings-section {
  margin-bottom: 2.5rem;
}

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

.standings-meta {
  font-size: 0.8rem;
  color: var(--goztep-gray);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.data-badge.live {
  background: #d4edda;
  color: #155724;
}

.data-badge.static {
  background: #fff3cd;
  color: #856404;
}

.data-badge.error {
  background: #f8d7da;
  color: #721c24;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--goztep-white);
}

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

.standings-table thead th {
  background: var(--goztep-red);
  color: var(--goztep-white);
  padding: 0.75rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.standings-table thead th:nth-child(2) {
  text-align: left;
  padding-left: 1rem;
}

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

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

.standings-table tbody tr:hover {
  background: #fafafa;
}

.standings-table td {
  padding: 0.65rem 0.6rem;
  text-align: center;
  font-size: 0.88rem;
}

.standings-table td:nth-child(2) {
  text-align: left;
  padding-left: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Göztepe satırı vurgu */
.standings-table tbody tr.goztep-row {
  background: linear-gradient(to right, #fff8dc, #fffef5);
  border-left: 4px solid var(--goztep-yellow);
}

.standings-table tbody tr.goztep-row td:nth-child(2) {
  color: var(--goztep-red);
}

.standings-table tbody tr.goztep-row:hover {
  background: linear-gradient(to right, #fff3c0, #fffef0);
}

/* Zon renkleri */
.standings-table tbody tr.zone-champions td:first-child {
  border-left: 4px solid #1565c0;
}
.standings-table tbody tr.zone-europa td:first-child {
  border-left: 4px solid #2e7d32;
}
.standings-table tbody tr.zone-conference td:first-child {
  border-left: 4px solid #558b2f;
}
.standings-table tbody tr.zone-relegation td:first-child {
  border-left: 4px solid #c62828;
}

.points-cell {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--goztep-dark);
}

.standings-table .rank-cell {
  color: var(--goztep-gray);
  font-size: 0.82rem;
}

/* Zon Açıklaması */
.zone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--goztep-gray);
}

.zone-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Marş Kartları ---- */
.march-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.march-card {
  background: var(--goztep-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
  border-left: 5px solid var(--goztep-red);
  transition: box-shadow var(--transition), transform var(--transition);
}

.march-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.march-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--goztep-red);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.march-card h2 i {
  color: var(--goztep-yellow-dark);
  font-size: 1rem;
}

.march-sub {
  font-size: 0.8rem;
  color: var(--goztep-gray);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.lyrics {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #333;
  white-space: pre-line;
  background: var(--goztep-light);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e8e8e8;
}

/* ---- Video Grid ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.video-card {
  background: var(--goztep-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: var(--goztep-dark);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card-body {
  padding: 1rem 1.25rem;
}

.video-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--goztep-dark);
}

.video-card-body p {
  font-size: 0.82rem;
  color: var(--goztep-gray);
  line-height: 1.5;
}

.video-tag {
  display: inline-block;
  background: #fff0f0;
  color: var(--goztep-red);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ---- Tarihçe (Timeline) ---- */
.history-hero {
  background: linear-gradient(135deg, var(--goztep-dark) 0%, #3a0000 100%);
  color: var(--goztep-white);
  padding: 3rem 1.5rem;
  margin: 0 -1.5rem 2.5rem;
  text-align: center;
}

.history-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--goztep-yellow);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.history-hero .subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

.history-nav {
  background: var(--goztep-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.history-nav a {
  color: var(--goztep-dark);
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  font-weight: 500;
}

.history-nav a:hover {
  background: var(--goztep-red);
  color: var(--goztep-white);
  border-color: var(--goztep-red);
  text-decoration: none;
}

.timeline {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--goztep-red), var(--goztep-yellow), var(--goztep-red));
}

.timeline-item {
  position: relative;
  padding-left: 55px;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--goztep-yellow);
  border: 3px solid var(--goztep-red);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-dot i {
  font-size: 0.65rem;
  color: var(--goztep-red);
}

.timeline-card {
  background: var(--goztep-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}

.timeline-card .year-badge {
  display: inline-block;
  background: var(--goztep-red);
  color: var(--goztep-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--goztep-dark);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}

/* Başarılar Kutusu */
.achievements-box {
  background: linear-gradient(135deg, var(--goztep-red) 0%, #8b000a 100%);
  color: var(--goztep-white);
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.achievements-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--goztep-yellow);
}

.achievements-box ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.achievements-box ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.achievements-box ul li::before {
  content: '★';
  color: var(--goztep-yellow);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Info Card ---- */
.info-card {
  background: var(--goztep-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border-top: 4px solid var(--goztep-yellow);
}

.info-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}

/* ---- Official Link Banner ---- */
.official-banner {
  background: linear-gradient(to right, var(--goztep-dark), #2c0000);
  color: var(--goztep-white);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.official-banner p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.official-banner p strong {
  color: var(--goztep-yellow);
  display: block;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-yellow {
  background: var(--goztep-yellow);
  color: var(--goztep-dark);
}

.btn-yellow:hover {
  background: var(--goztep-yellow-dark);
  color: var(--goztep-dark);
}

.btn-red {
  background: var(--goztep-red);
  color: var(--goztep-white);
}

.btn-red:hover {
  background: var(--goztep-red-dark);
  color: var(--goztep-white);
}

/* ---- Footer ---- */
footer {
  background: var(--goztep-dark);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--goztep-yellow);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--goztep-yellow);
  text-decoration: none;
}

.footer-col p {
  font-size: 0.83rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: var(--goztep-yellow);
  text-decoration: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--goztep-white);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-logo .logo-dot {
  width: 28px;
  height: 28px;
  background: var(--goztep-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--goztep-red);
}

/* ---- Spinner / Loading ---- */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--goztep-gray);
  gap: 1rem;
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--goztep-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Page Header (alt sayfalar) ---- */
.page-header {
  background: linear-gradient(135deg, var(--goztep-red) 0%, #8b000a 100%);
  color: var(--goztep-white);
  padding: 2.5rem 1.5rem 2rem;
  margin: 0 -1.5rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.page-header i {
  margin-right: 0.4rem;
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 768px) {
  .header-inner {
    height: 58px;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #c40010;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  nav.open {
    max-height: 300px;
    padding: 0.5rem 0 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li a {
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    justify-content: flex-start;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
  }

  .standings-table {
    font-size: 0.82rem;
  }

  .march-card {
    padding: 1.25rem 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .official-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  main {
    padding: 0 1rem;
  }

  .hero {
    margin: 0 -1rem 2rem;
  }

  .page-header {
    margin: 0 -1rem 1.5rem;
    padding: 2rem 1rem 1.75rem;
  }

  .history-hero {
    margin: 0 -1rem 2rem;
    padding: 2rem 1rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .achievements-box ul {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    padding-left: 0;
    margin-bottom: 1.25rem;
  }

  .timeline-dot {
    display: none;
  }
}
