/* ========================================
   STELLARVIEW - RESOURCES & REPORTS
   ======================================== */

.pro-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, var(--bg-subtle) 0%, #fff 100%);
    border: 1px dashed var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    text-decoration: none;
}

.pro-trigger:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.pro-trigger .material-symbols-outlined {
    font-size: 16px;
    color: var(--primary-color);
}

.pro-trigger strong {
    color: var(--primary-color);
    font-weight: 700;
}

.report-main {
    overflow-x: hidden;
    width: 100%;
}

.report-hero {}

.report-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--primary-color);
}

.report-title-area {
    max-width: 800px;
}

.report-title-area h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

.report-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 400;
}

.report-intro-card {
    background-color: var(--bg-subtle);
    padding: var(--spacing-xl);
    border-radius: 0;
    border-left: 4px solid var(--primary-color);
    margin: var(--spacing-2xl) 0;
}

.report-intro-card p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Visualization Grid */
.viz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.analysis-grid {
    grid-template-columns: 1fr 2fr;
}

.viz-card {
    background: var(--bg-card);
    border: 1px dashed var(--border-light);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-ambient);
    transition: all var(--transition-smooth);
    position: relative;
}

.viz-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity var(--transition-base);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='6' height='6' fill='%23fc6721'%3E%3Cpath d='M7 0h2v16H7z'/%3E%3Cpath d='M0 7h16v2H0z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='6' height='6' fill='%23fc6721'%3E%3Cpath d='M7 0h2v16H7z'/%3E%3Cpath d='M0 7h16v2H0z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='6' height='6' fill='%23fc6721'%3E%3Cpath d='M7 0h2v16H7z'/%3E%3Cpath d='M0 7h16v2H0z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='6' height='6' fill='%23fc6721'%3E%3Cpath d='M7 0h2v16H7z'/%3E%3Cpath d='M0 7h16v2H0z'/%3E%3C/svg%3E");
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
}

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

.viz-card:hover {
    box-shadow: var(--shadow-ambient);
    border-color: var(--primary-color);
}

.viz-card.span-2 {
    grid-column: span 2;
}

.viz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.viz-card-header h3 {
    font-size: 20px;
    margin: 0;
}

.viz-tabs {
    display: flex;
    gap: var(--spacing-sm);
}

.viz-tab {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    cursor: default;
    white-space: nowrap;
}

.viz-tab.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Treemap Style */
.treemap-viz {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    height: 400px;
    width: 100%;
}

