/**
 * Speech History Cards - Minimalist Design with Color Bars (Variant 4)
 * Clean minimal design with subtle color separators
 * 
 * @package ITX_Economic_Calendar
 * @version 2.6.10
 */

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.itx-ec-speech-history-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ==========================================================================
   SPEECH CARD - MINIMALIST DESIGN
   ========================================================================== */

.speech-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.speech-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* HEADER - Minimal */
.speech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
}

.date-icon {
    font-size: 16px;
}

.date-text {
    white-space: nowrap;
}

.card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tone-badge,
.reaction-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    color: #6B7280;
}

.tone-badge.hawkish {
    background: #FFF5E6;
    border-color: #FFD9A3;
    color: #E87722;
}

.tone-badge.dovish {
    background: #E3F2FD;
    border-color: #90CAF9;
    color: #1976D2;
}

.tone-badge.neutral {
    background: #F9FAFB;
    border-color: #E5E7EB;
    color: #6B7280;
}

.reaction-badge.positive {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #059669;
}

.reaction-badge.negative {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.reaction-badge.neutral {
    background: #F9FAFB;
    border-color: #E5E7EB;
    color: #9CA3AF;
}

/* SPEAKER - Minimal */
.speech-card-speaker {
    margin-bottom: 12px;
}

.speaker-icon {
    display: none; /* Hide icon in minimalist design */
}

.speaker-name {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.5;
}

/* TOPIC - Minimal */
.speech-card-topic {
    margin-bottom: 16px;
}

.topic-icon {
    display: none; /* Hide icon in minimalist design */
}

.topic-text {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.6;
}

/* VALUES - Minimal with separator */
.speech-card-values {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.values-icon {
    display: none; /* Hide icon in minimalist design */
}

.values-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
}

.value-prev {
    color: #9CA3AF;
    text-decoration: line-through;
    font-weight: 500;
}

.value-arrow {
    color: #D1D5DB;
    font-weight: 600;
}

.value-pub {
    color: #1F2937;
    font-size: 15px;
    font-weight: 700;
}

.value-forecast {
    color: #6B7280;
    font-size: 12px;
    font-style: italic;
}

/* KEY POINTS - Minimal with separator */
.speech-card-key-points {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.key-points-icon {
    display: none; /* Hide icon in minimalist design */
}

.key-points-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.key-point-item {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    padding-left: 0;
}

.key-point-item::before {
    content: '•';
    color: #9CA3AF;
    margin-right: 8px;
}

/* MARKET IMPACT - Minimal with separator */
.speech-card-impact {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.impact-icon {
    display: none; /* Hide icon in minimalist design */
}

.impact-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}

/* SOURCES - Minimal */
.speech-card-sources {
    margin-top: 8px;
}

.sources-icon {
    display: none; /* Hide icon in minimalist design */
}

.sources-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: #4B5563;
    transition: all 0.2s ease;
}

.source-link:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
    color: #1F2937;
    text-decoration: none;
}

.source-link.video {
    color: #DC2626;
}

.source-link.pdf {
    color: #2563EB;
}

.source-link.web {
    color: #059669;
}

.link-icon {
    font-size: 14px;
}

.link-text {
    font-size: 12px;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.speech-history-empty {
    text-align: center;
    padding: 40px 24px;
    color: #9CA3AF;
    font-size: 14px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px dashed #E5E7EB;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .speech-card {
        padding: 14px;
    }
    
    .speech-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-badges {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .itx-ec-speech-history-cards {
        gap: 12px;
        margin-top: 16px;
    }
    
    .speech-card {
        padding: 12px;
        border-radius: 6px;
    }
    
    .card-date {
        font-size: 13px;
    }
    
    .tone-badge,
    .reaction-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .speaker-name {
        font-size: 13px;
    }
    
    .topic-text {
        font-size: 12px;
    }
    
    .value-pub {
        font-size: 14px;
    }
    
    .key-point-item,
    .impact-text {
        font-size: 12px;
    }
    
    .source-link {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .link-text {
        display: none;
    }
    
    .link-icon {
        font-size: 16px;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.speech-card:focus-within {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

.source-link:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   ANIMATIONS - Subtle
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.speech-card {
    animation: fadeIn 0.3s ease-out;
}
