/* Hero Demo Styles - Interactive Gap Cards with Browser Chrome */
/* Matches Snoops AI Greatness Page aesthetic */

:root {
    --bg-primary: #0E0E10;
    --bg-secondary: #161618;
    --glass-card: rgba(17, 24, 32, 0.8);
    --glass-light: rgba(22, 22, 24, 0.6);
    --accent-cyan: #4AC0FF;
    --accent-red: #FF5F57;
    --accent-yellow: #FFBD2E;
    --accent-green: #28CA42;
    --accent-purple: #8B5CF6;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-subtle: rgba(255, 255, 255, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --browser-header-bg: rgba(28, 28, 31, 0.8);
}

/* Demo Section */
.hero-demo {
    background: var(--bg-primary);
    padding: 80px 20px;
    min-height: 100vh;
}

.demo-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.demo-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.demo-header p {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Query Carousel - Compact Notification Banner Style */
.query-carousel-hero {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    background: rgba(17, 24, 32, 0.6);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(251, 146, 60, 0.4); /* ORANGE border - key visual */
}

.query-carousel-hero .carousel-inner {
    padding: 16px 20px; /* Compact padding */
}

.query-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.alert-icon {
    font-size: 18px; /* Smaller icon */
}

.alert-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; /* Smaller title */
    font-weight: 600;
    color: #F5F5F5;
}

.query-content > * + * {
    margin-top: 8px; /* Tighter spacing */
}

.query-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9DA6B5;
}

.query-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; /* Smaller query text */
    font-weight: 400; /* Normal weight, not bold */
    font-style: italic;
    color: #E5E9F0;
    line-height: 1.5; /* Tighter line height */
}

.query-result {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; /* Match query text size */
    color: #C6CDD8;
    line-height: 1.5;
}

.result-highlight {
    font-weight: 600;
    color: #E5E9F0;
}

.competitors-list {
    font-weight: 600;
    color: #FB923C; /* Orange for competitors */
}

/* Filter Pills - EXACT Greatness Page Design */
.filter-pills-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 6px 16px; /* py-1.5 px-4 */
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #9DA6B5;
}

.filter-pill.active {
    background: rgba(74, 192, 255, 0.15);
    color: #4AC0FF;
    border: 1px solid rgba(74, 192, 255, 0.3);
}

.filter-pill:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Gap Cards Grid - Single showcase card */
.gap-cards-grid {
    /* Single card display, no grid needed */
}

/* Gap Card - Exact Greatness Page Style */
.gap-card {
    background: rgba(17, 24, 32, 0.8);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 16px 24px;
}

.gap-card:hover {
    background: rgba(23, 27, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Content Wrapper - creates consistent vertical spacing */
.gap-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Equivalent to Tailwind space-y-2 */
}

/* Title/Type Name - with top spacing where meta/badge would be */
.gap-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #E5E9F0;
    line-height: 1.375;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-top: 4px; /* Space where meta/badge row would be */
}

/* Hook - Main Message */
.gap-hook-main {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.625;
    color: #C6CDD8;
}

/* Hook Divider - First one (before evidence) */
.gap-hook-divider {
    border-top: 1px solid #1A2230;
    padding-top: 12px; /* pt-3 */
    margin-top: 8px; /* mt-2 */
    margin-bottom: 0;
}

/* Hook Divider - Between details (applied via nth-of-type in JS if needed) */
.gap-hook-divider + .gap-hook-detail + .gap-hook-divider {
    margin-top: 8px; /* my-2 symmetric */
    margin-bottom: 8px;
    padding-top: 0;
}

/* Hook - Detail Lines */
.gap-hook-detail {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    line-height: 1.625;
    color: #9DA6B5;
}

/* Button Container */
.gap-button-container {
    padding-top: 16px;
    margin-top: 12px;
}

/* Fix Gap Button - Exact Greatness Page Style */
.fix-gap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: rgba(74, 192, 255, 0.12);
    border: 1px solid rgba(74, 192, 255, 0.3);
    color: #4AC0FF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fix-gap-btn:hover {
    background: rgba(74, 192, 255, 0.18);
    border-color: rgba(74, 192, 255, 0.4);
}

/* Arrow Icon */
.fix-gap-btn svg {
    width: 16px;
    height: 16px;
    color: #4AC0FF;
}

/* Modal Overlay - Production Centered Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 14, 16, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: rgba(17, 24, 32, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

/* Mobile: bottom drawer */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-container {
        border-radius: 18px 18px 0 0;
        max-height: 90vh;
        transform: translateY(100%);
    }

    .modal-overlay.active .modal-container {
        transform: translateY(0);
    }
}

