/*
Theme Name: Drone Ear Sky
Theme URI: https://droneear.com
Description: Airy Tech / Sky — full-bleed gradient hero, rounded overlay cards, sky-blue palette, Sora + Inter, aviation-inspired spacious design.
Author: Drone Ear
Version: 1.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU GPLv2 or later
Text Domain: dre
*/

/* ============================================================
   TOKENS — Sky palette
   ============================================================ */
:root {
  --sky:       #1098ad;
  --sky-dk:    #0c8599;
  --sky-lt:    #e3f8fc;
  --sky-mid:   #b2ebf2;
  --ink:       #0f1e2e;
  --muted:     #4a607a;
  --line:      #d8eef2;
  --bg:        #f7fcfd;
  --surface:   #ffffff;
  --good:      #2b8a3e;
  --max-prose: 760px;
  --max-wide:  1140px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: 2.4rem; margin: 0 0 .4em; }
h2 { font-size: 1.65rem; margin: 1.8em 0 .55em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin: .3em 0; }

/* ============================================================
   LAYOUT WRAPPERS
   ============================================================ */
.dre-wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 22px;
}
.dre-wrap--prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============================================================
   HEADER — frosted glass, sticky
   ============================================================ */
.dre-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 252, 253, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.dre-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 22px;
  height: 64px;
}
.dre-brand {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.dre-brand span { color: var(--sky); }
.dre-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.dre-nav .menu li { list-style: none; margin: 0; }
.dre-nav .menu a {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.dre-nav .menu a:hover,
.dre-nav .menu .current-menu-item > a,
.dre-nav .menu .current-cat > a,
.dre-nav .menu .current-menu-parent > a,
.dre-nav .menu .current-post-parent > a {
  background: var(--sky-lt);
  color: var(--sky-dk);
  text-decoration: none;
}

/* ============================================================
   HERO — full-bleed sky gradient
   ============================================================ */
.dre-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #c9f0f7 0%, #e8f9fc 28%, #f0fbfd 55%, #ffffff 100%);
  padding: 90px 22px 80px;
  text-align: center;
}
.dre-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(16,152,173,.13) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(16,152,173,.08) 0%, transparent 60%);
  pointer-events: none;
}
/* decorative floating circles — aviation feel */
.dre-hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 60px solid rgba(16,152,173,.06);
  right: -120px;
  top: -120px;
  pointer-events: none;
}
.dre-hero__content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.dre-hero__eyebrow {
  display: inline-block;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  background: rgba(16,152,173,.1);
  border: 1px solid rgba(16,152,173,.2);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.dre-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 .4em;
}
.dre-hero h1 em {
  font-style: normal;
  color: var(--sky);
}
.dre-hero p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 0;
  line-height: 1.65;
}

/* ============================================================
   MAIN AREA
   ============================================================ */
.dre-main {
  padding: 52px 0 64px;
}
.dre-section-label {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 20px;
}

/* ============================================================
   CARDS GRID — overlay title style
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin: 0 0 32px;
}
.card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(16,152,173,.07), 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 10px 36px rgba(16,152,173,.16), 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-3px);
}
.card > a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
/* OVERLAY card: image fills top 220px, title+excerpt over bottom gradient */
.card .thumb {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #b2ebf2 0%, #1098ad 100%) center/cover no-repeat;
  overflow: hidden;
}
.card .thumb.has-img {
  background-size: cover;
  background-position: center;
}
/* gradient overlay for text readability */
.card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(10,30,50,.72) 100%);
  pointer-events: none;
}
/* overlay title — sits on top of image */
.card .thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 14px 16px 16px;
  color: #fff;
}
.card .thumb-title .cat {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sky-mid);
  margin-bottom: 5px;
}
.card .thumb-title h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
/* placeholder text when no image */
.card .thumb > .thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: .3;
  color: #fff;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  z-index: 1;
}
/* below-image excerpt strip */
.card .body {
  padding: 14px 16px 18px;
}
.card .body .ex {
  font-size: .87rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   ARCHIVE / INDEX headings
   ============================================================ */
.dre-archive-head {
  padding: 38px 0 6px;
}
.dre-archive-head h1 {
  font-size: 2rem;
  margin: 0 0 .2em;
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.dre-single {
  padding: 36px 0 60px;
}
.dre-article-hero {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 0 32px;
  max-height: 460px;
  position: relative;
}
.dre-article-hero img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.post-title {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .25em;
  line-height: 1.2;
}
.meta-line {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 1.4em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.meta-line::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--sky);
  border-radius: 2px;
  flex-shrink: 0;
}
.breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 1em;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sky); }

/* ============================================================
   ENTRY CONTENT STYLES
   ============================================================ */
