/* /public/css/pages/thumbnail-test-landing.css */

/* =========================================
   1. Global & Typography
   Shared section styles (.home-section, .section-header, .final-cta,
   .reveal) are in landing-shared.css.
   ========================================= */
   .t3-landing-wrapper {
    background-color: var(--color-white);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-gray-800);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: var(--line-height-base);
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Base resets */
.t3-landing-wrapper h1,
.t3-landing-wrapper h2:not(.final-cta__title),
.t3-landing-wrapper h3:not(.familiar-card__title) {
    color: var(--color-gray-900);
    font-weight: 800;
    line-height: 1.2;
}

/* Alias for legacy section-title/subtitle — maps to shared section-header pattern */
.t3-landing-wrapper .section-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-gray-900);
    text-align: center;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.t3-landing-wrapper .section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-gray-500);
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--space-12);
    line-height: var(--line-height-loose);
}

.link-secondary {
    color: var(--color-gray-500);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    margin-top: var(--space-4);
    font-size: var(--font-size-sm);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}
.link-secondary:hover { color: var(--color-primary); }

/* =========================================
   2. Urgency Ribbon
   ======================================== */
.t3-welcome-ribbon {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.ribbon-tag {
    background: var(--color-warning);
    color: var(--color-gray-900);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    font-size: var(--font-size-xs);
    letter-spacing: 0.5px;
}

/* =========================================
   3. Split Hero Section (Optimized Layout)
   ========================================= */
.hero-section {
    padding: var(--space-16) var(--space-4) var(--space-12);
    background: var(--color-white);
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    /* REVISED LAYOUT: Text gets ~62%, Demo gets ~38% */
    grid-template-columns: 1.6fr 1fr; 
    gap: 5rem;
    align-items: center;
}

.hero-text-col { text-align: left; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-6);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.hero-h1 {
    font-size: clamp(2.75rem, 7vw, 4.25rem);
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
    color: var(--color-gray-900);
    line-height: 1.15;
}

.gradient-text {
    color: var(--color-primary);
    padding-bottom: 0.1em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-gray-700);
    margin-bottom: var(--space-10);
    line-height: 1.7;
    max-width: 95%;
}

.trust-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gray-500);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}
.trust-item i { color: var(--color-success); }

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.button--pulse {
    animation: shadowPulse 2s infinite;
}

@keyframes shadowPulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.sub-cta-text {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    margin-left: var(--space-2);
}

/* =========================================
   4. Interactive Demo (Compact)
   ========================================= */
.hero-demo-col {
    position: relative;
    perspective: 1000px;
    max-width: 480px; 
    margin-left: auto;
    margin-right: auto;
}

.t3-demo-container {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    position: relative;
    text-align: left;
    transition: transform 0.3s;
}

.t3-demo-container:hover {
    transform: translateY(-5px);
}

.demo-caption {
    text-align: center;
    margin-top: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-gray-400);
    font-style: italic;
}

.t3-demo-browser-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.yt-logo-replica {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: "Roboto", sans-serif;
    color: #0f0f0f;
    font-size: 0.9rem;
}
.yt-logo-text { position: relative; top: -1px; }
.yt-icon { color: #FF0000; font-size: 1.3rem; }

.yt-search-bar {
    flex-grow: 1;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    color: #9ca3af;
    font-size: 0.8rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.yt-icons-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #606060;
}

.yt-user-circle {
    width: 28px;
    height: 28px;
    background: #ef4444;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.t3-demo__grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5rem;
    padding: 1.5rem;
    position: relative;
    background: #f9fafb;
    min-height: auto; 
    align-items: start;
}

/* VS Badge Removed per request */
.t3-vs-badge { display: none; }

/* YouTube Card Replica */
.yt-card {
    cursor: pointer;
    background: transparent;
    display: flex;
    flex-direction: row; /* Horizontal layout for compact demo */
    gap: 12px;
    transition: transform 0.2s;
    position: relative;
    font-family: "Roboto", Arial, sans-serif;
    align-items: flex-start;
}

.yt-card:hover {
    transform: scale(1.02);
    z-index: 5;
}

.yt-thumbnail-box {
    position: relative;
    width: 160px; /* Fixed width for thumbnail */
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.yt-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
}

.yt-vote-overlay {
    position: absolute;
    inset: 0;
    background: rgba(79, 70, 229, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    font-weight: 700;
    backdrop-filter: blur(2px);
    font-size: 0.9rem;
}
.yt-card:hover .yt-vote-overlay { opacity: 1; }

.vote-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }

.yt-meta {
    flex-grow: 1;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Hide avatar in compact mode */
.yt-avatar { display: none; }

.yt-title {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f0f0f;
    line-height: 1.3;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-stats {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 0.75rem;
    color: #606060;
    line-height: 1.3;
}
.yt-channel-name { display: flex; align-items: center; gap: 4px; }

/* 
   Overlay & Results 
   FIX: Changed overflow-y to hidden to prevent scrollbar
*/
.t3-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    overflow: hidden; /* FIX: Remove scrollbar */
    padding: 1rem; 
}
.t3-overlay.is-visible { display: flex; opacity: 1; }

.t3-loader { text-align: center; }
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--space-4);
}
@keyframes spin { to {transform: rotate(360deg);} }

