/* =========================================
   INNER PAGES CSS
   Styles for ytthumbnail.html & socialmedia.html
   ========================================= */

/* ==============================
   YT PAGE HERO (two-column)
============================== */
.yt-hero {
    background: #141414;
    padding: 120px 0 72px;
    position: relative;
    overflow: hidden;
}

.yt-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(46, 125, 90, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

/* Two-column row */
.yt-hero-row {
    display: flex;
    align-items: center;
    gap: 56px;
    position: relative;
    z-index: 1;
}

/* Left: heading */
.yt-hero-text {
    flex: 1;
    max-width: 440px;
}

.yt-hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 20px;
}

/* "Guesswork" in green */
.yt-hero-accent {
    color: #2e7d5a;
}

.yt-hero-text p {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.7;
}

/* Right: collage image */
.yt-hero-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    background: #1e1e1e;
}

.yt-hero-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

@media (max-width: 760px) {
    .yt-hero-row {
        flex-direction: column;
        gap: 32px;
    }

    .yt-hero-text {
        max-width: 100%;
        text-align: center;
    }

    .yt-hero {
        padding: 110px 20px 56px;
    }
}

/* ==============================
   SPLIT SECTION (image + text alternating)
============================== */
.split-section {
    padding: 64px 32px;
}

.split-row {
    display: flex;
    align-items: center;
    gap: 56px;
}

/* Reversed row: text left, image right */
.split-row.reverse {
    flex-direction: row-reverse;
}

.split-img {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #1e1e1e;
}

.split-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    transition: transform 0.4s ease;
}

.split-img:hover img {
    transform: scale(1.02);
}

/* ==============================
   BEFORE / AFTER COMPARISON SLIDER
============================== */
.ba-comparison-slider {
    position: relative;
    width: 100%;
    flex: 1;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #1e1e1e;
    user-select: none;
}

.ba-comparison-slider.portrait {
    aspect-ratio: 4 / 5;
    max-width: 450px;
    margin: 0 auto;
}

.ba-image-before,
.ba-image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-image-before img,
.ba-image-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Simulate "Before" with raw/flat look */

/* The "After" image is clipped by the slider handle */
.ba-image-after {
    width: 100%;
    z-index: 2;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
}

.ba-slider-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #6d5dfc;
    /* Purple divider */
    z-index: 4;
    pointer-events: none;
    transform: translateX(-50%);
}

/* The visual handle button with arrows - Purple Style */
.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: #6d5dfc;
    /* Matching purple bg */
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(109, 93, 252, 0.4);
    color: white;
}

.ba-slider-button::before,
.ba-slider-button::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.ba-slider-button::before {
    border-right: 7px solid white;
}

.ba-slider-button::after {
    border-left: 7px solid white;
}

/* The invisible but functional range input */
.ba-slider-input {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: col-resize;
}

.split-text {
    flex: 1;
}

.split-text h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.split-text p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.8;
    margin-bottom: 14px;
}

.result-text {
    color: #aaa !important;
}

.result-text strong {
    color: #fff;
}

/* High-CTR bullet list */
.formula-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formula-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
}

.formula-list li strong {
    color: #fff;
}

.formula-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==============================
   PILL BANNER
============================== */
.pill-banner-section {
    padding: 8px 32px 8px;
}

.pill-banner {
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    padding: 20px 40px;
    letter-spacing: -0.01em;
}

/* ==============================
   FEATURED SECTION
============================== */
.featured-section {
    padding: 64px 32px 80px;
}

/* Centered header box — dark bg like original */
.featured-header {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
    padding: 36px 40px;
    margin-bottom: 32px;
}

.featured-header h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.featured-header p {
    font-size: 0.9rem;
    color: #888;
}

/* 3-column grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Social 3-col grid (square aspect) */
.social-featured-grid {
    grid-template-columns: repeat(3, 1fr);
}

.featured-item {
    border-radius: 10px;
    overflow: hidden;
    background: #1e1e1e;
    aspect-ratio: 16 / 9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-item.square {
    aspect-ratio: 1 / 1;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.featured-item:hover img {
    transform: scale(1.04);
}

/* ==============================
   INNER CTA SECTION
============================== */
.inner-cta-section {
    position: relative;
    background: #111;
    padding: 96px 32px;
    text-align: center;
    overflow: hidden;
}

/* Reuse .cta-dots from main style.css */

.inner-cta-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
}

.inner-cta-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.inner-cta-content p {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* btn-cta from style.css is already green — reused */

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 860px) {

    .split-row,
    .split-row.reverse {
        flex-direction: column;
        gap: 28px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pill-banner {
        font-size: 0.95rem;
        padding: 16px 24px;
    }
}

@media (max-width: 540px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .inner-hero {
        padding: 110px 20px 52px;
    }

    .split-section,
    .featured-section,
    .inner-cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pill-banner-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}