/**
 * Public Figures Evaluation System Styles
 *
 * Styling for the public figures speech evaluation interface
 * Follows DSL Network color system and Bootstrap 5 conventions
 */

/* === FIGURE CARDS === */
.figure-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.figure-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.figure-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.figure-card .figure-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.figure-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.figure-position {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.figure-classification {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* === FALLACY RATE BADGES === */
.fallacy-rate-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-align: center;
    min-width: 80px;
}

.fallacy-rate-low {
    background-color: var(--color-excellent);
}

.fallacy-rate-moderate {
    background-color: var(--color-moderate-high);
}

.fallacy-rate-high {
    background-color: var(--color-poor);
}

/* === SPEECH CARDS === */
.speech-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.25rem;
}

.speech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.speech-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.speech-meta {
    color: #6c757d;
    font-size: 0.85rem;
}

.speech-meta i {
    margin-right: 0.25rem;
}

/* === FILTER PANEL === */
.filter-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.filter-panel .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

.filter-panel .form-select,
.filter-panel .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.filter-panel .btn {
    border-radius: 0.375rem;
}

/* === BALANCE STATS === */
.balance-stats {
    background-color: #e7f3ff;
    border-left: 4px solid var(--color-ai-analysis);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.balance-stats h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-ai-analysis);
    margin-bottom: 0.75rem;
}

.balance-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.balance-stat-item {
    text-align: center;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
}

.balance-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.balance-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

/* === FALLACY DISTRIBUTION CHART === */
.fallacy-chart {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.fallacy-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-analysis-fallacy);
}

.fallacy-bar-label {
    flex: 0 0 40%;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.fallacy-bar-visual {
    flex: 1;
    height: 24px;
    background: linear-gradient(90deg, var(--color-analysis-fallacy) 0%, var(--color-fallacy) 100%);
    border-radius: 0.25rem;
    position: relative;
    margin: 0 1rem;
}

.fallacy-bar-count {
    flex: 0 0 60px;
    text-align: right;
    font-weight: 700;
    color: #212529;
}

/* === SPEECH DETAIL === */
.speech-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.speech-transcript {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    line-height: 1.8;
    font-size: 1.05rem;
}

.truth-block-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-truth-block);
    margin-bottom: 1.25rem;
}

.truth-block-item.has-fallacy {
    border-left-color: var(--color-analysis-fallacy);
    background-color: #fff3cd;
}

.fallacy-detail {
    background-color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #ffc107;
    margin-top: 0.75rem;
}

.fallacy-type {
    font-weight: 700;
    color: var(--color-analysis-fallacy);
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* === METHODOLOGY PAGE === */
.methodology-section {
    margin-bottom: 3rem;
}

.methodology-section h2 {
    color: var(--color-ai-analysis);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-ai-analysis);
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: #495057;
    line-height: 1.7;
    margin: 0;
}

.methodology-alert {
    background-color: #d1ecf1;
    border-left: 4px solid var(--color-info);
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

/* === SORTING & PAGINATION === */
.sort-bar {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sort-bar select {
    max-width: 250px;
}

.pagination .page-link {
    color: var(--color-ai-analysis);
    border: 1px solid #dee2e6;
}

.pagination .page-link:hover {
    background-color: var(--color-ai-analysis);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-ai-analysis);
    border-color: var(--color-ai-analysis);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .figure-card .figure-photo {
        width: 60px;
        height: 60px;
    }

    .figure-name {
        font-size: 1.1rem;
    }

    .fallacy-rate-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .balance-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fallacy-bar-label {
        flex: 0 0 35%;
        font-size: 0.8rem;
    }

    .sort-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-bar select {
        max-width: 100%;
    }
}

/* === UTILITY CLASSES === */
.text-category-politician {
    color: var(--color-ai-analysis);
}

.text-category-athlete {
    color: var(--color-active);
}

.text-category-coach {
    color: var(--color-reasoning);
}

.text-category-expert {
    color: var(--color-evidence);
}

.badge-political-left {
    background-color: #007bff;
}

.badge-political-center {
    background-color: #6c757d;
}

.badge-political-right {
    background-color: #dc3545;
}

.badge-status-completed {
    background-color: var(--color-active);
}

.badge-status-pending {
    background-color: var(--color-pending);
}

.badge-status-failed {
    background-color: var(--color-error);
}