.treemap-item {
    position: relative;
    padding: var(--spacing-sm);
    color: white;
    overflow: hidden;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.treemap-item:hover {
    filter: brightness(1.1);
}

.treemap-item .label {
    font-weight: 700;
    font-size: 14px;
    display: block;
}

.treemap-item .value {
    font-size: 12px;
    opacity: 0.9;
}

/* Treemap Logo Thumbnails */
.treemap-logo {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    display: block;
    flex-shrink: 0;
}

/* Slot 0: largest tile (2-wide × 4-tall) */
.treemap-logo--slot-0 {
    width: 38px;
    height: 38px;
}

/* Slot 1: 2-wide × 2-tall */
.treemap-logo--slot-1 {
    width: 30px;
    height: 30px;
}

/* Slot 2: 1-wide × 2-tall */
.treemap-logo--slot-2 {
    width: 26px;
    height: 26px;
}

/* Slots 3 & 4: smallest tiles (1-wide × 1-tall) */
.treemap-logo--slot-3,
.treemap-logo--slot-4 {
    width: 20px;
    height: 20px;
}

/* Push label/value down to make room for the logo */
.treemap-item:has(.treemap-logo) .label,
.treemap-item:has(.treemap-logo) .value {
    margin-top: 4px;
    padding-top: 42px;
}

.treemap-item:has(.treemap-logo--slot-1) .label,
.treemap-item:has(.treemap-logo--slot-1) .value {
    padding-top: 36px;
}

.treemap-item:has(.treemap-logo--slot-2) .label,
.treemap-item:has(.treemap-logo--slot-2) .value {
    padding-top: 32px;
}

.treemap-item:has(.treemap-logo--slot-3) .label,
.treemap-item:has(.treemap-logo--slot-3) .value,
.treemap-item:has(.treemap-logo--slot-4) .label,
.treemap-item:has(.treemap-logo--slot-4) .value {
    padding-top: 26px;
}

/* Conic/Donut Chart */
.donut-viz-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.conic-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.conic-chart-inner {
    position: absolute;
    inset: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.conic-chart-inner .main-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

.conic-chart-inner .sub-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.chart-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Bar Chart specific for Reports */
.report-bar-container {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    height: 400px;
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    border-bottom: 2px solid var(--border-light);
    margin-top: auto;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.report-bar-container::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.report-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    height: 100%;
}

.report-bar-fill-wrap {
    flex: 1;
    background: var(--bg-subtle);
    border-radius: 6px 6px 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.report-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transition: height 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -2px 10px rgba(252, 103, 33, 0.15);
}

.report-bar-label {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    min-height: 2.4em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.2;
}

/* Competitor Combat Section */
.combat-section {
    background: #111827;
    color: white;
    padding: var(--spacing-5xl) 0;
    margin: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

.combat-section .subtitle {
    color: var(--primary-color);
}

.combat-section h2 {
    font-size: 42px;
    margin-bottom: var(--spacing-xl);
}

.combat-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-4xl);
    max-width: 1000px;
    margin: var(--spacing-3xl) auto;
}

.combat-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.combat-brand img {
    height: 120px;
    width: auto;
    margin-bottom: var(--spacing-lg);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.combat-brand h4 {
    font-size: 24px;
    margin-bottom: var(--spacing-xs);
}

.combat-brand .stat {
    font-size: 14px;
    opacity: 0.6;
}

.vs-badge {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: white;
    box-shadow: 0 0 40px rgba(252, 103, 33, 0.4);
}

.combat-cta {
    text-align: center;
    margin-top: var(--spacing-3xl);
}

.combat-cta .pro-trigger {
    margin: var(--spacing-md) auto 0;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Updated CTA Section for Grid */
.cta-library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.cta-card.compact {
    padding: var(--spacing-2xl) !important;
    gap: var(--spacing-xl) !important;
}

.cta-card.compact .cta-headline {
    font-size: 24px !important;
}

.cta-card.compact .cta-preview {
    max-height: 200px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .combat-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .vs-badge {
        margin: 0 auto;
    }

    .cta-library-grid {
        grid-template-columns: 1fr;
    }
}

/* Quick Insights Bento Grid */
.bento-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    border: 1px dashed var(--border-light);
    border-radius: 0;
    margin-top: var(--spacing-md);
    background: var(--bg-card);
}

.bento-insight-item {
    padding: var(--spacing-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
    transition: background-color var(--transition-fast);
}

.bento-insight-item.span-full {
    grid-column: span 2;
    border-right: none;
}

.bento-insight-item:nth-child(even),
.bento-insight-item.span-full {
    border-right: none;
}

.bento-insight-item:nth-last-child(-n+2) {
    border-bottom: none;
}

/* Heatmap colored backgrounds based on marker dots */
.bento-insight-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(252, 103, 33, 0.08) 0%, transparent 100%);
    /* Primary Orange */
}

.bento-insight-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(75, 32, 146, 0.06) 0%, transparent 100%);
    /* Purple */
}

.bento-insight-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(30, 179, 230, 0.06) 0%, transparent 100%);
    /* Blue */
}

/* Hover intensities */
.bento-insight-item:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(252, 103, 33, 0.15) 0%, rgba(252, 103, 33, 0.02) 100%);
}

.bento-insight-item:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(75, 32, 146, 0.12) 0%, rgba(75, 32, 146, 0.02) 100%);
}

.bento-insight-item:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(30, 179, 230, 0.12) 0%, rgba(30, 179, 230, 0.02) 100%);
}

.bento-insight-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
}

.bento-insight-value {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
}

.bento-insight-item.span-full .bento-insight-value {
    font-size: 28px;
    color: var(--primary-color);
}

/* Gender Split Bar */
.gender-split-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
}

.gender-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.gender-label-group {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.gender-bar-wrap {
    height: 12px;
    background: #eef2f3;
    border-radius: var(--radius-full);
    display: flex;
    overflow: hidden;
}

.gender-bar-male {
    background: var(--gender-male-color, #1eb3e6);
    height: 100%;
    transition: width 1s ease-out;
}

.gender-bar-female {
    background: var(--gender-female-color, #fc6721);
    height: 100%;
    transition: width 1s ease-out;
}

/* USP Leaderboard */
.usp-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.usp-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm);
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease;
}

.usp-item-row:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: var(--shadow-sm);
}

.usp-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.usp-reach-badge {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 800;
}

/* Ad Analysis Table */
.ad-table-container {
    margin-top: var(--spacing-md);
    overflow-x: auto;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    max-height: 500px;
    overflow-y: auto;
    box-shadow: var(--shadow-ambient);
    border: 1px solid var(--border-lighter);
}

