/*
Theme Name: Castor Blog Astra
Theme URI: https://blog.castorcoffee.com.tr
Author: Castor Coffee
Description: Astra child theme for the Castor Coffee blog.
Template: astra
Version: 1.0.0
Text Domain: castor-blog-astra
*/

:root {
  --cb-ink: #140f0b;
  --cb-espresso: #241711;
  --cb-roast: #4a2f21;
  --cb-copper: #b8864c;
  --cb-cream: #f8f1e7;
  --cb-muted: #bcae9d;
  --cb-sage: #74816d;
  --cb-line: rgba(248, 241, 231, 0.14);
  --cb-shadow: 0 24px 80px rgba(9, 6, 4, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.castor-blog-theme {
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(184, 134, 76, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(116, 129, 109, 0.16), transparent 28rem),
    linear-gradient(135deg, #0c0a09 0%, #1b120d 54%, #0e0b09 100%);
  color: var(--cb-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body.castor-blog-theme a {
  color: inherit;
}

.cb-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.cb-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--cb-line);
  background: rgba(12, 10, 9, 0.86);
  backdrop-filter: blur(18px);
}

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

.cb-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.cb-brand strong {
  color: #fffaf0;
  font-size: clamp(1.32rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cb-brand span {
  margin-top: 7px;
  color: var(--cb-copper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cb-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--cb-muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cb-nav a:hover,
.cb-nav a[aria-current="page"] {
  border-color: rgba(184, 134, 76, 0.42);
  background: rgba(184, 134, 76, 0.12);
  color: var(--cb-cream);
}

.cb-main {
  overflow: hidden;
}

.cb-hero {
  padding: clamp(48px, 8vw, 96px) 0 42px;
}

.cb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.cb-kicker,
.cb-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(184, 134, 76, 0.35);
  border-radius: 999px;
  background: rgba(184, 134, 76, 0.12);
  color: #f4cf9a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cb-kicker {
  margin-bottom: 20px;
  padding: 8px 12px;
}

.cb-pill {
  padding: 7px 11px;
}

.cb-hero h1,
.cb-page-title {
  max-width: 760px;
  margin: 0;
  color: #fffaf1;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.95;
  font-weight: 850;
}

.cb-hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--cb-muted);
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
}

.cb-hero-actions,
.cb-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(184, 134, 76, 0.48);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(184, 134, 76, 0.16);
  color: var(--cb-cream);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cb-button:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 241, 231, 0.42);
  background: rgba(184, 134, 76, 0.25);
}

.cb-button.is-quiet {
  border-color: var(--cb-line);
  background: rgba(248, 241, 231, 0.07);
  color: var(--cb-muted);
}

.cb-feature {
  display: block;
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--cb-line);
  border-radius: 30px;
  background: #21150f;
  box-shadow: var(--cb-shadow);
  text-decoration: none;
}

.cb-feature img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.36s ease, filter 0.36s ease;
}

.cb-feature:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.cb-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(12, 10, 9, 0.9) 100%);
}

.cb-feature-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.cb-feature-card h2 {
  margin: 12px 0 8px;
  color: #fffaf1;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.cb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(248, 241, 231, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.cb-topic-strip {
  padding: 12px 0 42px;
}

.cb-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cb-topic {
  min-height: 136px;
  border: 1px solid var(--cb-line);
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(248, 241, 231, 0.11), rgba(248, 241, 231, 0.04)),
    rgba(20, 15, 11, 0.62);
}

.cb-topic span {
  color: var(--cb-copper);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cb-topic strong {
  display: block;
  margin-top: 12px;
  color: #fffaf1;
  font-size: 1.2rem;
  line-height: 1.2;
}

.cb-section {
  padding: 42px 0 80px;
}

.cb-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.cb-section-head h2 {
  margin: 0;
  color: #fffaf1;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.cb-section-head p {
  max-width: 470px;
  margin: 0;
  color: var(--cb-muted);
}

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

.cb-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--cb-line);
  border-radius: 24px;
  background: rgba(248, 241, 231, 0.07);
  box-shadow: 0 20px 60px rgba(9, 6, 4, 0.18);
}

