/*
Theme Name: Bilet.be
Theme URI: https://bilet.be/
Author: Bilet.be
Author URI: https://bilet.be/
Description: Belçika'daki Türk topluluğu için hızlı, bağımsız seyahat ve etkinlik affiliate teması.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: bilet-be
*/

:root {
  --blue: #003580;
  --blue-dark: #00245a;
  --blue-soft: #eaf2ff;
  --red: #e50914;
  --red-dark: #bd0710;
  --ink: #172033;
  --muted: #64748b;
  --surface: #ffffff;
  --page: #f5f7fb;
  --line: #e2e8f0;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 35, 91, .12);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: inline-flex; align-items: center; gap: 10px; font-size: 1.55rem; font-weight: 850; letter-spacing: -.04em; color: var(--blue); }
.site-branding .brand-dot { color: var(--red); }
.custom-logo { max-height: 44px; width: auto; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 26px; font-weight: 700; }
.primary-menu a { transition: color .2s ease; }
.primary-menu a:hover, .primary-menu a:focus-visible { color: var(--red); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 86px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(229,9,20,.46), transparent 28%),
    linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, #0758bd);
}
.hero::after { content: ""; position: absolute; inset: auto -8% -180px 30%; height: 300px; border-radius: 50%; background: rgba(255,255,255,.07); transform: rotate(-8deg); }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 18px 0 10px; font-size: clamp(2.35rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -.055em; }
.hero-copy { max-width: 690px; margin: 0 0 34px; color: #dbeafe; font-size: clamp(1rem, 2vw, 1.2rem); }

/* Search tabs */
.search-panel { max-width: 980px; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid rgba(255,255,255,.5); border-radius: 22px; box-shadow: 0 22px 60px rgba(0, 20, 60, .26); }
.tab-list { display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px; gap: 7px; background: #edf3fb; border-bottom: 1px solid var(--line); }
.tab-button { min-height: 54px; border: 0; border-radius: 14px; color: #46536b; background: transparent; cursor: pointer; font-weight: 800; transition: background .2s, color .2s, transform .2s; }
.tab-button:hover { background: #fff; }
.tab-button[aria-selected="true"] { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(0,53,128,.22); }
.tab-button:focus-visible { outline: 3px solid #ffbdc1; outline-offset: 2px; }
.tab-panel { min-height: 175px; padding: 28px; }
.tab-panel[hidden] { display: none; }
.widget-slot { min-height: 118px; display: grid; place-items: center; padding: 22px; border: 2px dashed #cbd5e1; border-radius: 14px; background: #f8fafc; text-align: center; }
.widget-slot strong { display: block; color: var(--blue); font-size: 1.04rem; }
.widget-slot span { display: block; max-width: 620px; margin-top: 5px; color: var(--muted); font-size: .9rem; }

/* Content sections */
.content-section { padding: 72px 0 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; color: var(--blue-dark); font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 800; white-space: nowrap; }
.text-link:hover { color: var(--red); }
.flight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flight-card { position: relative; overflow: hidden; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(15,23,42,.06); transition: transform .2s, box-shadow .2s; }
.flight-card::before { content: "✈"; position: absolute; top: 14px; right: 18px; color: #d9e7fb; font-size: 2.2rem; transform: rotate(-8deg); }
.flight-card:hover, .event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.route-label { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.flight-card h3 { margin: 7px 0 18px; color: var(--blue-dark); font-size: 1.35rem; }
.price { margin: 0 0 20px; color: var(--muted); }
.price strong { color: var(--red); font-size: 1.7rem; line-height: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 11px; color: #fff; background: var(--red); cursor: pointer; font-weight: 800; transition: background .2s, transform .2s; }
.button:hover, .button:focus-visible { background: var(--red-dark); }
.button:active { transform: translateY(1px); }
.button-secondary { background: var(--blue); }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--blue-dark); }
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event-card { overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(15,23,42,.06); transition: transform .2s, box-shadow .2s; }
.event-image { aspect-ratio: 4 / 3; display: grid; place-items: center; color: #dcecff; background: linear-gradient(135deg, var(--blue-dark), #0873db); font-size: 3rem; }
.event-card:nth-child(even) .event-image { background: linear-gradient(135deg, #79050b, var(--red)); }
.event-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 21px; }
.event-date { margin-bottom: 7px; color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.event-card h3 { margin: 0 0 18px; color: var(--blue-dark); font-size: 1.16rem; line-height: 1.35; }
.event-content .button { margin-top: auto; }
.site-main > article, .site-main > .page-content { width: min(calc(100% - 32px), var(--container)); margin: 48px auto; }

/* Footer */
.site-footer { margin-top: 78px; padding: 54px 0 25px; color: #cbd5e1; background: #061a37; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 42px; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: 1.3rem; }
.footer-heading { margin: 0 0 12px; color: #fff; font-size: .95rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li + li { margin-top: 7px; }
.footer-menu a:hover { color: #fff; }
.affiliate-note { max-width: 550px; font-size: .86rem; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }

@media (max-width: 900px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .flight-grid { grid-template-columns: 1fr; }
  .primary-menu { gap: 14px; font-size: .92rem; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .site-header { position: relative; }
  .header-inner { min-height: auto; padding: 16px 0; flex-direction: column; align-items: flex-start; gap: 10px; }
  .primary-menu { flex-wrap: wrap; gap: 8px 16px; }
  .hero { padding: 50px 0 58px; }
  .hero h1 { font-size: 2.5rem; }
  .tab-list { grid-template-columns: 1fr; }
  .tab-button { min-height: 48px; }
  .tab-panel { min-height: 200px; padding: 18px; }
  .event-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
