/* ═══════════════════════════════════════════════
   Comic Chapters v3.0 — War of Sol Design
   Yaseen | Massive Designs
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&family=Jost:wght@300;400;500&display=swap');

:root {
    --cc-bg:       #0A0A0F;
    --cc-bg2:      #0F0F1A;
    --cc-accent:   #4A90D9;
    --cc-gold:     #F4C430;
    --cc-white:    #FFFFFF;
    --cc-gray:     rgba(255,255,255,0.55);
    --cc-muted:    rgba(255,255,255,0.35);
    --cc-border:   rgba(255,255,255,0.07);
    --cc-ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
.cc-listing *, .cc-inner *,
.cc-breadcrumb *, .cc-page-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Breadcrumb ── */
.cc-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 0;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}
.cc-breadcrumb a {
    color: var(--cc-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.cc-breadcrumb a:hover { color: var(--cc-white); }
.cc-bc-sep {
    color: var(--cc-muted);
    font-size: 0.7rem;
}
.cc-breadcrumb > span:last-child {
    color: var(--cc-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}

/* ── Page header ── */
.cc-page-header {
    padding: 16px 0 0;
}
.cc-page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--cc-white);
    letter-spacing: 0.03em;
    line-height: 1;
}

/* ═══════════════════════════════════════════
   LISTING (Books / Series / Chapters)
═══════════════════════════════════════════ */
.cc-listing {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Each row ── */
.cc-row {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 480px;
    padding: 60px 0;
    border-bottom: 1px solid var(--cc-border);
    align-items: center;
}
.cc-row:last-child { border-bottom: none; }

/* Flip for right rows */
.cc-row--right { grid-template-columns: 55% 45%; }
.cc-row--right .cc-col--img     { order: 2; }
.cc-row--right .cc-col--content { order: 1; }

/* ── Image column ── */
.cc-col--img { position: relative; }

.cc-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
}
.cc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.8s var(--cc-ease);
}
.cc-row:hover .cc-img-wrap img { transform: scale(1.04); }

.cc-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a2e;
    border-radius: 10px;
}

/* Coming soon badge */
.cc-cs-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--cc-gold);
    color: #000;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
    z-index: 2;
}

/* Greyscale for coming soon */
.cc-row--coming-soon .cc-img-wrap img {
    filter: grayscale(100%) brightness(0.55);
}

/* ── Content column ── */
.cc-col--content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.cc-content-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 480px;
}

/* Right row content — push to right side */
.cc-row--right .cc-col--content {
    padding-left: 40px;
    display: flex;
    align-items: flex-start !important;
}
.cc-row--left .cc-col--content {
    padding-left: 20px;
}

/* Label: BOOK 01 —— */
.cc-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cc-muted);
}
.cc-label-line {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--cc-muted);
    flex-shrink: 0;
}

/* Title */
.cc-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: 0.02em;
    color: var(--cc-white);
}

/* Description */
.cc-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--cc-gray);
    max-width: 420px;
}

/* Button — pill outline */
.cc-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cc-white);
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    margin-top: 8px;
}
.cc-btn:hover {
    background: var(--cc-accent);
    border-color: var(--cc-accent);
    color: #fff;
}

/* Locked button */
.cc-btn--locked {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 12px 28px;
    border: 1.5px solid;
    margin-top: 8px;
}
.cc-btn--locked:hover { background: rgba(255,255,255,0.08); }

/* ═══════════════════════════════════════════
   INNER PAGE (Chapter rows)
═══════════════════════════════════════════ */
.cc-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 80px;
    display: flex;
    flex-direction: column;
}

.cc-inner-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    border-bottom: 1px solid var(--cc-border);
    overflow: hidden;
    position: relative;
}
.cc-inner-row:last-child { border-bottom: none; }

.cc-inner-col--img { position:relative; overflow:hidden; }

.cc-inner-img-wrap {
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    position: relative;
}
.cc-inner-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.cc-img-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.cc-inner-col--content {
    display: flex;
    align-items: center;
    padding: 60px 64px;
    position: relative;
}

.cc-inner-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.cc-row-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: -20px;
    right: 0;
    pointer-events: none;
    user-select: none;
}

.cc-inner-content h1, .cc-inner-content h2, .cc-inner-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--cc-white);
    line-height: 1.1;
}
.cc-inner-content h2 { font-size: clamp(1.8rem,3vw,2.8rem); }
.cc-inner-content h3 { font-size: clamp(1.4rem,2.5vw,2.2rem); }

.cc-inner-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(255,255,255,0.7);
}
.cc-inner-content strong { color:var(--cc-white); font-weight:600; }

/* ═══════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .cc-row {
        grid-template-columns: 1fr !important;
        min-height: auto;
        gap: 24px;
        padding: 40px 0;
    }
    .cc-row--right .cc-col--img     { order: 1; }
    .cc-row--right .cc-col--content { order: 2; }
    .cc-row--left .cc-col--content,
    .cc-row--right .cc-col--content { padding-left: 0; }
    .cc-content-inner { max-width: 100%; }

    .cc-inner-row { grid-template-columns: 1fr; min-height:auto; }
    .cc-inner-row--right .cc-inner-col--img     { order:1; }
    .cc-inner-row--right .cc-inner-col--content { order:2; }
    .cc-inner-img-wrap { min-height:260px; }
    .cc-inner-col--content { padding:36px 24px; }
    .cc-row-num { font-size:3rem; }

    .cc-page-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .cc-listing { padding: 16px 0 40px; }
    .cc-row { padding: 32px 0; gap: 20px; }
}

/* ═══════════════════════════════════════════
   BOOKS GRID — [books_grid]
═══════════════════════════════════════════ */

.cc-grid {
    display: grid;
    grid-template-columns: repeat(var(--cc-cols, 3), 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

/* ── Card ── */
.cc-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0F0F1A;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.cc-card:hover { transform: translateY(-6px); }

/* ── Image ── */
.cc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.cc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s ease;
}
.cc-card:hover .cc-card-img img { transform: scale(1.06); }

.cc-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
}

/* Gradient overlay — bottom dark */
.cc-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,0.5) 60%,
        rgba(0,0,0,0.92) 100%
    );
    pointer-events: none;
}

/* Coming soon badge */
.cc-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #F4C430;
    color: #000;
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 2;
}

/* Coming soon card */
.cc-card--locked .cc-card-img img {
    filter: grayscale(100%) brightness(0.5);
}

/* ── Content (overlaid on image bottom) ── */
.cc-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.cc-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: #fff;
    margin: 0;
}

.cc-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* Card button */
.cc-card-btn {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #4A90D9;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s ease;
}
.cc-card-btn:hover { color: #fff; }

.cc-card-btn--locked {
    color: rgba(255,255,255,0.25);
    cursor: not-allowed;
    font-family: 'Jost', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .cc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .cc-grid { grid-template-columns: 1fr; }
}
