/* news-rumors.css - Stili specifici pagina news rumors */

/* =============================================
   AMBER COLOR VARIABLES
============================================= */
:root {
    --page-accent: #f59e0b;
    --page-accent-dark: #d97706;
    --page-accent-darker: #b45309;
    --page-accent-bg: #fffbeb;
    --page-accent-bg2: #fef3c7;
    --page-accent-shadow: rgba(245, 158, 11, 0.28);
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;

    /* Il gradiente "incertezza/speculazione" per rumors - più soft */
    --hero-rumor: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,184,77,0.18) 0%, transparent 50%),
                  radial-gradient(ellipse 60% 80% at 20% 50%, rgba(245,166,35,0.10) 0%, transparent 50%),
                  linear-gradient(to bottom, #fffdf7, #fff8e8, #ffefcc);
}

/* =============================================
   BADGE — PILL AMBER (override del badge rettangolare condiviso)
============================================= */
.article-type-badge.t-rum {
    background: #fef3c7;
    color: #d97706;
}

/* =============================================
   READING PROGRESS — AMBER OVERRIDE
============================================= */
.reading-progress {
    background: var(--amber-500);
}

/* =============================================
   NEWSLETTER — AMBER OVERRIDES
============================================= */
.nl-banner::before {
    background: var(--amber-500);
}

.nl-icon {
    color: var(--amber-500);
}

.nl-input:focus {
    border-color: var(--amber-500);
    background: var(--white);
}

.nl-btn {
    background: var(--amber-500);
}

.nl-btn:hover {
    background: var(--amber-600);
}

.newsletter-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 32px;
}

/* MAIN LAYOUT — usa .page grid da article.css */

/* =============================================
   HERO — RUMOR STYLE
============================================= */
.hero {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero-visual {
    background: var(--hero-rumor);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rumor-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--amber-500);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-body {
    padding: 28px 32px 32px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 560px;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-icon {
    width: 16px;
    height: 16px;
    fill: var(--gray-400);
    flex-shrink: 0;
}

/* =============================================
   QUICK SPECS - con contenitore esterno
============================================= */
.specs-container {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 8px;
}

.specs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.spec-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.2s ease;
}

/* Shadow hover pre-renderizzata: anima solo opacity */
.spec-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.spec-card:hover {
    transform: translateY(-2px);
}

.spec-card:hover::after {
    opacity: 1;
}

.spec-icon {
    margin-bottom: 12px;
    opacity: 0.9;
}

.spec-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

/* =============================================
   SCORE AFFIDABILITA — APPLE HEALTH STYLE
============================================= */
.score-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.score-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.score-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Variante etichetta (7 lug 2026): "Molto probabile" al posto del numerone % —
   taglia ridotta per non sbordare, resta il peso da verdetto. */
.score-value--label {
    font-size: 1.5rem;
    text-align: right;
}

.score-value.low {
    color: var(--red-500);
}

.score-value.medium {
    color: var(--amber-500);
}

.score-value.high {
    color: var(--green-500);
}

.score-bar-container {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.score-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.score-bar.low {
    background: var(--red-500);
}

.score-bar.medium {
    background: var(--amber-500);
}

.score-bar.high {
    background: var(--green-500);
}

.score-verdict {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-align: center;
}

/* =============================================
   CONTENT CARD
============================================= */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 24px;
}

/* =============================================
   PROSE
============================================= */
.prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--gray-600);
}

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

.prose p:last-child {
    margin-bottom: 0;
}

.prose strong {
    color: var(--gray-900);
    font-weight: 600;
}

.prose .data {
    font-weight: 700;
    color: var(--gray-900);
}