.modal-header {
    position: sticky;
    top: 0;
    background: rgba(28, 28, 31, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close-modal:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.modal-content {
    padding: 24px 0;
}

/* Progressive Disclosure Styles */

/* Solution Hero */
.solution-hero {
    text-align: center;
    padding: 32px 24px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.solution-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(74, 192, 255, 0.1);
    border: 1px solid rgba(74, 192, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.solution-hero h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.solution-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* Primary Action Card - Matches Production */
.primary-action-card {
    background: rgba(17, 24, 32, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.primary-action-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Production Contact Card */
.contact-card-prod {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(17, 24, 32, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.15s ease;
}

.contact-card-prod:hover {
    background: rgba(23, 27, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.10);
}

.expand-btn {
    width: 100%;
    padding: 10px 14px;
    background: rgba(74, 192, 255, 0.08);
    border: 1px solid rgba(74, 192, 255, 0.2);
    border-radius: 8px;
    color: var(--accent-blue);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
}

.expand-btn:hover {
    background: rgba(74, 192, 255, 0.12);
    border-color: rgba(74, 192, 255, 0.3);
}

/* Collapsible Sections */
.collapsible-section {
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
    max-height: 0;
}

.collapsible-section.expanded {
    max-height: 2000px;
}

/* Modal Footer */
.modal-footer {
    position: sticky;
    bottom: 0;
    background: rgba(17, 24, 32, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    padding: 20px 24px;
    margin-top: auto;
}

.modal-footer .primary-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4AC0FF 0%, #2EA0E0 100%);
    color: #0B1117;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-footer .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 192, 255, 0.4);
}

/* Solution Container Styles */
.solution-container {
    color: var(--text-primary);
}

.solution-container h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.solution-container h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.solution-container h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.solution-container p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.solution-container ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.solution-container li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.solution-container li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Card Components */
.journalist-card,
.article-card,
.awards-header,
.problem-overview {
    background: rgba(22, 22, 24, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.outlet-header,
.article-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.outlet-logo,
.domain-logo,
.awards-logo {
    height: 32px;
    width: auto;
}

.deadline-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
}

.deadline-badge.urgent {
    background: rgba(255, 95, 87, 0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.article-stats span,
.request-meta span,
.awards-meta span {
    padding: 6px 12px;
    background: rgba(74, 192, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.request-details,
.gap-summary {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 16px 0;
}

/* Response/Template Sections */
.response-section,
.templates-section,
.contacts-section,
.file-section,
.steps-section {
    margin: 32px 0;
}

/* Page section headers - vertical stacking */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Modal/template headers - horizontal layout with action buttons */
.template-header,
.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.copy-btn {
    padding: 8px 16px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.copy-btn:hover {
    background: #5ACCFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 192, 255, 0.3);
}

.response-preview,
.template-content {
    background: rgba(14, 14, 16, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.email-field {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.email-field strong {
    color: var(--text-primary);
}

.email-body p {
    margin: 12px 0;
}

.email-body strong {
    color: var(--text-primary);
}

/* Contact Cards */
.contact-card {
    background: rgba(22, 22, 24, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.contact-card.primary {
    border-color: var(--accent-cyan);
    background: rgba(74, 192, 255, 0.05);
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.verified-badge {
    padding: 4px 10px;
    background: rgba(40, 202, 66, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.contact-details p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 6px 0;
}

.confidence-score {
    margin-top: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-subtle);
    display: inline-block;
}

/* Code Block */
.code-block {
    background: rgba(14, 14, 16, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* Steps */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 16px;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.step-content h5 {
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-subtle);
    margin: 0;
}

/* Impact/Explainer Cards */
.impact-card,
.explainer-card,
.placement-card,
.awards-context,
.guidance-card,
.action-plan {
    background: rgba(74, 192, 255, 0.05);
    border: 1px solid rgba(74, 192, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.impact-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge.high {
    background: rgba(255, 95, 87, 0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.badge.quick {
    background: rgba(40, 202, 66, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.badge.easy {
    background: rgba(74, 192, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.icon-badge {
    font-size: 48px;
    margin-bottom: 16px;
}

.learn-more {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 12px;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Placement Preview */
.placement-preview {
    background: rgba(14, 14, 16, 0.6);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.placement-preview code {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre;
    display: block;
}

.placement-preview .highlight {
    color: var(--accent-cyan);
    background: rgba(74, 192, 255, 0.1);
}

/* Guidance Section */
.guidance-section {
    margin: 24px 0;
}

.guidance-card {
    display: flex;
    gap: 16px;
    align-items: start;
}

.guidance-icon {
    font-size: 32px;
    flex-shrink: 0;
}

/* Action Plan */
.action-plan h4 {
    margin-bottom: 16px;
}

.plan-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-icon {
    font-size: 20px;
}

/* Solution CTA */
.solution-cta {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.primary-btn {
    padding: 16px 32px;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.primary-btn:hover {
    background: #5ACCFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 192, 255, 0.4);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    background: rgba(40, 202, 66, 0.95);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease, slideOut 0.3s ease 1.7s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-demo {
        padding: 40px 16px;
    }

    .demo-header h2 {
        font-size: 32px;
    }

    .demo-header p {
        font-size: 16px;
    }

    .gap-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .card-content {
        padding: 24px;
        min-height: 280px;
    }

    .gap-title {
        font-size: 20px;
    }

    .modal-container {
        max-height: 95vh;
    }

    .modal-content {
        padding: 24px;
    }

    .solution-container h3 {
        font-size: 24px;
    }

    .outlet-header,
    .article-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .deadline-badge {
        margin-left: 0;
    }

    .toast {
        right: 16px;
        left: 16px;
        top: 16px;
    }
}

@media (max-width: 480px) {
    .demo-header h2 {
        font-size: 28px;
    }

    .gap-icon {
        font-size: 36px;
    }

    .card-content {
        padding: 20px;
    }

    .card-footer {
        padding: 16px 20px;
    }
}
