/* ========================================
   AUTHOR PROFILE PAGE - STEVE JOBS EDITION
   Following CLAUDE.md Design System
   ======================================== */

/* CSS Variables - CLAUDE.md Color System */
:root {
    /* Primary Colors */
    --truth-blue: #007AFF;
    --truth-green: #34C759;
    --truth-yellow: #FF9500;
    --truth-red: #FF3B30;

    /* Text Colors */
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --bg-tertiary: #FAFAFA;
}

/* Dark mode support for collapsible sections */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #FFFFFF;
        --text-secondary: #98989D;
        --bg-primary: #000000;
        --bg-secondary: #1C1C1E;
        --bg-tertiary: #2C2C2E;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-author-jobs {
    background: linear-gradient(135deg, #1D1D1F 0%, #2C2C2E 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero-content-author {
    max-width: 600px;
    margin: 0 auto;
}

.author-avatar-hero {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #007AFF 0%, #00C7BE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback-hero {
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 700;
}

.author-name-hero {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.x-handle-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
}

.x-handle-hero:hover {
    color: #FFFFFF;
}

.x-icon-hero {
    opacity: 0.7;
}

.author-position-hero {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0 0 0;
    font-weight: 500;
    line-height: 1.5;
}

/* Score Display */
.score-hero {
    margin: 3rem 0 2rem;
}

