/*
Theme Name: BestTickets
Theme URI: https://besttickets.bg/
Description: Каталог на събития с връзки към продавачите на билети.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: besttickets
*/

:root {
  --ink: #0e1a2b;
  --ink-2: #24324a;
  --muted: #3b4a61;
  --line: #dde3ec;
  --ground: #f3f5f9;
  --card: #ffffff;
  --accent: #ffc531;
  --link: #1b4fd8;
  --on-dark: #c9d3e2;
  --display: "Unbounded", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: #123a9e; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
.bt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Заглавна част */
.bt-header { background: var(--ink); color: #fff; }
.bt-header .bt-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.bt-logo { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; text-decoration: none; }
.bt-logo:hover { color: #fff; }
.bt-logo span { color: var(--accent); }
.bt-nav { flex: 1 1 400px; }
.bt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.bt-menu a { display: block; padding: 12px 0; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.bt-menu a:hover { color: var(--accent); }

/* Търсене */
.bt-search { background: #fff; border-radius: 16px; padding: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.bt-field { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; }
.bt-field--wide { flex: 2 1 240px; }
.bt-field label { font-size: 13px; font-weight: 700; color: var(--muted); padding-left: 12px; }
.bt-field input, .bt-field select {
  border: 1px solid #c3ccda; border-radius: 10px; min-height: 48px; padding: 0 12px;
  font: inherit; color: var(--ink); background: #fff; width: 100%;
}
.bt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--ink); border: 0; border-radius: 10px;
  min-height: 48px; padding: 0 24px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.bt-btn:hover { color: var(--ink); filter: brightness(0.95); }
.bt-search .bt-btn { flex: 0 1 160px; }
.bt-search--compact { border: 1px solid var(--line); }

/* Начална страница */
.bt-hero { background: var(--ink); color: #fff; }
.bt-hero .bt-wrap { padding-top: 56px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.bt-hero h1 { font-size: clamp(30px, 4.4vw, 54px); max-width: 860px; }
.bt-hero p { margin: 0; font-size: 18px; color: var(--on-dark); max-width: 640px; }
.bt-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--on-dark); }
.bt-chips a { color: #fff; text-decoration: none; border: 1px solid #5b6b84; border-radius: 999px; padding: 10px 16px; font-weight: 600; }
.bt-chips a:hover { border-color: var(--accent); color: var(--accent); }

.bt-main { display: flex; flex-direction: column; gap: 64px; padding-bottom: 72px; }
.bt-main--page { padding-top: 32px; gap: 32px; }
.bt-section { display: flex; flex-direction: column; gap: 24px; }
.bt-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.bt-section-head h2, .bt-section > h2 { font-size: 28px; }
.bt-section-head a { font-weight: 700; padding: 12px 0; }

.bt-feature { margin-top: -36px; display: flex; flex-wrap: wrap; gap: 20px; }
.bt-feature-main {
  flex: 2 1 480px; min-height: 340px; border-radius: 18px; overflow: hidden; background: #c9d4e6;
  border: 1px solid #b5c1d6; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end;
}
.bt-feature-main .bt-thumb { flex: 1; min-height: 200px; }
.bt-feature-info { background: #fff; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.bt-feature-info > div { display: flex; flex-direction: column; gap: 4px; }
.bt-feature-info strong { font-family: var(--display); font-weight: 500; font-size: 22px; }
.bt-feature-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.bt-feature-side a {
  flex: 1; min-height: 160px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.bt-feature-side strong { font-family: var(--display); font-weight: 500; font-size: 18px; }
.bt-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--link); }
.bt-muted { color: var(--muted); font-size: 14px; }

/* Карти на събития */
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.bt-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.bt-card:hover { color: var(--ink); border-color: #9fb0c9; }
.bt-thumb { position: relative; height: 168px; background: #d5ddea; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.bt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bt-datebadge { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: 13px; line-height: 1.2; text-align: center; color: var(--ink); }
.bt-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bt-card-title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.bt-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #e6eaf1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bt-card-foot strong { font-weight: 700; }

/* Градове */
.bt-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.bt-cities a { background: var(--ink); color: #fff; text-decoration: none; border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.bt-cities a:hover { color: var(--accent); }
.bt-cities strong { font-family: var(--display); font-weight: 500; font-size: 18px; }
.bt-cities span { font-size: 14px; color: var(--on-dark); }

/* Как работи */
.bt-how { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.bt-how h2 { font-size: 24px; }
.bt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.bt-steps div { display: flex; flex-direction: column; gap: 8px; }
.bt-steps b { font-family: var(--display); font-size: 22px; color: var(--link); }
.bt-steps strong { font-size: 18px; }
.bt-steps span { color: var(--muted); }

/* Блог */
.bt-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.bt-post { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; color: var(--ink); text-decoration: none; }
.bt-post-thumb { flex: 0 0 96px; height: 96px; border-radius: 10px; background: #d5ddea; overflow: hidden; }
.bt-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bt-post strong { font-weight: 700; }

/* Страница на събитие */
.bt-crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.bt-event { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.bt-event-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.bt-event-image { border-radius: 18px; overflow: hidden; background: #c9d4e6; border: 1px solid #b5c1d6; min-height: 240px; }
.bt-event-image img { width: 100%; }
.bt-event-head { display: flex; flex-direction: column; gap: 16px; }
.bt-event-head h1 { font-size: clamp(26px, 3.6vw, 42px); }
.bt-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bt-facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.bt-facts span { font-size: 13px; color: var(--muted); }
.bt-facts strong { font-weight: 700; }
.bt-ghost { display: inline-flex; align-items: center; background: #fff; color: var(--ink); border: 1px solid #c3ccda; border-radius: 10px; min-height: 44px; padding: 0 16px; font-weight: 600; text-decoration: none; }
.bt-content { color: var(--ink-2); max-width: 68ch; }
.bt-content h2 { font-size: 22px; margin: 0 0 12px; color: var(--ink); }
.bt-map { width: 100%; height: 280px; border: 1px solid #b5c1d6; border-radius: 16px; }
.bt-sellers { flex: 1 1 340px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.bt-sellers h2 { font-size: 20px; }
.bt-seller { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bt-seller-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bt-seller-top strong { font-size: 17px; }
.bt-note { font-size: 13px; color: var(--muted); border-top: 1px solid #e6eaf1; padding-top: 16px; margin: 0; }

/* Архив и блог */
.bt-page-title { font-size: clamp(26px, 3.4vw, 38px); }
.bt-pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.bt-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.bt-empty { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.bt-article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 40px); }
.bt-article h1 { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 16px; }
.bt-article .bt-content { max-width: 72ch; }

/* Футър */
.bt-footer { background: var(--ink); color: var(--on-dark); }
.bt-footer .bt-wrap { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.bt-footer-cols { display: flex; flex-wrap: wrap; gap: 32px; }
.bt-footer-about { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; max-width: 420px; }
.bt-footer-about strong { font-family: var(--display); font-size: 18px; color: #fff; }
.bt-footer-col { flex: 1 1 160px; font-size: 15px; }
.bt-footer-col b { color: #fff; }
.bt-footer ul { list-style: none; margin: 4px 0 0; padding: 0; }
.bt-footer li a { display: block; padding: 8px 0; color: var(--on-dark); text-decoration: none; }
.bt-footer li a:hover { color: #fff; }
.bt-copy { font-size: 13px; border-top: 1px solid #2b3a52; padding-top: 20px; }

/* Събития без снимка */
.bt-thumb--empty { height: 64px; background: #e3e9f2; }
.bt-feature-main--plain { min-height: 0; background: #fff; border-color: var(--line); justify-content: center; }
.bt-source { font-size: 14px; color: var(--muted); margin: 0; }
