/*
Theme Name: WhalePod Global Blog
Author: Endian
Description: Global WhalePod blog theme matching the landing page dark glass design.
Version: 2.0.0
*/

:root {
  --brand-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --bg: #0b0a1a;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.brand-grad-bg {
  background: var(--brand-grad);
}

.brand-grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.22), transparent 34rem),
    radial-gradient(circle at 95% 18%, rgba(99, 102, 241, 0.28), transparent 32rem),
    radial-gradient(circle at 45% 88%, rgba(168, 85, 247, 0.22), transparent 30rem),
    var(--bg);
  pointer-events: none;
  z-index: -3;
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.36;
  pointer-events: none;
  z-index: -2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 10, 26, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner,
.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  flex-shrink: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.nav-links a:hover,
.footer-links a:hover {
  color: #fff;
}

.nav-cta,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button-primary {
  min-height: 48px;
  padding: 0 22px;
  background: var(--brand-grad);
  border: 0;
  box-shadow: 0 18px 38px rgba(99, 102, 241, 0.28);
}

.nav-cta:hover,
.button-primary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
}

.button-primary:hover {
  background: var(--brand-grad);
  box-shadow: 0 22px 46px rgba(99, 102, 241, 0.38);
}

.hero {
  padding: 96px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 12px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.hero h1 {
  max-width: 850px;
  margin: 24px 0 18px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 0 84px;
}

.post-card,
.article-panel,
.cta-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  overflow: hidden;
}

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.post-cover {
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-cover img {
  transform: scale(1.04);
}

.post-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(236, 72, 153, 0.2));
  color: rgba(255, 255, 255, 0.42);
  font-weight: 700;
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 12px;
}

.category-pill {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}

.post-card h2 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.read-link {
  margin-top: auto;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  padding: 0 0 84px;
}

.pagination .nav-links {
  gap: 10px;
}

.page-numbers {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

.page-numbers.current {
  color: #fff;
  border-color: transparent;
  background: var(--brand-grad);
}

.article-wrap {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 90px;
}

.article-header {
  text-align: center;
  margin-bottom: 34px;
}

.article-header h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.07;
  letter-spacing: 0;
}

.article-date {
  color: var(--faint);
  font-size: 14px;
}

.article-cover {
  margin: 0 0 28px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-cover img {
  width: 100%;
  display: block;
}

.article-panel {
  padding: clamp(24px, 5vw, 52px);
}

.entry-content {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.85;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #fff;
  line-height: 1.25;
}

.entry-content h2 {
  margin: 2.4em 0 0.7em;
  font-size: 30px;
}

.entry-content h3 {
  margin: 2em 0 0.65em;
  font-size: 23px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.35em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

.entry-content li {
  margin-bottom: 0.45em;
}

.entry-content a {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content strong,
.entry-content b {
  color: #fff;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid #a855f7;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
}

.entry-content img {
  display: block;
  margin: 2em auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.entry-content .wp-block-image:first-of-type {
  display: none;
}

.cta-panel {
  margin-top: 32px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-copy {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 13px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 26px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.copyright {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 860px) {
  .header-inner,
  .wrap,
  .article-wrap {
    width: min(100% - 32px, 1180px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 74px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
