/*
Theme Name: LiveCams Ultra
Theme URI: https://example.com/
Author: Anton + ChatGPT
Author URI: https://example.com/
Description: Ultra modern WordPress theme for live webcams directory. No Tailwind. UA main + EN secondary (Polylang-ready).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: livecams-ultra
*/

/* =========================
   Design tokens (Ultra Modern)
   ========================= */
:root {
  /* Warm, light, “expensive” palette */
  --bg: #fbf7f1;
  --bg-2: #f6efe6;

  --card: rgba(255,255,255,.72);
  --card-2: rgba(255,255,255,.86);

  --border: rgba(17,24,39,.10);
  --border-2: rgba(17,24,39,.14);

  --text: rgba(17,24,39,.92);
  --muted: rgba(17,24,39,.66);
  --muted-2: rgba(17,24,39,.50);

  --accent: #b88932;      /* warm gold */
  --accent-2: #d8a25b;    /* champagne */
  --good: #34D399;
  --warn: #FBBF24;
  --bad: #FB7185;

  --radius-2xl: 28px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow: 0 20px 60px rgba(17,24,39,.10);
  --shadow-soft: 0 10px 30px rgba(17,24,39,.08);

  --container: 1180px;
  --gutter: 20px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(184,137,50,.22), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(216,162,91,.18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--gutter);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

/* =========================
   Buttons + Inputs
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
  user-select: none;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-2);
  background: rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
}
.btn:active { transform: translateY(0); }

.btn--primary {
  border-color: rgba(106,228,255,.35);
  background: linear-gradient(135deg, rgba(106,228,255,.20), rgba(167,139,250,.18));
}
.btn--primary:hover {
  border-color: rgba(106,228,255,.55);
  background: linear-gradient(135deg, rgba(106,228,255,.28), rgba(167,139,250,.24));
}

.btn--ghost { background: transparent; }

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:focus {
  border-color: rgba(106,228,255,.55);
  background: rgba(255,255,255,.10);
}

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 14px;
}
.chip:hover { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,.08); }

/* =========================
   Header
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(
    90deg,
    rgba(122, 82, 63, 0.78) 0%,
    rgba(160, 104, 74, 0.76) 24%,
    rgba(198, 128, 85, 0.74) 52%,
    rgba(224, 164, 109, 0.72) 76%,
    rgba(241, 201, 145, 0.70) 100%
  );
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}

.site-header.is-scrolled {
  background: linear-gradient(
    90deg,
    rgba(112, 74, 57, 0.88) 0%,
    rgba(148, 96, 68, 0.86) 24%,
    rgba(184, 119, 79, 0.84) 52%,
    rgba(210, 151, 101, 0.82) 76%,
    rgba(228, 186, 132, 0.80) 100%
  );
  border-bottom-color: rgba(255,255,255,.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(106,228,255,.9), rgba(167,139,250,.85));
  box-shadow: 0 14px 35px rgba(106,228,255,.18);
}
.brand-name { font-weight: 700; letter-spacing: .2px; color: rgba(255,255,255,.92); }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: rgba(255,255,255,.72); font-weight: 700; font-size: 14px; }
.nav a:hover { color: rgba(255,255,255,.92); }

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

/* header buttons should look good on dark header */
.site-header .btn,
.site-header .lang-switch {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
}
.site-header .btn:hover{
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
}
.site-header .btn--primary{
  border-color: rgba(216,162,91,.40);
  background: linear-gradient(135deg, rgba(216,162,91,.22), rgba(184,137,50,.18));
}
.site-header .btn--primary:hover{
  border-color: rgba(216,162,91,.55);
  background: linear-gradient(135deg, rgba(216,162,91,.30), rgba(184,137,50,.24));
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.lang-switch a {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.70);
}
.lang-switch a.is-active {
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.10);
}