.cb-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #241711;
}

.cb-card-media img,
.cb-single-cover img,
.cb-archive-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cb-card:hover .cb-card-media img {
  transform: scale(1.04);
}

.cb-card-body {
  padding: 20px;
}

.cb-card h3 {
  margin: 12px 0 10px;
  color: #fffaf1;
  font-size: 1.32rem;
  line-height: 1.18;
}

.cb-card h3 a {
  text-decoration: none;
}

.cb-card h3 a:hover {
  color: #f4cf9a;
}

.cb-card p {
  margin: 0;
  color: var(--cb-muted);
}

.cb-link-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 84px;
}

.cb-link-card {
  border: 1px solid var(--cb-line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(20, 15, 11, 0.62);
  text-decoration: none;
}

.cb-link-card span {
  display: block;
  color: var(--cb-copper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cb-link-card strong {
  display: block;
  margin-top: 8px;
  color: #fffaf1;
  font-size: 1.06rem;
}

.cb-link-card:hover {
  border-color: rgba(184, 134, 76, 0.55);
  background: rgba(184, 134, 76, 0.12);
}

.cb-page-hero {
  padding: clamp(48px, 7vw, 92px) 0 26px;
}

.cb-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 80px;
}

.cb-single {
  padding: clamp(48px, 7vw, 92px) 0 90px;
}

.cb-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.cb-single-cover {
  position: sticky;
  top: 108px;
  overflow: hidden;
  border: 1px solid var(--cb-line);
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  background: #241711;
  box-shadow: var(--cb-shadow);
}

.cb-single-title {
  margin: 16px 0;
  color: #fffaf1;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
}

.cb-content {
  margin-top: 34px;
  color: #eee1d0;
  font-size: 1.08rem;
}

.cb-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.cb-content h2,
.cb-content h3 {
  color: #fffaf1;
  line-height: 1.14;
}

.cb-content a {
  color: #f4cf9a;
}

.cb-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.cb-no-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(184, 134, 76, 0.22), rgba(116, 129, 109, 0.16)),
    #241711;
  color: rgba(248, 241, 231, 0.74);
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cb-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 74px;
}

.cb-pagination .page-numbers {
  min-width: 42px;
  border: 1px solid var(--cb-line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--cb-muted);
  text-align: center;
  text-decoration: none;
}

.cb-pagination .current,
.cb-pagination a:hover {
  border-color: rgba(184, 134, 76, 0.55);
  background: rgba(184, 134, 76, 0.15);
  color: var(--cb-cream);
}

.cb-footer {
  border-top: 1px solid var(--cb-line);
  padding: 34px 0;
  background: rgba(9, 6, 4, 0.34);
}

.cb-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cb-footer p {
  margin: 0;
  color: var(--cb-muted);
}

.cb-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cb-footer-links a {
  color: var(--cb-cream);
  font-weight: 750;
  text-decoration: none;
}

.cb-footer-links a:hover {
  color: #f4cf9a;
}

@media (max-width: 900px) {
  .cb-header-inner,
  .cb-section-head,
  .cb-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cb-nav {
    justify-content: flex-start;
  }

  .cb-hero-grid,
  .cb-single-layout {
    grid-template-columns: 1fr;
  }

  .cb-feature,
  .cb-feature img {
    min-height: 360px;
  }

  .cb-topic-grid,
  .cb-post-grid,
  .cb-link-row,
  .cb-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-single-cover {
    position: relative;
    top: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  .cb-shell {
    width: min(100% - 24px, 1180px);
  }

  .cb-site-header {
    position: relative;
  }

  .cb-nav a {
    padding: 9px 11px;
    font-size: 0.84rem;
  }

  .cb-hero {
    padding-top: 34px;
  }

  .cb-topic-grid,
  .cb-post-grid,
  .cb-link-row,
  .cb-archive-grid {
    grid-template-columns: 1fr;
  }

  .cb-feature,
  .cb-feature img {
    min-height: 320px;
  }

  .cb-feature-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
