body {
    position: relative;
    background: linear-gradient(to bottom,
        #6b6b6b 0%,
        #515151 40%,
        #3a3a3a 80%
    );
}

/* Bible overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 120%;
    height: 100%;
    background-image: url('/img/verses.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: -1;
}

/* ==================== ORIGINAL CONTAINERS ==================== */
#container2,
#container3,
#container4 {
    margin: 0 auto;
    width: 100% !important;
    display: grid;
    justify-content: center;
    background: #000000;
    overflow: hidden;
    gap: 8px;
}

#container2 {
    grid-template-columns: 50% 50%;
}

#container3 {
    grid-template-columns: 33% 33% 33%;
}

#container4 {
    grid-template-columns: 100%;
}

#container2 img,
#container3 img,
#container4 img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

#container2 img.span-two,
#container3 img.span-two,
#container4 img.span-two {
    grid-column: span 2;
}

/* ==================== COMIC STAGE ==================== */
.comic-stage-wrapper {
    margin: 10px auto;
    max-width: 75%;
    text-align: center;
}

.comic-stage {
    background: #000000;
    border-radius: 18px;
    padding: 10px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 5px 15px rgba(255, 255, 255, 0.25),
        0 0 20px rgba(255, 255, 255, 0.1);
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .comic-stage-wrapper {
        max-width: 98%;
        padding: 0 5px;
    }

    #container2,
    #container3,
    #container4 {
        grid-template-columns: 100% !important;
        gap: 12px;
    }

    #container2 img.span-two,
    #container3 img.span-two,
    #container4 img.span-two {
        grid-column: span 1 !important;
    }
}

/* ==================== NAVIGATION BUTTONS ==================== */
.nav {
    margin: 8px;
    width: clamp(38px, 6vw, 54px);
    height: clamp(38px, 6vw, 54px);
    border-radius: 50%;
    background-color: #000;
    background-size: 68%;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.navFirst { background-image: url("/img/FIRST.png"); }
.navPrev  { background-image: url("/img/PREV.png"); }
.navNext  { background-image: url("/img/NEXT.png"); }
.navLast  { background-image: url("/img/LAST.png"); }

.nav:hover {
    background-color: #555;
    transform: scale(1.08);
}

/* ==================== NAVBAR (FIXED FOR MOBILE) ==================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000 !important;
    margin-top: 0 !important;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Logo sizing */
.navbar-brand img {
    height: 48px;
    width: auto;
    max-width: 70%;
    filter: brightness(1.1);
}

/* Hamburger button must NOT wrap */
.navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==================== LINKS ==================== */
.nav-link {
    transition: color 0.2s;
}

.nav-link:hover {
    color: #a0c4ff !important;
}

/* ==================== GENERAL LINKS ==================== */
a {
    color: #fff;
    text-decoration: none;
}

span a {
    color: #000;
    text-decoration: none;
}

/* ==================== SHARE BAR ==================== */
.parent-container {
    text-align: center;
    margin: 25px 0;
}

.share-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    color: #ddd;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
}

.share-label {
    margin-right: 8px;
    color: #aaa;
    letter-spacing: 1px;
    font-size: 14px;
}

.share-bar a {
    color: #ddd;
    font-size: 26px;
    transition: all 0.2s ease;
    padding: 6px 8px;
    border-radius: 50%;
}

.share-bar a:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.15);
    background: rgba(255,255,255,0.1);
}

/* Brand colors */
.share-bar a[href*="facebook"]:hover { color: #1877f2; }
.share-bar a[href*="twitter"]:hover { color: #1da1f2; }
.share-bar a[href*="reddit"]:hover { color: #ff4500; }
.share-bar a[href*="linkedin"]:hover { color: #0a66c2; }
.share-bar a[href*="pinterest"]:hover { color: #e60023; }
.share-bar a[href*="mailto"]:hover { color: #ff9900; }

/* ==================== MOBILE SHARE BEHAVIOR ==================== */
@media (max-width: 768px) {
    
    .navbar {
        flex-wrap: wrap;
    }

    .navbar-brand img {
        height: 36px; /* shrink logo on mobile */
        flex: 0 1;
    }

    .share-bar {
        display: none;
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 10px;
        border-radius: 16px;
        padding: 12px 0; /* IMPORTANT: removes left/right bias */
        box-sizing: border-box;
        order: 2;
    }

    .share-bar.open {
        display: flex;
    }
}

/* ==================== COMMENTS ==================== */
.comments-section {
    background: linear-gradient(to bottom, #2a2a2a, #1f1f1f);
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    padding: 25px;
    width: 80%;
    margin: 25px auto;
    font-family: Verdana, Geneva, sans-serif;
}

.comments-section h3 {
    color: #ddd;
    border-bottom: 2px solid #444;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.comment {
    background: #252525;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-header img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #555;
    flex-shrink: 0;
    object-fit: cover;
}

.comment strong {
    color: #a0c4ff;
    font-size: 1.1em;
}

.comment .timestamp {
    color: #888;
    font-size: 0.9em;
}

.comment-body {
    margin-left: 52px;
    line-height: 1.55;
    color: #e0e0e0;
}

.comment:hover {
    background: #2f2f2f;
    border-color: #555;
    transform: translateY(-2px);
}

/* ==================== COMMENT QUOTES ==================== */
.comment-body blockquote {
    border-left: 4px solid #888;
    margin: 12px 0 12px 10px;
    padding-left: 18px;
    color: #bbb;
    background: #1f1f1f;
    border-radius: 4px;
    font-style: italic;
}

.comment-body blockquote p {
    margin: 8px 0;
}

/* Nested quotes (replies to replies) */
.comment-body blockquote blockquote {
    border-left-color: #666;
    background: #2a2a2a;
}



/* ==================== SMALL SCREENS ==================== */
@media (max-width: 600px) {
    .comment-body {
        margin-left: 0;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .nav {
        width: 44px;
        height: 44px;
    }
}

.stage-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0 20px 0;
    flex-wrap: wrap;
    align-items: center;
}