/* ================================
   COMICAN LAND â€” BASE FOUNDATION
   ================================ */

/* --- FOUC PREVENTION --- */
/*body.archive-comic { visibility:hidden; opacity:0; transition:opacity .28s ease; }*/
/*body.archive-comic.ready { visibility:visible; opacity:1; }*/

:root {
  --comican-navy: #031a3d;
  --comican-white: #ffffff;
  --comican-accent: #0eafff;
  --boxed-radius: 18px;
}

 /* for testing for overflow */
 {
  outline: 1px solid red;
}

#comican-land {
  overflow-x: hidden;
}

/* Root wrapper */
#comican-home {
  background: var(--comican-navy);
  color: var(--comican-white);
  min-height: 100vh;
}

/* Reset common spacing */
#comican-home section {
  padding: 70px 20px;
}

#comican-home section:first-child {
    padding: 0px;
}


/* Boxed sections */
#comican-home .boxed {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--boxed-radius);
  padding: 60px;
}

/* Full width sections */
#comican-home .fullwidth {
  width: 100%;
  padding: 100px 20px;
}

/* Section inner constraint */
.section-inner,
.identity-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Headings */
#comican-home h1,
#comican-home h2,
#comican-home h3 {
  margin-bottom: 16px;
  line-height: 1.2;
  color:white;
}

#comican-home p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Identity section */
.identity-section {
  padding: 100px 20px 60px;
}

#typewriter {
  font-size: clamp(2rem, 4vw, 3rem);
    display: inline-block;
  min-height: 1.2em; /* locks space even when empty */
  line-height: 1.2;
  white-space: nowrap;
}
/*#typewriter::after {*/
/*  content: "Endless Reality";*/
/*  visibility: hidden;*/
/*  pointer-events: none;*/
/*  height: 0;*/
/*}*/
#typewriter::after {
  content: "Endless Reality"; /* Must be your LONGEST string */
  visibility: hidden;
  height: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}


.identity-subtext {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Premium CTA */
.premium-cta img {
  width: 100%;
  display: block;
  border-radius: 0;
}

/* Back to top */
/*#backToTop {*/
/*  position: fixed;*/
/*  bottom: 30px;*/
/*  left: 50%;*/
/*  transform: translateX(-50%);*/
/*  background: var(--comican-accent);*/
/*  color: #000;*/
/*  border: none;*/
/*  width: 52px;*/
/*  height: 52px;*/
/*  border-radius: 50%;*/
/*  cursor: pointer;*/
/*  display: none;*/
/*  z-index: 999;*/
/*}*/

/* ================================
   HERO BANNER CAROUSEL
   ================================ */

.hero-carousel {
  width: 100vw;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero-slider {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}


.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  overflow: hidden;
  height: 100vh;
  background-image: var(--desktop);
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Gradient overlay */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.4) 25%,
    rgba(0, 0, 0, 0.15) 45%,
    rgba(0, 0, 0, 0) 60%
  );
  z-index: 1;
  pointer-events: none;
}

/* Overlay container */
.hero-overlay {
  position: absolute;
  bottom: 7%;
  left: 8%;
  max-width: 520px;
  z-index: 2;

  display: flex;
  flex-direction: column;
}

/* Tag */
.hero-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 2px;
}

/* Title */
.hero-overlay h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 4px 0;
}

/* Paragraph */
.hero-overlay p {
  margin: 0 0 10px 0;
  line-height: 1.4;
  opacity: 0.95;
}

/* CTA */
.hero-cta {
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
  padding: 12px 26px;
  border-radius: 30px;
  background: var(--comican-accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

/* ================================
   HERO DOTS
   ================================ */


.hero-dots {
  position: relative; /* Changed from absolute to sit in the document flow */
  margin-top: 15px;    /* Use margin-top to create space between the banner and dots */
  display: flex;
  justify-content: center; /* Centers the dots horizontally */
  gap: 10px;
  z-index: 3;
  /* Removed: bottom, left, transform */
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dots span.active {
  background: var(--comican-accent);
}

/* ================================
   MOBILE ADJUSTMENTS
   ================================ */

@media (max-width: 768px) {
  .hero-slide {
    background-image: var(--mobile);
    height: 70vh;
  }

  .hero-overlay {
    bottom: 9%;
    left: 6%;
    max-width: 90%;
  }
}

/* ================================
   STREAM CARDS
   ================================ */

/* ===============================
   STREAM CARDS â€” CURE-ALL STYLES
================================= */
.stream-cards {
  width: 100%;
  padding: 3rem 1rem;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stream-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: #0b0b0b;
  color: #ffffff;
  transition: transform .3s ease, box-shadow .3s ease;
}

.stream-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(14,175,255,.25);
}

.stream-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  
}

.stream-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}