.ad-analysis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ad-analysis-table th {
    text-align: left;
    padding: var(--spacing-md) var(--spacing-lg);
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--border-lighter);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ad-analysis-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-lighter);
    vertical-align: middle;
    font-weight: 600;
    color: var(--text-primary);
    transition: background-color var(--transition-fast);
}

.ad-analysis-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.ad-analysis-table tr:hover td {
    background-color: #f8f9fa;
}

.ad-content-cell {
    max-width: 400px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

.reach-badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Search & Filter Bar */
.viz-filter-bar {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    background: var(--bg-subtle);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    min-width: 200px;
}

.filter-select:focus {
    border-color: var(--primary-color);
}

.prop-leader-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 12px;
}

/* Responsive Viz */
@media (max-width: 1024px) {

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

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .container {
        padding: 0 var(--spacing-lg);
        max-width: 100%;
        overflow-x: hidden;
    }

    .viz-grid,
    .analysis-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl) !important;
        margin: var(--spacing-xl) 0;
        width: 100%;
    }

    .report-hero,
    .viz-section,
    .prop-hunt-section {
        padding: 0;
    }

    /* Restore breathing room below the navbar on mobile */
    .report-hero {
        padding-top: var(--spacing-3xl);
    }

    .viz-card.span-2,
    .viz-card.span-3 {
        grid-column: span 1 !important;
        width: 100%;
    }

    .report-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .report-title-area h1 {
        font-size: 32px;
    }

    .report-subtitle {
        font-size: 16px;
    }

    .treemap-viz {
        height: auto;
        min-height: 400px;
        /* Keep grid structure but adjust for mobile proportions */
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: repeat(8, 50px) !important;
        gap: 6px !important;
    }

    .treemap-item {
        width: 100% !important;
        min-height: auto !important;
        padding: var(--spacing-sm) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    /* Slot 0: Leader (4 wide x 3 tall) */
    .treemap-item:nth-child(1) {
        grid-column: span 4 !important;
        grid-row: span 3 !important;
        justify-content: center !important;
    }

    /* Slot 1: Challenger (4 wide x 2 tall) */
    .treemap-item:nth-child(2) {
        grid-column: span 4 !important;
        grid-row: span 2 !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        justify-content: flex-start !important;
    }

    /* Slot 2: Tier 3 (2 wide x 2 tall) */
    .treemap-item:nth-child(3) {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
    }

    /* Slots 3 & 4: Small players (2 wide x 1 tall each) */
    .treemap-item:nth-child(4),
    .treemap-item:nth-child(5) {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    .treemap-item .label {
        font-size: 12px !important;
        line-height: 1.2 !important;
        padding-top: 0 !important;
    }

    .treemap-item .value {
        font-size: 11px !important;
        padding-top: 0 !important;
    }

    /* Adjust logo positioning for vertical stacking on mobile */
    .treemap-logo {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 4px !important;
        flex-shrink: 0 !important;
    }

    .treemap-item:nth-child(2) .treemap-logo,
    .treemap-item:nth-child(4) .treemap-logo,
    .treemap-item:nth-child(5) .treemap-logo {
        margin-bottom: 0 !important;
    }

    .treemap-item:has(.treemap-logo) .label,
    .treemap-item:has(.treemap-logo) .value,
    .treemap-item:has(.treemap-logo--slot-1) .label,
    .treemap-item:has(.treemap-logo--slot-1) .value,
    .treemap-item:has(.treemap-logo--slot-2) .label,
    .treemap-item:has(.treemap-logo--slot-2) .value,
    .treemap-item:has(.treemap-logo--slot-3) .label,
    .treemap-item:has(.treemap-logo--slot-3) .value,
    .treemap-item:has(.treemap-logo--slot-4) .label,
    .treemap-item:has(.treemap-logo--slot-4) .value {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .report-bar-container {
        gap: var(--spacing-md);
        height: 240px;
        padding-bottom: 60px;
        /* Space for tilted labels */
    }

    .report-bar-label {
        font-size: 10px;
        transform: rotate(-45deg);
        transform-origin: top right;
        white-space: nowrap;
        margin-top: 15px;
        width: 40px;
        position: relative;
        left: 10px;
    }

    .report-bar-item {
        min-width: 60px;
        flex: 0 0 60px;
    }

    .conic-chart {
        width: 180px;
        height: 180px;
    }

    .conic-chart-inner {
        inset: 30px;
    }

    .conic-chart-inner .main-value {
        font-size: 24px;
    }

    .report-intro-card {
        padding: var(--spacing-lg);
        margin: var(--spacing-xl) 0;
    }

    .report-intro-card p {
        font-size: 16px;
    }

    .viz-card {
        padding: var(--spacing-lg);
        width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .report-title-area h1 {
        font-size: 26px;
    }

    .viz-card-header h3 {
        font-size: 18px;
    }

    .viz-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .chart-legend {
        grid-template-columns: 1fr;
    }

    .treemap-item {
        width: 100%;
    }

    .report-bar-container {
        padding-left: 20px;
    }
}

/* ========================================
   REPORT CTA PREVIEW
   ======================================== */
.report-cta {
    display: flex;
    align-items: center;
    text-align: left !important;
    gap: var(--spacing-4xl);
    padding: var(--spacing-4xl) !important;
}

.report-cta .cta-content {
    flex: 1.2;
    z-index: 2;
}

.report-cta .cta-preview {
    flex: 1;
    position: relative;
    z-index: 1;
}

.preview-spread {
    position: relative;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Flat scale on hover */
.report-cta:hover .preview-spread {
    transform: scale(1.06);
}

.preview-spread img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6));
    border-radius: 4px;
}

/* Background decorative element */
.cta-preview::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .report-cta {
        flex-direction: column !important;
        text-align: center !important;
        padding: var(--spacing-3xl) var(--spacing-xl) !important;
        gap: var(--spacing-3xl);
    }

    .preview-spread {
        max-width: 440px;
        margin: 0 auto;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .report-cta:hover .preview-spread {
        transform: scale(1.04);
    }

    .cta-preview::before {
        width: 100%;
        height: 100%;
    }
}

/* Pulse Card - Industry Status */
.pulse-card {
    background: white;
    color: var(--text-primary);
    justify-content: space-between;
    overflow: hidden;
}

.pulse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Dashed grid lines */
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        /* Dotted grid lines overlay */
        radial-gradient(circle, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 25px 25px;
    opacity: 0.8;
    pointer-events: none;
}

.pulse-card .viz-card-header h3 {
    color: var(--text-primary);
}

.pulse-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--spacing-xl) 0;
}

