/**
 * Created by 11Hopem
 * Copyright (c) 2026 11hopem. All rights reserved.
 * Licensed under 11Hopem Proprietary License.
 */

:root {
  --bg-primary: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: #ffffff;
  
  --color-brand-blue: #0284c7;
  --color-brand-darkblue: #0369a1;
  --color-brand-orange: #f97316;
  --color-royal-blue: #2563eb;

  /* Official Emblem Logo Colors */
  --color-logo-blue: #0191ce;    /* Exact cyan-blue from official logo YÜZ */
  --color-logo-yellow: #f6863e;  /* Exact warm golden amber/yellow from official logo DE */
  --color-logo-gray: #5e5e5e;    /* Exact dark-medium gray from official logo SPOR MERKEZİ */
  
  --color-rose: #e11d48;
  --color-rose-bg: #fff1f2;
  --color-rose-text: #9f1239;
  --color-rose-border: #fecdd3;
  
  --color-blue-bg: #eff6ff;
  --color-blue-text: #1e40af;
  --color-blue-border: #bfdbfe;
  
  --color-amber-bg: #fefce8;
  --color-amber-text: #92400e;
  --color-amber-border: #fef08a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #0284c7;
  
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 10px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-nav-call, .btn-nav-whatsapp, .btn-nav-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-nav-call {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-nav-call:hover {
  background: #e2e8f0;
  color: #000000;
  transform: translateY(-1px);
}

.btn-nav-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #20bd5a;
}

.btn-nav-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

.btn-nav-map {
  background: var(--color-blue-bg);
  color: var(--color-brand-darkblue);
  border: 1px solid var(--color-blue-border);
}

.btn-nav-map:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 36px 0 24px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-brand-word {
  white-space: nowrap;
}

.hero-title .logo-color-blue {
  color: var(--color-logo-blue);
}

.hero-title .logo-color-yellow {
  color: var(--color-logo-yellow);
}

.hero-title .logo-color-gray {
  color: var(--color-logo-gray);
  font-weight: 800;
}

/* Backward compatibility aliases */
.hero-title .highlight-blue {
  color: var(--color-logo-blue);
}

.hero-title .highlight-orange {
  color: var(--color-logo-yellow);
}

.hero-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.quick-link-btn.primary {
  background: var(--color-brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.quick-link-btn.primary:hover {
  background: var(--color-brand-darkblue);
  transform: translateY(-2px);
}

.quick-link-btn.secondary {
  background: var(--color-rose);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.quick-link-btn.secondary:hover {
  background: #be123c;
  transform: translateY(-2px);
}

/* Sections Common */
.section {
  padding: 44px 0;
}

.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-top: 6px;
}

/* Pool Schedule Matrix (Authentic Schedule Card 1:1 - WhatsApp Image 2026-07-25 at 14.00.04.jpeg) */
#havuz-seanslari .section-header {
  text-align: center;
  margin-bottom: 20px;
}

#havuz-seanslari .section-title {
  color: #004e98;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}

#havuz-seanslari .section-desc {
  display: none;
}

.pool-matrix-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  max-width: 960px;
  margin: 0 auto;
}

.schedule-legend-bar {
  display: none;
}

.table-responsive-container {
  overflow-x: auto;
  border-radius: 2px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.schedule-matrix-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
  text-align: center;
  min-width: 800px;
  background: #ffffff;
}

/* Day Headers on Card: Clean White background with thin crisp black border */
.schedule-matrix-table th {
  width: 12.285%;
  background: #ffffff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 2px;
  height: 40px;
  border: none;
  box-shadow: inset 0 0 0 1.5px #000000;
  border-radius: 1px;
  vertical-align: middle;
}

/* Empty Top-Left Header matching the authentic pocket card */
.schedule-matrix-table th.time-header {
  width: 14%;
  border: none;
  box-shadow: none;
  background: transparent;
  color: transparent;
  opacity: 0;
  user-select: none;
}

.schedule-matrix-table td {
  width: 12.285%;
  padding: 0;
  height: 40px;
  vertical-align: middle;
  border: none;
}

/* Time Slots Column: Deep Dark Navy with Bold White Text */
.schedule-matrix-table td.time-cell {
  width: 14%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: #ffffff;
  background: #0a192f;
  white-space: nowrap;
  padding: 0 4px;
  height: 40px;
  line-height: 40px;
  box-sizing: border-box;
  border-radius: 1px;
}

.cell-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 40px;
  padding: 0 2px;
  box-sizing: border-box;
  border-radius: 1px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  box-shadow: none;
}

/* Authentic Card Colors (WhatsApp Image 2026-07-25 at 14.00.04.jpeg): */

/* ERKEK: Vibrant Royal Blue (#0055a5) with Bold White Text */
.cell-men {
  background: #0055a5;
  color: #ffffff;
}

/* TEMİZLİK: Bright Sunshine Yellow (#ffd800) with Bold Black Text */
.cell-cleaning {
  background: #ffd800;
  color: #000000;
}

/* KADIN (BAYAN): Vibrant Brilliant Orange (#f15a24) across all days */
.cell-women,
.cell-women.cell-women-weekend {
  background: #f15a24;
  color: #ffffff;
}

.matrix-footer-note {
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Fitness Schedule Section (Kadın & Erkek) */
.fitness-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.fitness-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fitness-block.women-block {
  border-top: 5px solid var(--color-rose);
}

.fitness-block.men-block {
  border-top: 5px solid var(--color-brand-blue);
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.block-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.block-icon {
  font-size: 1.6rem;
}

.block-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.block-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.women-block .block-tag {
  background: var(--color-rose-bg);
  color: var(--color-rose);
  border: 1px solid var(--color-rose-border);
}

.men-block .block-tag {
  background: var(--color-blue-bg);
  color: var(--color-brand-darkblue);
  border: 1px solid var(--color-blue-border);
}

/* Schedule Card inside Fitness Block */
.fitness-schedule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.f-card-days {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.f-card-time {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.women-block .f-card-time {
  color: var(--color-rose);
}

.men-block .f-card-time {
  color: var(--color-brand-darkblue);
}

.f-card-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

/* Contact Section */
.contact-section {
  padding: 44px 0 60px;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-focus);
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.contact-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-brand-blue);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-top: auto;
}

.contact-card-link:hover {
  color: var(--color-brand-darkblue);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 30px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  background: #ffffff;
}

.site-footer a {
  color: var(--color-brand-blue);
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 8px 0;
  }
  
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .brand-logo {
    height: 48px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .btn-nav-call, .btn-nav-whatsapp, .btn-nav-map {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .hero-section {
    padding: 24px 0 16px;
  }

  .hero-quick-links {
    flex-direction: column;
  }

  .quick-link-btn {
    width: 100%;
    justify-content: center;
  }

  .pool-matrix-wrapper {
    padding: 16px;
  }

  .fitness-block {
    padding: 20px;
  }
}