.loading-text { font-weight: var(--font-weight-semibold); color: var(--color-gray-700); font-size: var(--font-size-base); }

.t3-results { width: 100%; max-width: 400px; text-align: center; padding: 0.5rem; display: none; }

/* Reduced sizes to fit container without scrolling */
.t3-result-icon { font-size: 2.5rem; margin-bottom: 0.5rem; line-height: 1; }
.t3-result-icon.correct { color: var(--color-success); }
.t3-result-icon.wrong { color: var(--color-danger); }

.t3-result-title { font-size: 1.35rem; margin-bottom: 0.25rem; font-weight: 800; }
.t3-result-subtitle { color: var(--color-gray-500); margin-bottom: var(--space-4); font-size: var(--font-size-sm); line-height: 1.3; }

.t3-bars {
    margin-bottom: var(--space-4);
    background: var(--color-gray-50);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
}

.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-label { width: 60px; text-align: right; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--color-gray-500); }
.bar-track { flex-grow: 1; height: 10px; background: var(--color-gray-200); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; transition: width 1s ease-out; }
.bar-pct { width: 35px; text-align: left; font-size: 0.85rem; font-weight: 700; }

.t3-cta .button {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

/* =========================================
   5. Stats Bar (DESIGN FIX)
   ========================================= */
.stats-bar-section {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    padding: var(--space-6) 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.stat-item { text-align: center; }
.stat-number { font-size: var(--font-size-3xl); font-weight: var(--font-weight-bold); color: var(--color-gray-900); line-height: 1; margin-bottom: var(--space-1); letter-spacing: -1px; display: block; }
.stat-label { color: var(--color-gray-500); font-size: var(--font-size-sm); text-transform: uppercase; letter-spacing: 0.05em; font-weight: var(--font-weight-semibold); }

/* =========================================
   6. Content Sections (SEO Optimized)
   ========================================= */
.content-section {
    padding: var(--space-20) 0;
    border-bottom: 1px solid var(--color-gray-200);
}
.content-section.bg-gray { background: var(--color-gray-50); }

/* SEO Content Block */
.seo-content-block {
    background-color: var(--color-gray-50);
    padding-top: var(--space-16);
    padding-bottom: var(--space-24);
}

.seo-content-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.seo-article {
    background: var(--color-white);
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
}

.seo-article h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-8);
    color: var(--color-gray-900);
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.seo-article h3 {
    font-size: var(--font-size-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    color: var(--color-gray-800);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Visual accent bar for H3s — solid color, no gradient */
.seo-article h3::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.seo-article p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
}

.seo-article ul, .seo-article ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    line-height: 1.7;
}
.seo-article li { margin-bottom: var(--space-2); }

.seo-article strong {
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

/* Mobile responsiveness for the SEO article */
@media (max-width: 768px) {
    .seo-article {
        padding: var(--space-8) var(--space-6);
        border-radius: var(--radius-xl);
    }
    .seo-article h2 {
        font-size: 1.75rem;
    }
    .seo-article h3 {
        font-size: var(--font-size-xl);
    }
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.human-card {
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
    z-index: 1;
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.card-icon { font-size: var(--font-size-5xl); margin-bottom: var(--space-6); color: var(--color-gray-400); }
.human-card .card-icon { color: var(--color-primary); }

.comparison-card h3 { font-size: var(--font-size-xl); margin-bottom: var(--space-8); font-weight: 800; }

.comparison-list { list-style: none; padding: 0; text-align: left; }
.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-gray-600);
}

.negative i { color: var(--color-danger); flex-shrink: 0; margin-top: 4px; }
.positive i { color: var(--color-success); flex-shrink: 0; margin-top: 4px; }

/* Final CTA — base styles are in landing-shared.css.
   Only page-specific overrides below. */
.t3-landing-wrapper ~ .final-cta {
    margin-bottom: 0;
    border-bottom: none;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: var(--space-12); }
    .hero-text-col { text-align: center; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .trust-badge-row { justify-content: center; }
    .hero-cta-group { align-items: center; }
    .hero-demo-col { max-width: 100%; margin: 0 auto; }
    .t3-demo-container { max-width: 500px; margin: 0 auto; }

    .t3-demo__grid { grid-template-columns: 1fr; }
    .yt-card { flex-direction: row; }
}

@media (max-width: 640px) {
    .t3-demo__grid { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-4); }
    .hero-section { padding: var(--space-12) var(--space-4) var(--space-16); }
    .human-card { transform: none; border-width: 1px; }
    .yt-search-bar { display: none; }
    .t3-demo-browser-bar { justify-content: center; }
    .t3-welcome-ribbon { font-size: var(--font-size-xs); }

    .yt-card { flex-direction: column; width: 100%; }
    .yt-thumbnail-box { width: 100%; }

    .stat-number { font-size: var(--font-size-2xl); }
}