.score-number-hero {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.score-number-hero.credible {
    color: #34C759;
}

.score-number-hero.uncertain {
    color: #FF9500;
}

.score-number-hero.low {
    color: #FF3B30;
}

.score-label-hero {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.score-subtitle-hero {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Badges */
.badges-hero {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.badge-hero {
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    backdrop-filter: blur(10px);
}

.badge-hero.verified {
    background: rgba(0, 122, 255, 0.2);
    color: #5AC8FA;
}

.badge-hero.top-tier {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD60A;
}

@media (max-width: 768px) {
    .hero-author-jobs {
        padding: 3rem 1.5rem;
    }

    .author-avatar-hero {
        width: 100px;
        height: 100px;
    }

    .avatar-fallback-hero {
        font-size: 2.5rem;
    }

    .author-name-hero {
        font-size: 2rem;
    }

    .author-position-hero {
        font-size: 0.938rem;
    }

    .score-number-hero {
        font-size: 4rem;
    }
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section-author {
    padding: 1.5rem 1.5rem;
    background: #FAFAFA;
}

.stats-grid-author {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item-author {
    text-align: center;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-number-author {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1D1D1F;
    margin-bottom: 0.5rem;
}

.stat-label-author {
    font-size: 0.875rem;
    color: #6E6E73;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-section-author {
        padding: 1rem 1.5rem;
    }

    .stat-number-author {
        font-size: 2rem;
    }
}

/* ========================================
   EXPERTISE TAGS
   ======================================== */

.expertise-list-jobs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.expertise-tag-jobs {
    padding: 0.625rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1D1D1F;
    transition: all 0.2s ease;
}

.expertise-tag-jobs:hover {
    background: #F5F5F7;
    border-color: rgba(0, 0, 0, 0.2);
}

/* ========================================
   ANALYSES LIST
   ======================================== */

.analyses-list-jobs {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.analysis-card-compact {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.analysis-card-compact:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.analysis-score-compact {
    font-size: 2rem;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

.analysis-score-compact.credible {
    color: #34C759;
}

.analysis-score-compact.uncertain {
    color: #FF9500;
}

.analysis-score-compact.low {
    color: #FF3B30;
}

.analysis-info-compact {
    flex: 1;
    min-width: 0;
}

.analysis-title-compact {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 0.5rem 0;
}

.analysis-summary-compact {
    font-size: 0.875rem;
    color: #6E6E73;
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.analysis-meta-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-item-compact {
    font-size: 0.75rem;
    color: #6E6E73;
    display: flex;
    align-items: center;
}

.meta-item-compact:not(:last-child)::after {
    content: "•";
    margin-left: 0.75rem;
    color: rgba(0, 0, 0, 0.2);
}

.analysis-arrow-compact {
    font-size: 1.5rem;
    color: #007AFF;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.analysis-card-compact:hover .analysis-arrow-compact {
    opacity: 1;
}

@media (max-width: 768px) {
    .analysis-card-compact {
        padding: 1.25rem;
        gap: 1rem;
    }

    .analysis-score-compact {
        font-size: 1.5rem;
        min-width: 60px;
    }

    .analysis-title-compact {
        font-size: 1rem;
    }

    .analysis-arrow-compact {
        opacity: 1;
    }
}

/* ========================================
   CREDIBILITY BREAKDOWN
   ======================================== */

.credibility-breakdown-jobs {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.breakdown-item-jobs {
    display: grid;
    gap: 0.75rem;
}

.breakdown-bar-jobs {
    height: 12px;
    background: #F5F5F7;
    border-radius: 6px;
    overflow: hidden;
}

.breakdown-fill-jobs {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.breakdown-fill-jobs.credible {
    background: #34C759;
}

.breakdown-fill-jobs.uncertain {
    background: #FF9500;
}

.breakdown-fill-jobs.low {
    background: #FF3B30;
}

.breakdown-label-jobs {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-name-jobs {
    font-size: 0.875rem;
    color: #6E6E73;
    font-weight: 500;
}

.breakdown-count-jobs {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1D1D1F;
}

/* ========================================
   NOTICE CARD
   ======================================== */

.notice-card-jobs {
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
}

.notice-icon-jobs {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-text-jobs {
    flex: 1;
    font-size: 0.875rem;
    color: #1D1D1F;
    line-height: 1.6;
}

.notice-link-jobs {
    color: #007AFF;
    text-decoration: none;
    font-weight: 600;
}

.notice-link-jobs:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .notice-card-jobs {
        padding: 1.25rem;
    }

    .notice-text-jobs {
        font-size: 0.8125rem;
    }
}

/* ========================================
   REUSE SHARED COMPONENTS
   ======================================== */

/* Section spacing - Reduced for tighter layout */
.section-spacer {
    padding: 1rem 1.5rem;
}

@media (max-width: 768px) {
    .section-spacer {
        padding: 0.75rem 1.5rem;
    }
}

/* Content container - reuse */
.content-container-jobs {
    max-width: 800px;
    margin: 0 auto;
}

/* Info card - reuse */
.info-card-large {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #007AFF;
    margin-bottom: 0.75rem;
}

.card-title-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1D1D1F;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.card-text-large {
    font-size: 1.125rem;
    color: #6E6E73;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .info-card-large {
        padding: 1.5rem;
    }

    .card-title-large {
        font-size: 1.5rem;
    }

    .card-text-large {
        font-size: 1rem;
    }
}

/* Link with arrow - reuse */
.link-arrow-jobs {
    color: #007AFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.link-arrow-jobs:hover {
    transform: translateX(4px);
}

/* ============================================================================
   COLLAPSIBLE SECTIONS - CLAUDE.md Style
   ============================================================================ */

/* Import collapsible card behavior from fact analysis */
.content-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.collapsible-card {
    overflow: hidden;
}

.card-header {
    padding: 2rem;
}

.collapsible-header {
    cursor: pointer;
    transition: background 0.2s ease;
}

.collapsible-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.collapsible-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1D1D1F);
    margin: 0;
}

.issue-count {
    color: var(--text-secondary, #98989D);
    font-weight: 400;
    font-size: 1.125rem;
}

.collapsible-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chevron-icon {
    stroke: var(--text-secondary, #98989D);
}

/* Collapsed state (chevron pointing down) */
.collapsed-card .collapsible-toggle {
    transform: rotate(0deg);
}

/* Expanded state (chevron pointing up) */
.collapsible-card:not(.collapsed-card) .collapsible-toggle {
    transform: rotate(180deg);
}

/* Preview content (visible when collapsed) */
.issues-preview {
    padding: 0 2rem 2rem 2rem;
    display: block;
}

/* Hide preview when expanded */
.collapsible-card:not(.collapsed-card) .issues-preview {
    display: none;
}

/* Full content (hidden when collapsed) */
.collapsible-content {
    padding: 0 2rem 2rem 2rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show full content when expanded */
.collapsible-card:not(.collapsed-card) .collapsible-content {
    max-height: 10000px;
    opacity: 1;
}

/* ============================================================================
   LLM CREDIBILITY INVESTIGATION - CLAUDE.md Style
   ============================================================================ */

.author-baseline-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.baseline-score-box {
    background: rgba(0, 122, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.baseline-score-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--truth-blue, #007AFF);
    margin-bottom: 0.5rem;
}

.baseline-score-label {
    font-size: 0.938rem;
    color: var(--text-secondary, #98989D);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.baseline-preview-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, #98989D);
}

.credibility-investigation-box,
.track-record-box {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.investigation-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary, #98989D);
    margin-bottom: 1rem;
}

.investigation-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary, #1D1D1F);
    margin: 0;
}

.methodology-note {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary, #6E6E73);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.methodology-note strong {
    color: var(--text-primary, #1D1D1F);
}

/* ============================================================================
   BIAS INDICATORS - CLAUDE.md Style
   ============================================================================ */

.biases-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bias-preview-item {
    background: rgba(255, 149, 0, 0.08);
    border-left: 3px solid var(--truth-yellow, #FF9500);
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary, #1D1D1F);
}

.preview-more-count {
    font-size: 0.875rem;
    color: var(--text-secondary, #98989D);
    font-weight: 600;
    padding: 0.5rem 0;
    text-align: center;
    opacity: 0.7;
}

.biases-full-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bias-item {
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid var(--truth-yellow, #FF9500);
    border-radius: 8px;
    padding: 1.25rem;
}

.bias-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #1D1D1F);
    margin-bottom: 0.5rem;
}

.bias-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, #98989D);
    margin-bottom: 0.5rem;
}

.bias-severity {
    font-size: 0.875rem;
    color: var(--truth-yellow, #FF9500);
    text-transform: capitalize;
}

/* ============================================================================
   BACKGROUND & DETAILS - CLAUDE.md Style
   ============================================================================ */

.background-preview-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary, #6E6E73);
}

.background-full-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary, #1D1D1F);
    margin-bottom: 1.5rem;
}

/* ============================================================================
   EXPERTISE AREAS - CLAUDE.md Style
   ============================================================================ */

.expertise-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.expertise-preview-tag {
    background: rgba(52, 199, 89, 0.15);
    color: var(--truth-green, #34C759);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.938rem;
    font-weight: 600;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.expertise-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.expertise-item {
    background: rgba(52, 199, 89, 0.08);
    border: 1px solid rgba(52, 199, 89, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--truth-green, #34C759);
    text-align: center;
    transition: all 0.2s ease;
}

.expertise-item:hover {
    background: rgba(52, 199, 89, 0.15);
    transform: translateY(-2px);
}

/* ============================================================================
   MOBILE RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }

    .baseline-score-number {
        font-size: 3rem;
    }

    .expertise-full-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        padding: 1.5rem;
    }

    .issues-preview {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .collapsible-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}
