/*
Theme Name: Days2Go Blog
Theme URI: https://days2go.app/blog
Author: Days2Go
Description: Lightweight custom WordPress theme for the Days2Go blog, designed to match the Days2Go marketing site.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: days2go-blog
*/

:root {
  --bg: #05070b;
  --bg-soft: #0a0d14;
  --panel: #0d111a;
  --panel-2: #111722;
  --line: rgba(255,255,255,.09);
  --text: #f4f6fb;
  --muted: #aeb8ca;
  --blue: #3f8fff;
  --cyan: #25b8ff;
  --max: 1240px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,7,11,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.04em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.brand-mark:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: -2px;
  top: 1px;
  border-radius: 50%;
  background: var(--cyan);
}
.brand-mark span { transform: translateY(-1px); }

.primary-nav { display: flex; align-items: center; gap: 38px; }
.primary-nav a {
  color: #d6dbe5;
  font-weight: 600;
  font-size: 15px;
  transition: color .2s ease;
}
.primary-nav a:hover { color: #fff; }
.app-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff !important;
  padding: 12px 25px;
  border-radius: 14px;
  font-weight: 700 !important;
  box-shadow: 0 8px 30px rgba(63,143,255,.18);
}
.app-button:hover { background: #5a9dff; }

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 80px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 28%, rgba(39,139,255,.12), transparent 30%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 70px 70px, 70px 70px, auto;
}
.hero-inner { width: min(980px, calc(100% - 48px)); margin: auto; text-align: center; }
.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 800;
  font-size: 12px;
}
.blog-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(52px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
}
.blog-hero p {
  max-width: 690px;
  margin: auto;
  color: #b6c0d1;
  font-size: 20px;
}

.blog-main {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  padding: 70px 0 100px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -.035em;
}
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.category-links a,
.post-category {
  color: #9fdcff;
  border: 1px solid rgba(37,184,255,.25);
  background: rgba(37,184,255,.06);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.featured {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1018, #080b11);
  margin-bottom: 65px;
}
.featured-media {
  min-height: 380px;
  background:
    radial-gradient(circle at 45% 45%, rgba(63,143,255,.3), transparent 24%),
    radial-gradient(circle at 75% 20%, rgba(37,184,255,.15), transparent 30%),
    #080b11;
  display: grid;
  place-items: center;
  padding: 45px;
}
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.countdown-art {
  width: min(310px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid rgba(63,143,255,.8);
  box-shadow: 0 0 80px rgba(37,184,255,.14);
  display: grid;
  place-items: center;
  text-align: center;
}
.countdown-art strong { display:block; font-size: 78px; line-height: 1; }
.countdown-art span { color: var(--cyan); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

.featured-copy { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.featured-copy h2 {
  margin: 18px 0 15px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.featured-copy p { color: var(--muted); font-size: 17px; }
.read-more { color: #fff; font-weight: 750; margin-top: 12px; }
.read-more:after { content: "  →"; color: var(--cyan); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63,143,255,.35);
  background: #101620;
}
.post-thumb {
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 50% 45%, rgba(63,143,255,.22), transparent 30%),
    #0a0e15;
  overflow: hidden;
}
.post-thumb img { width:100%; height:100%; object-fit:cover; }
.post-body { padding: 24px 25px 28px; }
.post-body h3 {
  margin: 13px 0 10px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.post-body p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.post-date { color: #7f8b9e; font-size: 12px; }

.single-wrap {
  width: min(850px, calc(100% - 48px));
  margin: auto;
  padding: 90px 0 110px;
}
.single-category { margin-bottom: 18px; }
.single-wrap h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -.055em;
  margin: 0 0 22px;
}
.single-meta { color: #8995a8; font-size: 14px; margin-bottom: 45px; }
.entry-content { font-size: 18px; color: #d6dce7; }
.entry-content h2 { font-size: 34px; line-height: 1.15; margin: 50px 0 18px; color: #fff; }
.entry-content h3 { font-size: 25px; margin-top: 38px; color: #fff; }
.entry-content a { color: #67b7ff; text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  margin: 35px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--blue);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
}
.entry-content ul, .entry-content ol { padding-left: 25px; }
.entry-content img { border-radius: 16px; margin: 30px 0; }

.cta {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 90px;
  padding: 55px;
  border: 1px solid rgba(63,143,255,.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(63,143,255,.18), transparent 35%),
    #0a0f17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -.04em; }
.cta p { margin: 0; color: var(--muted); }
.cta .app-button { flex-shrink: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 65px 0 35px;
  background: #070910;
}
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
}
.footer-brand p { max-width: 390px; color: var(--muted); }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #778398; margin: 0 0 17px; }
.footer-col a { display: block; color: #c4cbd7; margin: 9px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  width: min(var(--max), calc(100% - 48px));
  margin: 55px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #717c8f;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.pagination { margin-top: 45px; display:flex; gap:10px; }
.pagination a, .pagination span {
  padding: 9px 14px; border:1px solid var(--line); border-radius:10px;
}
.pagination .current { background: var(--blue); border-color: var(--blue); }

@media (max-width: 900px) {
  .primary-nav { gap: 18px; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 300px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .header-inner { width: min(100% - 30px, var(--max)); }
  .primary-nav { display: none; }
  .blog-hero { padding: 80px 0 65px; }
  .hero-inner, .blog-main, .single-wrap, .cta { width: min(100% - 30px, var(--max)); }
  .blog-hero h1 { font-size: 50px; }
  .blog-hero p { font-size: 17px; }
  .posts-grid { grid-template-columns: 1fr; }
  .featured-copy { padding: 30px; }
  .featured-media { padding: 30px; min-height: 250px; }
  .cta { padding: 32px 25px; display: block; }
  .cta .app-button { margin-top: 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { display:block; }
}
