@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Inter:wght@300;400;500;600;700&display=swap');

/*
 * Utility siniflari (flex, grid, text-fc-navy, vb.) sayfada Tailwind CDN ile uretilir.
 * Bu dosya orijinal globals ile ayni tema + bilesen siniflarini duz CSS olarak icerir.
 */

:root {
  --fc-red: #db4646;
  --fc-red-dark: #c83939;
  --fc-navy: #1c254e;
  --fc-white: #fbf9f9;
  --fc-gray: #99999b;
}

*,
::before,
::after {
  border-color: #e5e7eb;
}

body {
  background-color: #fbf9f9;
  color: #1c254e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.heading-display {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.heading-section {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fc-red);
}

.btn-primary {
  background-color: #db4646;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #c83939;
}

.btn-outline {
  border-width: 2px;
  border-style: solid;
  border-color: #fff;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  display: inline-block;
  background: transparent;
}

.btn-outline:hover {
  background-color: #fff;
  color: #db4646;
}

.nav-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-weight: 600;
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
}

.card-category {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #db4646;
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
}

.match-card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.125rem;
}

.player-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #db4646, transparent);
  padding: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #db4646;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c83939;
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes countdown {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-countdown {
  animation: countdown 1s ease-in-out infinite;
}

/* Erişilebilirlik */
.fc-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--fc-navy);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.875rem;
  border-radius: 0 0 0.375rem 0.375rem;
}

.fc-skip-link:focus {
  left: 1rem;
  top: 0;
  outline: 2px solid var(--fc-red);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Yukarı çık */
.fc-back-to-top {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--fc-red);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgb(28 37 78 / 0.22);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  touch-action: manipulation;
}

.fc-back-to-top:hover {
  background: var(--fc-red-dark);
  transform: translateY(-2px);
}

.fc-back-to-top.fc-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fc-back-to-top.fc-visible {
  opacity: 1;
  visibility: visible;
}

/* Çerez bildirimi */
.fc-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgb(28 37 78 / 0.97);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.fc-cookie-bar.fc-cookie-hide {
  transform: translateY(110%);
  opacity: 0;
}

.fc-cookie-bar-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .fc-cookie-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.fc-cookie-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.88);
}

.fc-cookie-text a {
  color: #fff;
}

.fc-cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.fc-cookie-btn {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  touch-action: manipulation;
}

.fc-cookie-btn-primary {
  background: var(--fc-red);
  color: #fff;
  border: none;
}

.fc-cookie-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.35);
}

/* Form ve dokunma alanları */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

@media (max-width: 639px) {
  .btn-primary,
  .btn-outline {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Yasal sayfa tipografi */
.prose-legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.prose-legal li {
  margin-top: 0.35rem;
}

/* Breadcrumb */
.fc-breadcrumbs a:focus-visible,
.fc-breadcrumbs span:focus-visible {
  outline: 2px solid var(--fc-red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Tablo mobil kaydırma ipucu */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Baskı */
@media print {
  header,
  footer,
  .fc-back-to-top,
  .fc-cookie-bar,
  #fc-live-score-strip,
  .fc-live-score-strip {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.75rem;
  }
}
