/* Derecho de Réplica — Vista frontend */

.mm-replica-page {
    max-width: 98%;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

/* Hero */
.mm-replica-hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}
.mm-replica-hero-content { max-width: 800px; }
.mm-replica-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #5dade2;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}
.mm-replica-hero h1 {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    font-weight: 800;
    line-height: 1.2;
}
.mm-replica-hero-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}
.mm-replica-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.mm-replica-kpi {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
}
.mm-replica-kpi-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}
.mm-replica-kpi-label {
    font-size: 0.75rem;
    opacity: 0.75;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Section titles */
.mm-replica-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f3460;
    border-bottom: 2px solid #0f3460;
    padding-bottom: 0.5rem;
    margin: 0 0 1rem 0;
}

/* Timeline */
.mm-replica-timeline-section { margin-bottom: 2rem; }
.mm-replica-timeline-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
.mm-replica-timeline-card {
    flex-shrink: 0;
    min-width: 180px;
    max-width: 220px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: #1a1a2e;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: block;
}
.mm-replica-timeline-card:hover {
    border-color: #0f3460;
    box-shadow: 0 2px 8px rgba(15,52,96,0.15);
}
.mm-replica-timeline-card--active {
    border-color: #0f3460;
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(15,52,96,0.2);
}
.mm-replica-timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f3460;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}
.mm-replica-timeline-title {
    font-size: 0.78rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.3rem;
}
.mm-replica-timeline-meta {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Episode panel */
.mm-replica-episode-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mm-replica-episode-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.mm-replica-episode-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f3460;
    margin: 0;
    line-height: 1.3;
}
.mm-replica-episode-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}
.mm-replica-video-btn {
    background: #dc2626;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.mm-replica-video-btn:hover { background: #b91c1c; color: #fff; }
.mm-replica-episode-source {
    margin-bottom: 1.5rem;
}
.mm-replica-episode-source a {
    font-size: 0.82rem;
    color: #0f3460;
    text-decoration: underline;
}

/* Cases */
.mm-replica-cases-section { margin-bottom: 2rem; }
.mm-replica-case-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mm-replica-case-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}
.mm-replica-distortion-badge {
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.mm-replica-media-name {
    font-weight: 700;
    color: #0f3460;
    font-size: 0.9rem;
}
.mm-replica-journalist-name {
    font-size: 0.82rem;
    color: #6b7280;
}
.mm-replica-gravedad {
    margin-left: auto;
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
}
.mm-replica-case-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.mm-replica-claim {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
}
.mm-replica-claim-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #dc2626;
    margin-bottom: 0.4rem;
}
.mm-replica-claim-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1f2937;
}
.mm-replica-claim-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    border-bottom: 1px dashed #dc2626;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}
.mm-replica-claim-link:hover {
    color: #b91c1c;
    border-bottom-color: #b91c1c;
}
.mm-replica-rebuttal {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
}
.mm-replica-rebuttal-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #16a34a;
    margin-bottom: 0.3rem;
}
.mm-replica-rebuttal-type {
    font-size: 0.72rem;
    color: #15803d;
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.mm-replica-rebuttal-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #1f2937;
}
.mm-replica-dato-oficial-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #15803d;
    text-decoration: none;
    border-bottom: 1px dashed #15803d;
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}
.mm-replica-dato-oficial-link:hover {
    color: #166534;
    border-bottom-color: #166534;
}
.mm-replica-case-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 1.5rem;
}
.mm-replica-case-footer a {
    font-size: 0.8rem;
    color: #0f3460;
    text-decoration: underline;
}

/* No cases */
.mm-replica-no-cases {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.mm-replica-no-cases p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Key sentences */
.mm-replica-key-sentences-section { margin-bottom: 2rem; }
.mm-replica-key-sentences-list {
    display: grid;
    gap: 0.5rem;
}
.mm-replica-key-sentence {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 0.6rem 0.9rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #422006;
}

/* Transcript */
.mm-replica-transcript-section { margin-top: 1.5rem; }
.mm-replica-transcript-section summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f3460;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}
.mm-replica-transcript-text {
    max-height: 500px;
    overflow-y: auto;
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
}

/* Empty state */
.mm-replica-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

/* Related articles per case */
.mm-replica-case-articles {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}
.mm-replica-articles-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}
.mm-replica-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.3rem;
}
.mm-replica-articles-list li {
    font-size: 0.82rem;
    line-height: 1.4;
}
.mm-replica-articles-list a {
    color: #0f3460;
    text-decoration: underline;
}
.mm-replica-article-date {
    color: #9ca3af;
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

/* Accusation history table */
.mm-replica-accusation-history-section { margin-bottom: 2rem; }
.mm-replica-accusation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.mm-replica-accusation-table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    background: #f3f4f6;
    color: #374151;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
}
.mm-replica-accusation-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}
.mm-replica-accusation-media { font-weight: 600; color: #1f2937; }
.mm-replica-accusation-count { text-align: center; font-weight: 700; color: #dc2626; }
.mm-replica-distortion-badge--sm { font-size: 0.65rem; padding: 0.1rem 0.4rem; margin-right: 0.2rem; }
.mm-replica-accusation-date { color: #6b7280; white-space: nowrap; }

/* Filter bar */
.mm-replica-filter-bar {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.mm-replica-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}
.mm-replica-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.mm-replica-filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}
.mm-replica-filter-group select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
}
.mm-replica-period-btns {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.mm-replica-period-btn {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    background: #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.15s;
}
.mm-replica-period-btn:hover { background: #d1d5db; color: #0f3460; }
.mm-replica-period-btn.active {
    background: #0f3460;
    color: #fff;
}
.mm-replica-filter-btn {
    padding: 0.4rem 1rem;
    background: #0f3460;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .mm-replica-hero { padding: 1.5rem 1rem; }
    .mm-replica-hero h1 { font-size: 1.5rem; }
    .mm-replica-kpis { flex-direction: column; }
    .mm-replica-kpi { min-width: auto; }
    .mm-replica-case-body { grid-template-columns: 1fr; }
    .mm-replica-episode-header { flex-direction: column; }
}