.mobile-toggle { display: none; }
.mobile-drawer { display: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1100;
  }
  .mobile-drawer.is-open { display: block; }
  .mobile-panel {
    position: absolute;
    right: 12px;
    top: 12px;
    width: min(420px, calc(100% - 24px));
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(12,16,30,.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    padding: 14px;
  }
  .mobile-nav a {
    display: block;
    padding: 12px 12px;
    border-radius: 14px;
    color: rgba(255,255,255,.90);
    font-weight: 800;
  }
  .mobile-nav a:hover { background: rgba(255,255,255,.08); }
  .mobile-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
}

/* =========================
   Hero
   ========================= */
.hero { padding: 56px 0 26px; }
.hero-grid { display:grid; grid-template-columns: 1.3fr .7fr; gap:24px; align-items:stretch; }
.hero-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-card:before {
  content: "";
  position: absolute;
  inset: -80px -80px auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, rgba(106,228,255,.45), transparent 60%);
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.8px;
}
.hero p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}
.hero-search { display:grid; grid-template-columns: 1fr auto; gap:10px; align-items:center; }

.hero-side {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.globe {
  height: 190px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(100px 80px at 30% 35%, rgba(106,228,255,.35), transparent 60%),
    radial-gradient(120px 90px at 70% 55%, rgba(167,139,250,.30), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}
.mini-cam {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  padding: 12px;
}
.mini-cam-top { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .3px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
}
.badge--live { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.12); }
.badge--off { border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.10); }
.badge-dot { width:8px; height:8px; border-radius:50%; background: var(--good); }
.badge--off .badge-dot { background: var(--bad); }

.preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
}

@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* =========================
   Sections + grids
   ========================= */
.section { padding: 26px 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px; }
.section-title { margin:0; font-size:20px; letter-spacing:-0.2px; }
.section-sub { margin:0; color:var(--muted); font-size:14px; }

.grid { display:grid; gap:14px; }
.grid--countries { grid-template-columns: repeat(4, 1fr); }
.grid--cards { grid-template-columns: repeat(3, 1fr); }
.grid--cities { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid--countries, .grid--cities { grid-template-columns: repeat(2, 1fr); }
  .grid--cards { grid-template-columns: repeat(1, 1fr); }
}
@media (max-width: 520px) {
  .grid--countries, .grid--cities { grid-template-columns: 1fr; }
}

.card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  padding: 16px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow-soft);
}
.card-title { margin: 10px 0 0; font-size: 15px; letter-spacing: -0.1px; }
.card-meta { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.card-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.kpi {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.camera-card .preview { margin-top: 10px; }

.pill-row { display:flex; flex-wrap:wrap; gap:10px; }
.pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.pill:hover { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,.07); }

/* =========================
   Layout: sidebar pages
   ========================= */
.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 86px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 14px;
}
.sidebar h3 {
  margin: 6px 0 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.filter-group { display:grid; gap:10px; margin-bottom:14px; }
.checkbox { display:flex; align-items:center; gap:10px; color:var(--muted); font-weight:800; font-size:13px; }
.checkbox input { width:18px; height:18px; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; }
}

/* =========================
   Camera page (base)
   ========================= */
.player {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.player-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  display: grid;
  place-items: center;
}
.player-inner iframe, .player-inner video { width:100%; height:100%; border:0; display:block; }

.camera-actions { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 0; }

.info-box {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 14px;
}
.info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.info-row:first-child { border-top: 0; }
.info-k { color: var(--muted); font-weight: 900; font-size: 13px; }
.info-v { color: var(--text); font-weight: 800; font-size: 13px; }

/* =========================
   Breadcrumbs (GLOBAL)
   IMPORTANT: this fixes ALL pages, not only single-lc_cam.php
   Works for BOTH .lc-breadcrumbs and old .breadcrumbs
   ========================= */
.lc-breadcrumbs,
.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  padding:12px 14px;
  margin:14px 0 18px;
  border-radius:16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  backdrop-filter: blur(10px);
}

