/* ============================================
   VISUAL CONVERSION SYSTEM
   6 image roles mapped to conversion sections
   ============================================ */

/* ─── 1. PROBLEM → SOLUTION SPLIT ─── */
.problem-solution {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.problem-solution-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-side,
.solution-side {
    position: relative;
}

.split-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.split-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.split-label--problem {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.split-label--solution {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.split-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 768px) {
    .problem-solution-split {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* ─── 2. BEHAVIOR PROOF ─── */
.behavior-proof {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.behavior-proof-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.behavior-proof-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.behavior-proof-image img {
    width: 100%;
    height: auto;
    display: block;
}

.behavior-proof-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.behavior-proof-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 500;
}

.behavior-proof-list li svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .behavior-proof-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .behavior-proof-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .behavior-proof-list {
        align-items: center;
    }
}

/* ─── 3. FEATURE CARDS WITH IMAGES ─── */
.why-works-grid--visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.why-works-card--visual {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-works-card--visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.why-works-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.why-works-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.why-works-card--visual:hover .why-works-card-image img {
    transform: scale(1.05);
}

.why-works-card-content {
    padding: 1.5rem;
}

.why-works-card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.why-works-card-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .why-works-grid--visual {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ─── 4. UGC SOCIAL PROOF GRID ─── */
.ugc-proof {
    padding: 3.5rem 0;
    background: var(--bg-primary);
}

.ugc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.ugc-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.ugc-card:hover {
    transform: translateY(-2px);
}

.ugc-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.ugc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Slightly desaturated to feel authentic/UGC */
    filter: saturate(0.92) contrast(1.02);
}

.ugc-caption {
    padding: 1.25rem 1.5rem;
}

.ugc-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.ugc-caption p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
    font-style: italic;
    margin: 0 0 0.5rem;
}

.ugc-author {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
}

@media (max-width: 600px) {
    .ugc-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* ─── 5. PRODUCT GALLERY UPGRADES ─── */
.thumbnail-grid {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail-grid .thumbnail {
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    object-fit: cover;
}

.thumbnail-grid .thumbnail:hover {
    opacity: 0.85;
}

.thumbnail-grid .thumbnail.active {
    border-color: var(--primary);
}

/* ─── 6. DARK MODE OVERRIDES ─── */
[data-theme="dark"] .split-image-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .behavior-proof-image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .why-works-card--visual {
    background: var(--bg-secondary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .ugc-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .why-works-card-content h3,
[data-theme="dark"] .behavior-proof-list li,
[data-theme="dark"] .ugc-caption p {
    color: var(--gray-200);
}

[data-theme="dark"] .split-caption,
[data-theme="dark"] .why-works-card-content p,
[data-theme="dark"] .ugc-author {
    color: var(--gray-400);
}

/* ─── 7. PLACEHOLDER STATE (graceful before real images uploaded) ─── */
.why-works-card-image img,
.split-image-wrapper img,
.behavior-proof-image img,
.ugc-image img {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    min-height: 200px;
}

[data-theme="dark"] .why-works-card-image img,
[data-theme="dark"] .split-image-wrapper img,
[data-theme="dark"] .behavior-proof-image img,
[data-theme="dark"] .ugc-image img {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
}