/* =============================================
   MATRICE PROVE — HORIZONTAL BARS
============================================= */
.matrix-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.matrix-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.matrix-dimension {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.matrix-score {
    font-size: 0.875rem;
    font-weight: 700;
}

.matrix-score.low {
    color: var(--red-500);
}

.matrix-score.medium {
    color: var(--amber-500);
}

.matrix-score.high {
    color: var(--green-500);
}

.matrix-bar-container {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.matrix-bar {
    height: 100%;
    border-radius: 4px;
}

.matrix-bar.low {
    background: var(--red-500);
}

.matrix-bar.medium {
    background: var(--amber-500);
}

.matrix-bar.high {
    background: var(--green-500);
}

.matrix-explanation {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* Warnings integrati nella matrice */
.matrix-warnings {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.matrix-warnings-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.matrix-warnings-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.matrix-warnings-list li {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

.matrix-warnings-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

/* =============================================
   TIMELINE
============================================= */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-step {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--amber-50);
    border: 2px solid var(--amber-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--amber-500);
    flex-shrink: 0;
}

.timeline-step.final .timeline-dot {
    background: var(--green-50);
    border-color: var(--green-400);
    color: var(--green-500);
}

.timeline-step.final .timeline-date {
    color: var(--green-500);
}

.timeline-body {
    flex: 1;
    padding-top: 4px;
}

.timeline-event {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.timeline-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--amber-500);
    margin-bottom: 4px;
}

.timeline-note {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* =============================================
   ACTION CARDS (ASPETTA / COMPRA)
============================================= */
.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.action-box {
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.action-box.wait {
    background: var(--amber-50);
}

.action-box.buy {
    background: var(--green-50);
}

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

.action-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.action-box.wait .action-label {
    color: var(--amber-600);
}

.action-box.buy .action-label {
    color: var(--green-600);
}

.action-list {
    list-style: none;
}

.action-list li {
    font-size: 0.875rem;
    color: var(--gray-600);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.action-list li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

/* =============================================
   VERDETTO — BIANCO CON BORDO AMBER
============================================= */
.verdict {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--amber-500);
}

.verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--amber-50);
    color: var(--amber-600);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.verdict-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.verdict-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 500px;
}

.verdict-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--amber-500);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.verdict-cta:hover {
    background: var(--amber-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =============================================
   POLL — APPLE HEALTH STYLE
============================================= */
.poll {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.poll-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.poll-count {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.poll-options {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.poll-option {
    flex: 1;
    padding: 14px 8px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.poll-option:hover {
    background: var(--gray-200);
}

.poll-option.selected {
    background: var(--amber-500);
    color: var(--white);
}

.poll-option-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.poll-option.selected .poll-option-label {
    color: var(--white);
}

.poll-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.poll-stat-value.hidden {
    opacity: 0;
}

.poll-stat-value {
    transition: opacity 0.5s ease;
}

.poll-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.poll-stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.poll-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.poll-stat-value span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
}

.poll-stat-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.poll-stat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.poll-stat-fill.user {
    background: var(--amber-500);
}

.poll-stat-fill.avg {
    background: var(--gray-300);
}

.poll-insight {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    min-height: 24px;
}

.poll-insight-text {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.5;
    font-weight: 500;
}

.poll-insight-text .poll-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--gray-400);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: poll-blink 0.6s ease infinite;
}

@keyframes poll-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* =============================================
   SIDEBAR — STICKY
============================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

/* Source Tiers */
.source-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.source-info {
    flex: 1;
}

.source-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.source-desc {
    font-size: 0.6875rem;
    color: var(--gray-500);
}

/* Accuracy Ring - Apple Watch style */
.accuracy-ring {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.accuracy-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.accuracy-ring .accuracy-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 4;
}

.accuracy-ring .accuracy-fill {
    fill: none;
    stroke: var(--amber-500);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
}

.accuracy-ring.animated .accuracy-fill {
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4));
}

.accuracy-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--gray-700);
}

/* Related Items */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 12px;
    margin: -12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.related-item:hover {
    background: var(--gray-50);
}

.related-item:hover .related-title {
    color: var(--amber-600);
}

.related-thumb {
    width: 96px;
    height: 68px;
    background: var(--gray-50);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    overflow: hidden;
}

.related-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.related-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.reliability-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reliability-dot.high {
    background: var(--green-500);
}

.reliability-dot.medium {
    background: var(--amber-500);
}

.reliability-dot.low {
    background: var(--red-500);
}

.reliability-label {
    font-weight: 500;
}

/* Newsletter Mini (sidebar) */
.newsletter-mini {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: var(--white);
}

.newsletter-mini-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-mini-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.5;
}

.newsletter-mini input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 10px;
    font-family: inherit;
}

.newsletter-mini input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-mini input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-mini button {
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: var(--gray-900);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.newsletter-mini button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile nav: usa --page-accent dal condiviso */

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
    .main {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .main {
        padding: 20px;
    }

    .hero-body {
        padding: 24px;
    }

    .hero-title {
        font-size: 1.375rem;
    }

    .specs-row {
        grid-template-columns: 1fr;
    }

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

    .poll-options {
        flex-wrap: wrap;
    }

    .poll-option {
        flex: 1 1 calc(50% - 4px);
    }

    .sidebar {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .card,
    .score-card,
    .poll {
        padding: 24px;
    }

    .newsletter-section {
        padding: 0 40px 20px;
    }

    /* Disabilita hover effects su touch */
    .rumor-card-image::after {
        display: none;
    }
}