.lc-breadcrumbs .lc-bc-link,
.breadcrumbs a{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  color: rgba(15,18,22,.88);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .12s ease, background .12s ease;
}

.lc-breadcrumbs .lc-bc-link:hover,
.breadcrumbs a:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.07);
}

/* Separator support:
   - for .lc-breadcrumbs we already have .lc-bc-sep
   - for .breadcrumbs we add separator automatically between links
*/
.lc-bc-sep{
  color: rgba(15,18,22,.30);
  font-weight: 900;
  user-select:none;
}
.breadcrumbs a + a::before{
  content:"›";
  display:inline-block;
  margin:0 8px 0 2px;
  color: rgba(15,18,22,.30);
  font-weight: 900;
}

/* =========================
   SEO block + FAQ
   ========================= */
.seo-block {
  margin-top: 18px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 18px;
}
.seo-block h2 { margin: 0 0 8px; font-size: 18px; }
.seo-block p { margin: 0 0 10px; color: var(--muted); line-height: 1.7; }

.accordion { display:grid; gap:10px; margin-top:12px; }
.accordion details {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  padding: 12px 14px;
}
.accordion summary { cursor:pointer; font-weight:900; color:var(--text); }
.accordion p { margin: 10px 0 0; color: var(--muted); }

/* =========================
   Footer
   ========================= */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,26,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 26px 0;
}
.footer-col h4 { margin: 0 0 10px; font-size: 14px; letter-spacing: .2px; color: rgba(255,255,255,.92); }
.footer-col a {
  display:block;
  color: rgba(255,255,255,.70);
  padding: 6px 0;
  font-weight: 700;
  font-size: 14px;
}
.footer-col a:hover { color: rgba(255,255,255,.92); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* =========================
   WP basics
   ========================= */
.entry-content p { line-height: 1.75; color: var(--muted); }

/* =========================
   Helpers / fixes
   ========================= */
.preview--img{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.preview--img::after{
  content:"";
  position:absolute; inset:0;
  /* subtle highlight for light theme */
  background: linear-gradient(180deg, rgba(255,255,255,.00), rgba(17,24,39,.18));
}
.pill.is-active{
  border-color: rgba(17,24,39,.14);
  background: rgba(255,255,255,.86);
}

/* чтобы globe не перехватывал клики */
.hero-side .globe{ pointer-events:none; }

/* кликается вся карточка в hero preview */
.mini-cam{
  display:block;
  text-decoration:none;
  color: inherit;
  cursor: pointer;
}
.mini-cam *{ pointer-events:none; }
.mini-cam::after{ pointer-events:none; }
.mini-cam:hover{ transform: translateY(-1px); }
.mini-cam-title{
  margin:10px 0 0;
  color: var(--muted);
  font-weight:700;
}
/* =========================
   LiveCams: filters UI
   ========================= */
.lc-filter-pills{ display:flex; flex-wrap:wrap; gap:10px; }
.lc-filter-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  user-select:none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lc-filter-pill:hover{
  transform: translateY(-1px);
  border-color: var(--border-2);
  background: rgba(255,255,255,.07);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}
.lc-filter-pill.is-active{
  color: var(--text);
  border-color: rgba(17,24,39,.14);
  background: rgba(255,255,255,.86);
}
.lc-filter-pill input{ position:absolute; opacity:0; pointer-events:none; }

.lc-filter-empty{
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(17,24,39,.16);
  background: rgba(255,255,255,.45);
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
/* Ads wrapper */
.lc-ad{
  margin: 14px 0;
  border-radius: var(--radius-2xl);
  border: 1px dashed rgba(184,137,50,.35);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}


/* ===== TEXT LOGO ===== */

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

.brand-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
}

/* лёгкий премиум эффект */
.brand-text span {
  opacity: 0.7;
}

/* если захочешь разделить Ultra */
.brand-text--light {
  opacity: 0.6;
  font-weight: 500;
}

@media (max-width: 768px) {
  .brand-text {
    font-size: 18px;
  }
}