/* ===========================================
   MARKET INSIGHTS STYLES
   =========================================== */

/* Insights Hero Section */
.lr-hero--insights {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
}

.lr-hero__content-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
}

.lr-hero__content-center h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lr-hero__content-center .lr-lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* Disclaimer Banner */
.lr-disclaimer {
    background: linear-gradient(135deg, #fffbea 0%, #fff9e6 100%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 0;
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.75;
    border-radius: 0.5rem;
}

.lr-disclaimer strong {
    color: #92400e;
    font-weight: 600;
}

/* Filters Section */
.lr-insights-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.lr-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lr-filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lr-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lr-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Insight Card - Featured */
.lr-insight-card--featured {
    display: block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.lr-insight-card--featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.lr-insight-card__content {
    padding: 2rem;
}

.lr-insight-card__content h3 {
    color: #111827;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.lr-insight-card__content .lr-text {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lr-insight-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(249, 250, 251, 0.8);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.lr-updated {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Metrics Display */
.lr-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.lr-metric-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.lr-metric-chip span {
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.lr-metric-chip strong {
    font-size: 1.5rem;
    font-weight: 700;
}

.lr-metric-chip--positive {
    border-color: rgba(16, 185, 129, 0.3);
}

.lr-metric-chip--positive strong {
    color: #059669;
}

.lr-metric-chip--negative {
    border-color: rgba(239, 68, 68, 0.3);
}

.lr-metric-chip--negative strong {
    color: #dc2626;
}

.lr-metric-chip--neutral {
    border-color: rgba(107, 114, 128, 0.3);
}

.lr-metric-chip--neutral strong {
    color: #4b5563;
}

/* Insights Grid */
.lr-grid--insights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.lr-insight-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.lr-insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.lr-insight-card h4 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lr-insight-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Modal */
.lr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.lr-modal__content {
    background: white;
    border-radius: 1rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lr-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.lr-modal__header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.lr-modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
}

.lr-modal__close:hover {
    color: #111827;
}

.lr-modal__body {
    padding: 2rem;
}

/* Breadcrumb */
.lr-breadcrumb {
    padding: 1.5rem 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.lr-breadcrumb nav {
    font-size: 0.875rem;
    color: #6b7280;
}

.lr-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lr-breadcrumb a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.lr-breadcrumb span {
    color: #111827;
    font-weight: 600;
}

/* Insight Detail Header */
.lr-insight-detail-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.lr-insight-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Metric Cards */
.lr-metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.lr-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.lr-metric-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.lr-metric-card__icon--positive {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.lr-metric-card__icon--negative {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.lr-metric-card__icon--neutral {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.lr-metric-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lr-metric-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1;
}

.lr-metric-value--positive {
    color: #059669;
}

.lr-metric-value--negative {
    color: #dc2626;
}

.lr-metric-value--neutral {
    color: #4b5563;
}

/* Interpretation Section */
.lr-interpretation ul {
    list-style: none;
    padding: 0;
}

.lr-interpretation li {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    line-height: 1.75;
    color: #374151;
}

.lr-interpretation li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

.lr-interpretation strong {
    color: #111827;
    font-weight: 600;
}

/* FAQ Grid */
.lr-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.lr-faq-item {
    display: block;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border-radius: 0.75rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lr-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.lr-faq-item h4 {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.lr-faq-item p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .lr-hero--insights {
        padding: 4rem 0 3rem;
    }

    .lr-hero__content-center h1 {
        font-size: 2rem;
    }

    .lr-insights-filters {
        grid-template-columns: 1fr;
    }

    .lr-grid--insights {
        grid-template-columns: 1fr;
    }

    .lr-grid--cols3 {
        grid-template-columns: 1fr !important;
    }

    .lr-metrics {
        flex-direction: column;
    }

    .lr-metric-chip {
        width: 100%;
    }

    .lr-insight-detail-header h1 {
        font-size: 1.75rem;
    }

    .lr-metric-value {
        font-size: 2.5rem;
    }

    .lr-faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   MARKET TREND REPORT STYLES
   =========================================== */

/* Report Header */
.lr-report-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 4rem 0 3rem;
    color: #ffffff;
}

.lr-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.lr-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lr-badge--info {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
}

.lr-badge--data {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #1e3a8a;
}

.lr-badge--ai {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    color: #4c1d95;
}

.lr-report-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lr-report-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.lr-report-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.lr-report-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.lr-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.lr-value {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.lr-report-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Report Body */
.lr-report-body {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #374151;
}

.lr-report-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #e5e7eb;
}

.lr-report-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.lr-report-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem;
}

.lr-report-body p {
    margin-bottom: 1.25rem;
    color: #4b5563;
    font-size: 1rem;
}

.lr-report-body strong {
    font-weight: 600;
    color: #111827;
}

.lr-report-body ul,
.lr-report-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.lr-report-body li {
    margin-bottom: 0.75rem;
    color: #4b5563;
    line-height: 1.75;
}

.lr-report-body hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 3rem 0;
}

.lr-report-body blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.lr-report-body code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.lr-report-body pre {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.lr-report-body pre code {
    background: none;
    padding: 0;
    color: #374151;
}

.lr-loading {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    font-size: 1.125rem;
}

/* Revision History */
.lr-revision-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lr-revision-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.lr-revision-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.lr-revision-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.lr-revision-version {
    font-size: 0.875rem;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.lr-revision-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.lr-revision-changes {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.lr-revision-editor {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
}

/* Copy Notification */
.lr-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10b981;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive - Report */
@media (max-width: 768px) {
    .lr-report-header {
        padding: 3rem 0 2rem;
    }

    .lr-report-header h1 {
        font-size: 1.75rem;
    }

    .lr-report-subtitle {
        font-size: 1rem;
    }

    .lr-report-info {
        flex-direction: column;
        gap: 1rem;
    }

    .lr-report-actions {
        flex-direction: column;
    }

    .lr-report-actions .lr-btn {
        width: 100%;
    }

    .lr-report-body h2 {
        font-size: 1.5rem;
    }

    .lr-report-body h3 {
        font-size: 1.25rem;
    }

    .lr-notification {
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}