
/* Ins7ghts Showcase - Shared Styles */
:root {
    --ink: #0a1628;
    --slate: #64748b;
    --silver: #94a3b8;
    --pearl: #cbd5e1;
    --white: #ffffff;
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.1);
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--pearl);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    background: rgba(10, 22, 40, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--cyan);
}

.back-link {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--cyan);
}

/* Hero */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--silver);
    max-width: 600px;
    margin: 0 auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate);
    margin-top: 4px;
}

/* ICP Navigation */
.icp-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.icp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    color: var(--pearl);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.icp-link:hover,
.icp-link.active {
    background: var(--cyan-glow);
    border-color: var(--cyan);
    color: var(--white);
}

.icp-link .icon {
    width: 32px;
    height: 32px;
    background: var(--cyan-glow);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cyan);
}

/* Search */
.search-container {
    padding: 32px 0;
}

.search-input {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: block;
    padding: 14px 20px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
}

.search-input:focus {
    outline: none;
    border-color: var(--cyan);
}

.search-input::placeholder {
    color: var(--slate);
}

/* Thread Grid */
.threads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

.thread-card {
    background: rgba(100, 116, 139, 0.05);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
}

.thread-card:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.thread-card h3 {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 8px;
}

.thread-card h3 a {
    color: inherit;
    text-decoration: none;
}

.thread-card h3 a:hover {
    color: var(--cyan);
}

.thread-card .question {
    color: var(--silver);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.thread-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--slate);
}

.thread-card .icp-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    background: rgba(100, 116, 139, 0.1);
    border-radius: 6px;
    color: var(--pearl);
    font-weight: 500;
    font-size: 0.8125rem;
}

.thread-card .icp-tag .icon {
    width: 24px;
    height: 24px;
    background: var(--cyan-glow);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
}

.thread-card .turns {
    color: var(--slate);
}

/* Thread Page Specific */
.thread-page {
    padding: 40px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--slate);
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--silver);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--cyan);
}

.breadcrumb .separator {
    color: var(--slate);
}

.thread-header {
    margin-bottom: 40px;
}

.thread-header h1 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 12px;
}

.thread-header .description {
    color: var(--silver);
    font-size: 1rem;
}

/* Turns */
.turn {
    background: rgba(100, 116, 139, 0.05);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.turn-header {
    margin-bottom: 24px;
}

.turn-number {
    display: inline-block;
    padding: 4px 12px;
    background: var(--cyan-glow);
    border-radius: 4px;
    color: var(--cyan);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.turn h2 {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 600;
}

.answer {
    color: var(--pearl);
    font-size: 0.9375rem;
    line-height: 1.7;
    position: relative;
    padding-top: 32px;
}

.answer::before {
    content: "A:";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cyan);
}

.answer p {
    margin-bottom: 16px;
}

.answer strong {
    color: var(--white);
}

.answer ul,
.answer ol {
    margin: 20px 0;
    padding-left: 28px;
}

.answer ol {
    list-style-type: decimal;
}

.answer ul {
    list-style-type: disc;
}

.answer li {
    margin-bottom: 12px;
    padding-left: 8px;
    line-height: 1.6;
}

.answer li strong {
    color: var(--cyan);
}

/* Tables - SEO-friendly with clear structure */
.table-responsive {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 8px;
    border: 1px solid var(--slate);
    background: rgba(10, 22, 40, 0.5);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 400px;
}

thead {
    background: rgba(0, 212, 255, 0.15);
    border-bottom: 2px solid var(--cyan);
}

th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 16px;
    color: var(--pearl);
    border-bottom: 1px solid rgba(100, 116, 139, 0.3);
    vertical-align: top;
    line-height: 1.5;
}

/* Alternating row colors for scannability */
tbody tr:nth-child(even) {
    background: rgba(100, 116, 139, 0.08);
}

tbody tr:hover {
    background: rgba(0, 212, 255, 0.08);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* First column emphasis */
td:first-child {
    font-weight: 500;
    color: var(--white);
}

/* Entities Sidebar */
.entities {
    margin-top: 40px;
    padding: 24px;
    background: rgba(100, 116, 139, 0.05);
    border-radius: 12px;
}

.entities h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.entity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entity-tag {
    padding: 6px 12px;
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 6px;
    color: var(--silver);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.entity-tag:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Related Threads */
.related {
    margin-top: 40px;
}

.related h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.related-link {
    padding: 16px;
    background: rgba(100, 116, 139, 0.05);
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 8px;
    color: var(--pearl);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.related-link:hover {
    border-color: var(--cyan);
    color: var(--white);
}

/* CTA */
.try-cta {
    margin-top: 48px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    text-align: center;
}

.try-cta h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 12px;
}

.try-cta p {
    color: var(--silver);
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--cyan);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

/* Try Turn Button (after each answer) */
.try-turn-cta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    text-align: right;
}

.try-turn-button {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.try-turn-button:hover {
    background: var(--cyan);
    color: var(--ink);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--cyan);
}

.copyright {
    color: var(--slate);
    font-size: 0.8125rem;
}

/* =====================================================
   SHOWCASE GATE - Blur Turn 2+ to drive sign-ups
   ===================================================== */

/* Turn 2 and beyond: blurred with no interaction */
.turn.gated {
    position: relative;
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    max-height: 300px;
    overflow: hidden;
}

/* Gradient fade over blurred turns */
.turn.gated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--ink));
    pointer-events: none;
}

/* CTA overlay between Turn 1 and gated turns */
.gate-cta {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 212, 255, 0.03) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 40px 32px;
    margin-bottom: 24px;
    text-align: center;
}

.gate-cta h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 8px;
}

.gate-cta p {
    color: var(--silver);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.gate-cta .gate-form {
    max-width: 420px;
    margin: 0 auto;
}

.gate-cta .gate-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 12px;
}

.gate-cta .gate-input:focus {
    outline: none;
    border-color: var(--cyan);
}

.gate-cta .gate-input::placeholder {
    color: var(--slate);
}

.gate-cta .consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.gate-cta .consent-row input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--cyan);
}

.gate-cta .consent-row label {
    font-size: 0.8125rem;
    color: var(--slate);
    line-height: 1.4;
}

.gate-cta .consent-row label a {
    color: var(--silver);
}

.gate-cta .gate-btn {
    width: 100%;
    padding: 14px 32px;
    background: var(--cyan);
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.gate-cta .gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.gate-cta .gate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gate-cta .gate-footer {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--slate);
}

.gate-cta .gate-footer a {
    color: var(--silver);
    text-decoration: underline;
}

.gate-cta .gate-message {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    display: none;
}

.gate-cta .gate-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.gate-cta .gate-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .stats {
        gap: 24px;
    }

    .threads-grid {
        grid-template-columns: 1fr;
    }

    .icp-nav {
        gap: 8px;
    }

    .icp-link {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }

    .gate-cta {
        padding: 28px 20px;
    }

    .gate-cta h3 {
        font-size: 1.125rem;
    }
}