.pulse-radar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.pulse-radar::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), transparent 60%);
    animation: radar-spin 4s linear infinite;
    mask: radial-gradient(circle, transparent 50%, black 51%);
    -webkit-mask: radial-gradient(circle, transparent 50%, black 51%);
}

.pulse-radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--primary-color);
}

@keyframes radar-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pulse-metrics {
    text-align: center;
    z-index: 2;
}

.pulse-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 4px;
}

.pulse-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-secondary);
}

.pulse-cta {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.pulse-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: white;
}

/* ========================================
   CONTINUE READING / BLOG CARDS
   ======================================== */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.blog-card {
    background: var(--bg-card);
    border: 1px dashed var(--border-light);
    overflow: hidden;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: var(--shadow-ambient);
}

.blog-card::after {
    content: '';
    position: absolute;
    inset: 8px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity var(--transition-base);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='6' height='6' fill='%23fc6721'%3E%3Cpath d='M7 0h2v16H7z'/%3E%3Cpath d='M0 7h16v2H0z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='6' height='6' fill='%23fc6721'%3E%3Cpath d='M7 0h2v16H7z'/%3E%3Cpath d='M0 7h16v2H0z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='6' height='6' fill='%23fc6721'%3E%3Cpath d='M7 0h2v16H7z'/%3E%3Cpath d='M0 7h16v2H0z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='6' height='6' fill='%23fc6721'%3E%3Cpath d='M7 0h2v16H7z'/%3E%3Cpath d='M0 7h16v2H0z'/%3E%3C/svg%3E");
    background-position: top left, top right, bottom left, bottom right;
    background-repeat: no-repeat;
}

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

.blog-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-subtle);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: var(--spacing-xl);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.blog-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.continue-reading-section {}

@media (max-width: 768px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Uniform Section and Container Backgrounds for Resources */
.report-main>section {
    background-color: var(--border-lighter) !important;
    /* grey background outside */
    border-bottom: 1px solid var(--border-light);
}

.report-main>section>.container {
    background-color: #ffffff !important;
    /* white background inside */
    padding: var(--spacing-2xl) var(--spacing-3xl);
    /* Inner padding for the "box" look */
    box-shadow: var(--shadow-sm);
    /* Slight rounding for the premium feel */
}

/* Specific resets for sections that shouldn't have the double padding effect or special layouts */
.report-hero {

    /* More breathing room at top */
}

@media (max-width: 768px) {
    .report-main>section {}

    .report-main>section>.container {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}