/* Brand Tracker Page Styles */
:root {
    --brand-primary: #22d3ee;
    --brand-dark: #0891b2;
    --bg-dark: #0a0f1a;
    --bg-panel: #111827;
    --bg-card: #1e293b;
    --text-primary: #e2e8f0;
    --text-muted: #64748b;
    --green: #10b981;
    --orange: #f97316;
    --red: #ef4444;
    --purple: #a855f7;
    --yellow: #fbbf24;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Hero Section */
.brand-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, #050a10 0%, var(--bg-dark) 50%, #0a1219 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.brand-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.brand-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.brand-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 50px;
    color: var(--brand-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.brand-hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

.brand-hero h1 span { color: var(--brand-primary); }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Search Box */
.search-container { max-width: 600px; margin: 0 auto 2rem; }

.search-box {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.125rem;
    outline: none;
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    border: none;
    border-radius: 12px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
}

.search-box button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.hero-examples { font-size: 0.875rem; color: var(--text-muted); }

.hero-examples span {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.hero-examples span:hover { color: var(--brand-primary); }

/* Loading State */
.loading-state {
    display: none;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-state.active { display: block; }

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(34, 211, 238, 0.2);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state h3 { color: #ffffff; margin-bottom: 0.5rem; }
.loading-state p { color: var(--text-muted); }

.loading-models {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.loading-model {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.loading-model.active {
    opacity: 1;
    color: var(--brand-primary);
    background: rgba(34, 211, 238, 0.15);
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    transform: scale(1.05);
}

.loading-model.done {
    opacity: 0.8;
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.loading-model.done i { color: var(--green); }

/* Results Container */
.results-container {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.results-container.active { display: block; }

.panel {
    background: linear-gradient(180deg, var(--bg-panel) 0%, #0d1321 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

/* Panel Header */
.panel-header {
    background: linear-gradient(135deg, #134e5e 0%, #1a3a4a 100%);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-info { display: flex; flex-direction: column; }
.brand-name { font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.brand-category { font-size: 14px; color: rgba(255,255,255,0.7); }

.header-verdict {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #34d399;
}

.header-verdict.partial {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.header-verdict.low {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
    .quick-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.stat { text-align: center; position: relative; }

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .stat:not(:last-child)::after { display: none; }
}

.stat-value { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.stat-value.green { color: var(--green); }
.stat-value.orange { color: var(--orange); }
.stat-value.cyan { color: var(--brand-primary); }
.stat-value.white { color: #fff; }
.stat-value.red { color: var(--red); }

.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.stat-sub {
    display: inline-block;
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.06);
}

@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.two-col > .section { background: var(--bg-panel); border-bottom: none; }

/* Section Base */
.section { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }

.section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.section-icon { font-size: 16px; }
.section-title { font-size: 11px; font-weight: 600; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 1px; }

/* Brand Role Card */
.brand-role-card {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.role-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.role-row:last-child { margin-bottom: 0; }

.role-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    width: 70px;
    text-align: center;
}

.role-badge.primary { background: rgba(34, 211, 238, 0.2); color: var(--brand-primary); }
.role-badge.secondary { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.role-text { font-size: 14px; color: var(--text-primary); line-height: 1.4; }
.role-consensus { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Emotional Tags */
.emotion-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.emotion-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(251, 113, 133, 0.15) 100%);
    border: 1px solid rgba(251, 146, 60, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #fdba74;
}

.emotion-tag .count {
    background: rgba(251, 146, 60, 0.3);
    color: #fed7aa;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Competitor Pills */
.competitor-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
}

.pill .freq {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

/* Notable Facts */
.notable-grid { display: flex; flex-direction: column; gap: 6px; }

.notable-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

.notable-check { color: var(--green); flex-shrink: 0; font-size: 12px; }

.notable-count {
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Gaps */
.gaps-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 14px;
}

.gaps-intro { font-size: 12px; color: #f59e0b; margin-bottom: 10px; font-weight: 500; }
.gaps-list { display: flex; flex-wrap: wrap; gap: 6px; }
.gap-tag { font-size: 11px; color: #fcd34d; background: rgba(245, 158, 11, 0.15); padding: 5px 10px; border-radius: 5px; }

/* Tier Section */
.tier-section { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tier-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.tier-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
}

.tier-badge.lightweight { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.tier-badge.general { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.tier-badge.advanced { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.tier-badge.premium { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.tier-badge.consumer { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.tier-description { font-size: 12px; color: var(--text-muted); }

.tier-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }

/* Model Card */
.model-card { background: var(--bg-card); border-radius: 10px; overflow: hidden; }

.model-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.model-card-header:hover { background: #263548; }
.model-info { display: flex; align-items: center; gap: 10px; }

.model-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.model-logo.claude { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.model-logo.gpt { background: linear-gradient(135deg, #10a37f, #0d8a6a); color: #fff; }
.model-logo.gemini { background: linear-gradient(135deg, #4285f4, #2b6cb0); color: #fff; }
.model-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.model-meta { display: flex; align-items: center; gap: 8px; }

.sentiment-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentiment-badge.positive { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.sentiment-badge.neutral { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.sentiment-badge.negative { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.chevron { color: #475569; transition: transform 0.3s; font-size: 12px; }
.model-card.open .chevron { transform: rotate(180deg); }

.model-card-content {
    display: none;
    padding: 0 14px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.model-card.open .model-card-content { display: block; }
.response-block { margin-top: 12px; }
.response-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.response-text { font-size: 12px; color: #cbd5e1; line-height: 1.5; }
.response-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-pill { font-size: 10px; color: #94a3b8; background: rgba(255,255,255,0.05); padding: 3px 6px; border-radius: 4px; }

/* Consumer AI Special Card */
.consumer-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(34, 211, 238, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.consumer-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.consumer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10a37f, #047857);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.consumer-title { font-size: 16px; font-weight: 700; color: #fff; }
.consumer-subtitle { font-size: 11px; color: var(--text-muted); }

.consumer-description {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border-left: 3px solid var(--green);
}

/* CTA Section */
.cta-section-panel {
    padding: 28px 32px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.08) 100%);
}

.cta-hook { font-size: 15px; color: #94a3b8; margin-bottom: 18px; line-height: 1.6; }
.cta-hook strong { color: #f59e0b; }

.timestamp { font-size: 10px; color: #475569; margin-top: 16px; }
.full-width { border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Value Props Section */
.value-section { padding: 4rem 0; background: var(--bg-dark); }

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 768px) { .value-grid { grid-template-columns: 1fr; } }

.value-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-4px);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(34, 211, 238, 0.05) 100%);
    border-radius: 16px;
}

.value-icon i { font-size: 1.5rem; color: var(--brand-primary); }
.value-card h3 { color: #ffffff; font-size: 1.125rem; margin-bottom: 0.75rem; }
.value-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; margin: 0; }

/* Section Header */
.section-header-dark { text-align: center; margin-bottom: 3rem; padding: 0 1.5rem; }

.section-header-dark .label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 50px;
    color: var(--brand-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header-dark h2 { color: #ffffff; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.section-header-dark p { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Error State */
.error-state { display: none; padding: 3rem 2rem; text-align: center; max-width: 500px; margin: 0 auto; }
.error-state.active { display: block; }

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
}

.error-icon i { font-size: 2rem; color: var(--red); }
.error-state h3 { color: #ffffff; margin-bottom: 0.75rem; }
.error-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

.error-state button {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.error-state button:hover { background: rgba(255, 255, 255, 0.15); }

/* CTA Bottom Section */
.cta-section-bottom {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1525 100%);
    padding: 4rem 0;
}

.cta-section-bottom h2 { color: #ffffff; font-size: 2rem; margin-bottom: 1rem; }
.cta-section-bottom p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; font-size: 1.125rem; line-height: 1.6; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn-outline { color: #ffffff; border-color: rgba(255,255,255,0.3); }

.cta-button {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    color: #0f172a;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
    color: #0f172a;
}
