/* articles.css — spoločné štýly pre všetky single-article pages */

/* základný wrapper */
.component-area .container {
  max-width: 980px;
  margin: 3.5rem auto;
  padding: 0 1rem;
  background: transparent;
}

/* article root */
.article-content, article {
  color: var(--text, #efe6d5);
  line-height: 1.7;
  font-size: 1rem;
  padding: 1.5rem 0;
}

/* page header */
.article-content .page-header {
  margin-bottom: 1.5rem;
  text-align: left;
}
.article-content .page-title {
  font-family: 'Uncial Antiqua', serif;
  font-size: 2.2rem;
  margin: 0 0 .5rem 0;
  letter-spacing: .02em;
}
.article-content .page-lead {
  margin: 0 0 1.5rem 0;
  opacity: .95;
}

/* sections */
.article-content section {
  /*margin-bottom: 1.75rem;*/
  margin-bottom: 2.4rem;
}

/* character list */
.article-content .character-list {
  margin-left: 1.2rem;
  list-style: disc;
}

/* CTA group */
.article-content .cta-group {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.article-content p {
  max-width: 70ch;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.btn {
  padding: .75rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
}

.btn-outline {
  opacity: 0.75;
}

.btn-outline:hover {
  opacity: 1;
}

.btn-primary:hover {
  background-color: #e6c07b;
  color: #111;
}


/* ensure article is above hero overlay if any */
.component-area,
.article-content {
  position: relative;
  z-index: 20;
}

/* Lower hero overlay when component shown (defensive) */
.strip-hero, .strip-overlay, .hero-dust, .hero-clouds {
  z-index: 1;
}

/* small screens adjustments */
@media (max-width: 900px) {
  .article-content .page-title { font-size: 1.6rem; }
  .component-area .container { padding: 0 0.75rem; }
}

/* ===========================================================
   articles.css — unified article styling for all article pages
   Class: .article-saga  (apply on the article header or root)
   =========================================================== */

/* Root wrapper for article header / hero area */
.article-saga {
  position: relative;
  /*padding: 5.5rem 0;
  min-height: 46vh;*/
  color: #efe6d5;
  position: relative;
  padding: 3rem 0;
  min-height: 34vh;
 /* background-image:
    linear-gradient(to right, #0b0c0d 0%, rgba(11,12,13,0) 18%, rgba(11,12,13,0) 82%, #0b0c0d 100%),
    linear-gradient(to bottom, rgba(11,12,13,0.2) 0%, rgba(11,12,13,0.75) 100%),
    url('/templates/dobrodruhovia_EN/images/saga_bg.png');
  background-image:
    url('/templates/dobrodruhovia_EN/images/saga_bg.png');*/
  background-image: var(--saga-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Soft overall dimmer so text is readable on any image */
.article-saga::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2,2,3,0.25); /* adjust opacity as needed */
  z-index: 1;
}

/* Card container that holds title + lead — consistent across articles */
.article-saga .article-card {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  /*backdrop-filter: blur(6px);            
  -webkit-backdrop-filter: blur(6px);
  background: rgba(6,6,8,0.55); */  
  background: rgba(6,6,8,0.45);
  backdrop-filter: blur(3px);
}

/* Title and lead */
.article-saga .page-title {
  font-family: 'Uncial Antiqua', serif;
  color: #e6c07b;  
  /*color: #fff;*/
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0 0 .4rem 0;
  line-height: 1.05;
  text-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.article-saga .page-lead {
  color: #efe6d5;
  opacity: .95;
  margin: 0;
  max-width: 70ch;
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
}

/* fallback if there is NO background image applied */
.article-saga.no-bg {
  background-color: #0b0c0d;
}
.article-saga.no-bg::before { background: transparent; }
.article-saga.no-bg .article-card { background: transparent; box-shadow: none; }

/* Ensure the article content block sits above the site hero layers */
.component-area, .article-content, .article-saga, .article-saga .article-card {
  position: relative;
  z-index: 20;
}

/* Reduce visual conflict with homepage hero overlay if both exist */
.strip-hero, .strip-overlay, .hero-dust, .hero-clouds {
  z-index: 1;
}

/* Small utilities for CTA buttons inside article header */
.article-saga .cta-group {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.article-saga .btn {
  padding: .7rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
}

/* Accessibility / contrast tweak (increase overlay on small screens) */
@media (max-width: 768px) {
  .article-saga {
    padding: 3rem 0;
    min-height: 36vh;
  }
  .article-saga::before {
    background: rgba(2,2,3,0.45);
  }
  .article-saga .article-card {
    padding: 1rem;
    margin: 0 1rem;
    border-radius: 8px;
  }
  .article-saga .page-title { font-size: 1.6rem; }
  .article-saga .page-lead { font-size: .95rem; max-width: 100%; }
}

/* Fine-tune spacing between hero and article content */
.component-area .container {
  max-width: 980px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

/* Article content typography (keeps consistent look across articles) */
.article-content {
  color: #efe6d5;
  line-height: 1.75;
  font-size: 1rem;
  max-width: 820px;
  margin: 0 auto;
  padding-left: clamp(1.2rem, 3vw, 2.5rem);
  padding-right: clamp(1.2rem, 3vw, 2.5rem);
}
.article-content h2 {
  /*margin-top: 1.6rem;
  font-size: 1.25rem;*/
  margin-top: 2rem;
  margin-bottom: .6rem;
  font-size: 1.35rem;
  /*letter-spacing: .02em;*/
  color: #e6c07b;     /* fantasy gold */
  letter-spacing: 0.04em;
  font-weight: 600;
}

.article-content h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #e6c07b;
  margin-top: 6px;
  opacity: 0.7;
}

.article-content ul.character-list {
  margin-left: 1.2rem;
  list-style: disc;
}

/* Prevent accidental overrides — use higher specificity if needed later */
/* Example: .article-saga.article-unique .page-title { ... } */

/* --- Variant 1: textured page background + article card --- */

/* component-area: texture + gradient (gradient on top, texture visible through) */
.component-area {
  /* background layers: first = top layer (gradient), second = texture */
  background-image:
    linear-gradient(180deg, rgba(5,6,7,0) 0%, rgba(5,6,7,0.65) 40%, rgba(5,6,7,1) 100%),
    url('/templates/dobrodruhovia_EN/images/texture.png');
  background-repeat: repeat, repeat;
  background-position: center top, center top;
  background-size: auto, auto;
  background-attachment: scroll;
  color: #efe6d5;
  padding-top: 2.5rem;
  /* fallback color if image missing */
  background-color: #0b0c0d;
  padding-bottom: 4rem;
}

/* article card (už máš) */
.article-saga .article-card {
  background: rgba(8,8,9,0.6);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.55);
}

/* jemný grain / film texture (CSS-only fallback) */
body.dobrodruhovia::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.06;
  z-index: 0;
}

/* uprava content kontajnera - viac vzduchu */
.component-area .container {
  max-width: 860px;
  margin: 2rem auto 3.2rem;
  padding: 1rem;
  z-index: 20;
}

.cta-read {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(10,10,12,0.35),
    rgba(10,10,12,0.55)
  );
  border: 1px solid rgba(255,255,255,0.05);
}

/* jemné rozpustenie okrajov hero obrázka */
.article-saga::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;

  background:
    linear-gradient(to right, #0b0c0d 0%, rgba(11,12,13,0) 12%),
    linear-gradient(to left,  #0b0c0d 0%, rgba(11,12,13,0) 12%),
    linear-gradient(to top,   #0b0c0d 0%, rgba(11,12,13,0) 8%),
    linear-gradient(to bottom,#0b0c0d 0%, rgba(11,12,13,0) 14%);

  background-repeat: no-repeat;
  background-size:
    15% 100%,
    15% 100%,
    100% 15%,
    100% 15%;

  background-position:
    left top,
    right top,
    center bottom,
    center top;
}

.article-saga .article-card {
  margin-left: clamp(1rem, 3vw, 3rem);
}