/* styles/blog.css */

/* ===========================
   Blog / Portfolio shared base
   (hero, buttons, badges, detail)
   =========================== */

   :root {
    --bg: #0f0f12;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --stroke: rgba(255, 255, 255, 0.10);
    --stroke-2: rgba(255, 255, 255, 0.16);

    --text: #f9f7ef;
    --muted: rgba(249, 247, 239, 0.78);

    --radius: 16px;
    --radius-sm: 12px;

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.40);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);

    --container: 1100px;
    --container-narrow: 900px;

    --pad-x: 1rem;

    --focus: rgba(216, 255, 0, 0.55); /* jemný neon focus */
  }

  /* Pokud už globálně máš jiné pozadí, nijak ho nelámu.
     Jen sjednotím rytmus a typografii na těchto stránkách. */
  .blog-page {
    color: var(--text);
  }

  /* ===========================
     HERO (portfolio + detail)
     =========================== */

  .portfolio-hero {
    position: relative;
    width: 100%;
    min-height: clamp(360px, 60vh, 680px);
    height: auto;
    background: url("../portfolio/PortfolioBG.webp") no-repeat center / cover;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text);
    overflow: hidden;
  }

  /* overlay – gradient + lehké ztmavení */
  .portfolio-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(90% 80% at 50% 20%, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.60) 60%, rgba(0,0,0,0.78) 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.72));
  }

  /* jemný film grain vibe (bez obrázku) */
  .portfolio-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image:
      radial-gradient(circle at 20% 30%, rgba(255,255,255,0.16), transparent 45%),
      radial-gradient(circle at 80% 10%, rgba(255,255,255,0.10), transparent 40%),
      radial-gradient(circle at 50% 90%, rgba(255,255,255,0.12), transparent 55%);
    pointer-events: none;
  }

  .hero-overlay {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: clamp(16px, 3.5vw, 28px);
    margin-top: 0;
  }

  /* typografie hero */
  .portfolio-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.06;
    text-shadow: 0 12px 40px rgba(0,0,0,0.55);
  }

  .portfolio-hero p {
    margin: 0.85rem auto 0;
    font-size: clamp(1.0rem, 1.6vw, 1.25rem);
    color: #2d2621;
    max-width: 62ch;
    text-shadow: 0 10px 30px rgba(0,0,0,0.45);
  }

  /* ===========================
     Buttons
     =========================== */

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -0.01em;
    line-height: 1;

    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--stroke);

    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    will-change: transform;
  }

  .btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--stroke-2);
    box-shadow: 0 16px 36px rgba(0,0,0,0.32);
  }

  .btn:active {
    transform: translateY(0);
  }

  .btn:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }

  .btn--muted {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(249, 247, 239, 0.88);
  }

  .btn--muted:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
  }

  /* ===========================
     Badges
     =========================== */

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 10px;
    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: -0.01em;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(249, 247, 239, 0.92);
  }

  /* ===========================
     Detail content spacing
     =========================== */

  .post-content {
    max-width: var(--container-narrow) !important;
    margin: 0 auto !important;
    padding: clamp(2.2rem, 4.5vw, 3.2rem) var(--pad-x) !important;
  }

  .post-content .content {
    color: rgba(249, 247, 239, 0.92);
    font-size: 1.05rem;
    line-height: 1.75;
  }

  /* typografie obsahu (safe HTML) */
  .post-content .content h2,
  .post-content .content h3,
  .post-content .content h4 {
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 2.2rem 0 0.9rem;
  }

  .post-content .content h2 { font-size: 1.85rem; font-weight: 850; }
  .post-content .content h3 { font-size: 1.45rem; font-weight: 820; }
  .post-content .content h4 { font-size: 1.18rem; font-weight: 800; }

  .post-content .content p { margin: 0 0 1.05rem; }
  .post-content .content ul,
  .post-content .content ol { margin: 0 0 1.2rem 1.1rem; }
  .post-content .content li { margin: 0.35rem 0; }

  .post-content .content a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(216, 255, 0, 0.55);
    text-underline-offset: 3px;
  }
  .post-content .content a:hover {
    text-decoration-color: rgba(216, 255, 0, 0.9);
  }

  .post-layout {
    display: grid;
    gap: 18px;
    align-items: stretch;
  }

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

  .post-layout--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-layout--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .post-layout--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .post-layout__col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
    height: 100%;
  }

  .post-block--text {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .post-block--valign-top {
    justify-content: flex-start;
  }

  .post-block--valign-middle {
    justify-content: center;
  }

  .post-block--valign-bottom {
    justify-content: flex-end;
  }

  .post-block__content h1,
  .post-block__content h2,
  .post-block__content h3,
  .post-block__content p {
    margin: 0 0 0.9rem;
  }

  .post-block__content > :last-child {
    margin-bottom: 0;
  }

  .post-block__content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
  }

  .post-block__content h2 {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.12;
  }

  .post-block__content h3 {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.18;
  }

  .post-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 0.35rem;
    padding: 0 18px;
    border-radius: 999px;
    background: #ff0068;
    color: #fff !important;
    font-weight: 850;
    text-decoration: none;
  }

  .post-button:hover {
    background: #d80057;
    text-decoration: none;
  }

  @media (max-width: 760px) {
    .post-layout--2,
    .post-layout--3,
    .post-layout--4 {
      grid-template-columns: 1fr !important;
    }
  }

  /* CTA na detailu – přepíšu inline look (bez zásahu do HTML) */
  .post-cta {
    margin-top: 2.6rem !important;
    padding: 1.6rem !important;
    border-radius: var(--radius) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: var(--shadow-soft);
  }

  .post-cta h3 {
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.02em;
  }

  /* Footer nav wrapper */
  .post-footer {
    margin-top: 2.6rem !important;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* ===========================
     Responsive tweaks
     =========================== */

  /* Responsive tweaks → responsive.css */





  /* ===========================
   FIX: Post content text on light background
   Brand dark brown: #2d2621
   =========================== */

.blog-page .post-content,
.blog-page .post-content .content {
  color: #2d2621 !important;
}

.blog-page .post-content .content p,
.blog-page .post-content .content li,
.blog-page .post-content .content blockquote,
.blog-page .post-content .content figcaption {
  color: #2d2621 !important;
}

.blog-page .post-content .content h1,
.blog-page .post-content .content h2,
.blog-page .post-content .content h3,
.blog-page .post-content .content h4 {
  color: #2d2621 !important;
}

.blog-page .post-content .content a {
  color: #2d2621 !important;
  text-decoration-color: #a58b74 !important; /* tvoje hnědá */
}

/* ===========================
   FIX: button text color (brand brown)
   =========================== */

   .blog-page a.btn,
   .blog-page .btn,
   .blog-page a.btn:visited,
   .blog-page a.btn:hover,
   .blog-page a.btn:active,
   .blog-page a.btn:focus {
     color: #2d2621 !important;
     -webkit-text-fill-color: #2d2621 !important;
   }