.entry { max-width: var(--max-prose); }
.entry h2 {
  font-size: 1.55rem;
  margin: 2em 0 .55em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--sky-lt);
  position: relative;
}
.entry h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}
.entry h3 {
  font-size: 1.18rem;
  margin: 1.6em 0 .4em;
  color: var(--sky-dk);
}
.entry p { margin: 0 0 1.1em; }
.entry a { color: var(--sky); font-weight: 500; }
.entry a:hover { color: var(--sky-dk); }

/* custom bullets — no default discs */
.entry ul {
  list-style: none;
  padding-left: 1.6em;
}
.entry ul > li {
  position: relative;
  padding-left: .2em;
  margin: .45em 0;
}
.entry ul > li::before {
  content: '';
  position: absolute;
  left: -1.3em;
  top: .65em;
  width: 7px;
  height: 7px;
  background: var(--sky);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16,152,173,.18);
}
.entry ol { padding-left: 1.5em; }
.entry ol > li::marker { color: var(--sky); font-weight: 700; }

/* ============================================================
   AFFILIATE DISCLOSURE BOX
   ============================================================ */
.cmpc-disc {
  font-size: .82rem;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(16,152,173,.06) 0%, rgba(16,152,173,.02) 100%);
  border: 1px solid rgba(16,152,173,.2);
  border-left: 4px solid var(--sky);
  padding: 10px 16px;
  margin: 0 0 1.6em;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cmpc-disc::before {
  content: '✈';
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   CTA — PILL BUTTON (sky-to-teal gradient)
   ============================================================ */
.cta-amz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--sky-dk) 100%);
  color: #fff !important;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(16,152,173,.35);
  transition: box-shadow .2s, transform .15s;
  letter-spacing: .01em;
  margin: 10px 0 18px;
}
.cta-amz::after { content: ' →'; opacity: .8; }
.cta-amz:hover {
  box-shadow: 0 8px 28px rgba(16,152,173,.5);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.cta-amz span { font-weight: 400; opacity: .8; font-size: .85rem; }

/* ============================================================
   TABLES — dre-tablewrap (mobile scroll)
   ============================================================ */
.dre-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(16,152,173,.06);
}
.dre-tablewrap::-webkit-scrollbar { height: 6px; }
.dre-tablewrap::-webkit-scrollbar-thumb { background: var(--sky-mid); border-radius: 6px; }
.entry table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  margin: 0;
  font-size: .94rem;
  font-family: 'Inter', system-ui, sans-serif;
}
.entry th,
.entry td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.entry th {
  background: linear-gradient(90deg, var(--sky-lt), #edf9fc);
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  color: var(--sky-dk);
  white-space: nowrap;
}
.entry tbody tr:nth-child(even) { background: rgba(16,152,173,.03); }
.entry tbody tr:hover { background: rgba(16,152,173,.06); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.dre-related {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 2px solid var(--sky-lt);
}
.dre-related h2 {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 20px;
  border: none;
  padding: 0;
}
.dre-related h2::after { display: none; }

/* ============================================================
   PAGINATION
   ============================================================ */
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0; }
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background .15s, color .15s;
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}

/* ============================================================
   FOOTER
   ============================================================ */
.dre-footer {
  background: linear-gradient(160deg, #e8f9fc 0%, var(--surface) 100%);
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 40px 22px 30px;
}
.dre-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.dre-footer__brand {
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}
.dre-footer__brand span { color: var(--sky); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  margin-bottom: 14px;
}
.foot-links a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.foot-links a:hover { color: var(--sky); text-decoration: none; }
.dre-footer__disc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}

/* ============================================================
   PAGE — static page
   ============================================================ */
.dre-page { padding: 40px 0 60px; }
.dre-page .entry h1 { font-size: 2.1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .dre-hero { padding: 64px 22px 56px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.7; }
  .dre-wrap, .dre-wrap--prose { padding: 0 16px; }
  .dre-header__inner { padding: 0 16px; height: 56px; }
  .dre-brand { font-size: 1.1rem; }
  .dre-nav .menu a { font-size: .82rem; padding: 5px 11px; }
  .dre-hero { padding: 44px 16px 40px; }
  .dre-hero h1 { font-size: 1.8rem; }
  .dre-hero p { font-size: 1rem; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card .thumb { height: 180px; }
  .post-title { font-size: 1.55rem; }
  .dre-article-hero img { height: 220px; }
  .cta-amz { display: block; text-align: center; padding: 14px 20px; }
  .dre-footer { padding: 30px 16px 24px; }
  .foot-links { gap: 6px 14px; }
  /* sticky nav on mobile: horizontal scroll */
  .dre-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
  }
  .dre-nav::-webkit-scrollbar { display: none; }
  .dre-nav .menu { flex-wrap: nowrap; width: max-content; }
  .entry h2 { font-size: 1.3rem; }
  .entry h3 { font-size: 1.08rem; }
  .entry table { font-size: .88rem; }
}