.stream-yellow { color: #ffd54f; }
.stream-purple { color: #b388ff; }
.stream-blue   { color: #0eafff; }

.stream-card h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: .3px;
}
/*subtle glow per stream*/
.stream-card.stream-yellow:hover {
  box-shadow: 0 14px 40px rgba(255, 213, 79, 0.25);
}

.stream-card.stream-purple:hover {
  box-shadow: 0 14px 40px rgba(179, 136, 255, 0.25);
}

.stream-card.stream-blue:hover {
  box-shadow: 0 14px 40px rgba(14, 175, 255, 0.25);
}
/*
.stream-card.stream-yellow:hover {
  color: #ffd54f;
}

.stream-card.stream-purple:hover {
  color: #b388ff;
}

.stream-card.stream-blue:hover {
  color: #0eafff;
}

/*==========================
SECTION HEADERS 
=========================*/
/* 1. Header Alignment */
.section-header {
  display: block;          /* Standard block behavior */
  text-align: left;        /* Aligns text to the left */
  
  /* 2. Container Alignment */
  max-width: 1140px;       /* Match your container width */
  margin-left: auto;       /* Centers the 1140px "box" itself */
  margin-right: auto;
  
  /* 3. Spacing & Positioning */
  position: relative;
  padding-left: 25px;      /* Matches the accent bar's offset */
  padding-right: -10;
  margin-top: 20px;
  margin-bottom: 10px;     /* Stays close to content below */
}

/* ===============================
   FEATURED HYBRID GRID
   =============================== */

.featured-hybrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2rem 0;
  max-width: 1140px;
  margin: 2rem auto;
  align-items; center;
}

/* ===============================
   CARD BASE
   =============================== */

.featured-slot {
  background: #000;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}

.featured-slot:hover {
  transform: translateY(-4px);
}

/* ===============================
   IMAGE CONSTRAINT (KEY FIX)
   =============================== */

.featured-thumb {
  width: 100%;
  height: 220px; /* uniform visual height */
  overflow: hidden;
  flex-shrink: 0;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ðŸ”¥ prevents image distortion */
  display: block;
}

/* ===============================
   CONTENT
   =============================== */

.featured-type {
  font-size: 0.7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  padding: .75rem 1rem 0;
}

.featured-title {
  font-size: 1.05rem;
  font-weight: 600;
  padding: .5rem 1rem;
  line-height: 1.3;
}

.featured-excerpt {
  font-size: .9rem;
  padding: 0 1rem 1.25rem;
  opacity: .85;
  margin-top: auto;
}

/* ===============================
   CTA CARD (VISUALLY DISTINCT)
   =============================== */

.featured-slot.featured-cta {
  background: linear-gradient(135deg, #111, #050505);
  border: 1px dashed rgba(255,255,255,.25);
}

.featured-cta-card {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  position:relative;
}
/* ===============================
   CTA BADGE
   =============================== */

.featured-slot.featured-cta::before {
  content: "CTA";
  position: relative;
  top: 12px;
  left: 12px;
  background: #0eafff; /* navy/brand blue */
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
}
 

/* ===============================
   FEATUREED SECTION â€” VERTICAL ACCENT BAR
   =============================== */

#featured-accent h2,
#featured-accent h3 {
  position: relative;
  /* Increase this value to move the text further from the container edge */
  padding-left: 36px; 
}

#featured-accent h2::before,
#featured-accent h3::before {
  content: "";
  position: absolute;
  /* Adjust 'left' to move the bar away from the LHS edge */
  /* Setting this to 18px moves it halfway into the new padding area */
  left: 18px; 
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--comican-accent);
  border-radius: 2px;
}



/* ===============================
   RESPONSIVE BEHAVIOR FEATURED HYBBIRD 
   =============================== */

@media (max-width: 1024px) {
  .featured-hybrid {
    grid-template-columns: repeat(4, 1fr); /* tablets still 4 */
  }
}

@media (max-width: 768px) {
  .featured-hybrid {
    grid-template-columns: repeat(2, 1fr); /* ðŸ“± mobile = 2 */
  }

  .featured-thumb {
    height: 180px;
  }
}

/*==================================
   GRID CSS- HOMEPAGE SPECIFIC, not ARCHIVE
   ================================== */
   
   /* STREAMs GRID */
/*.streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}*/
.comic-grid {
   display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px; 
}

/* STREAMS GRID */
/*.streams-grid {
  display: grid;
  /* 1. Use minmax(0, 1fr) to ensure columns are exactly 1/6th width, even if empty 
  grid-template-columns: repeat(6, 1fr); 
  gap: 20px;
  /* 2. ADDITION: Prevent the grid from stretching items to fill unused space 
  justify-content: start; 
  align-items: start;
}*/

.streams-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); 
  gap: 20px;
  justify-content: start; 
  align-items: stretch;
  height: 100%;
}

/*=================================
MOBILE RESPONSIVE BEHAVIOUR FOR STREAMS
====================================*/
@media (max-width: 1024px) {
  .streams-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Breakpoint: 2 per row is a better option */
@media (max-width: 768px) {
  .streams-grid {
    /* CHANGE: Changed from 3 columns to exactly 2 columns */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; /* Slightly more gap now that there are fewer columns */
  }
}  

/*Streams card instead of comic-card and stream-card*/
.streams-card {
  background: #000;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
    width: 100%;
  max-width: 100%; 
}

/*Cover, no cropping*/
.streams-card .comic-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.streams-card .comic-cover img {
  width: 100%;
  height: 100%;
  /* CHANGE: Switched from 'contain' to 'cover'. 'contain' was likely making them look "gigantic" or leave empty space; 'cover' fills the 2/3 box perfectly */
  object-fit: cover; 
  border-radius: 8px;
  display: block;
}

/*Genre Badges top LHS */
.streams-card .genre-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  z-index: 2;
}

/*View Badges bottom RHS*/
.streams-card .views-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #0eafff;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  z-index: 2;
}
/*.views-badge {*/
/*    width: 14px;*/
/*    height: 14px;*/
/*    fill: #0eafff;*/
    /*vertical-align: middle;*/

/*}*/

/*Metadata*/
.streams-card .comic-title {
  margin-top: 10px;
  font-weight: 700;
  color: #0eafff;
  text-align: center;
  /* ADDITION: Limits title to 2 lines so one long title doesn't break the grid alignment */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.streams-card .comic-publisher {
  font-size: 0.85rem;
  color: #bfcbdc;
  text-align: center;
}

/*Load More*/
.streams-footer {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid #0eafff;
  color: #0eafff;
  text-decoration: none;
}

.load-more-btn:hover {
  background: #0eafff;
  color: #000;
}

