/**
 * AI Reports - Dedicated Styles
 *
 * Styles dla raportów AI Visibility Analysis i AI Content Analysis
 *
 * @package non
 */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

.ai-report {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background: #F9FAFB;
}

.ai-report * {
    box-sizing: border-box;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.report-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.report-with-sidebar {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

/* ========================================
   SECTIONS
   ======================================== */

.report-section {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 60px 40px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .report-section {
        padding: 40px 24px;
    }
}

.report-section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.report-section-header {
    margin-bottom: 40px;
    text-align: center;
}

.report-section-subtitle {
    font-size: 18px;
    color: #6B7280;
    margin-top: 12px;
}

/* ========================================
   COVER PAGE
   ======================================== */

.report-cover {
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.report-header {
    margin-bottom: 60px;
}

.report-logo {
    height: 40px;
    width: auto;
}

.report-cover-title {
    margin-bottom: 60px;
}

.report-subtitle {
    font-size: 20px;
    color: #6B7280;
    margin-top: 16px;
    font-weight: 400;
}

.report-cover-info {
    margin: 60px 0;
}

.report-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    text-align: left;
}

.report-info-item {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
}

.report-info-label {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.report-info-value {
    font-size: 18px;
    color: #1F2937;
    font-weight: 600;
}

.report-info-url {
    word-break: break-all;
    font-size: 16px;
}

.report-screenshot {
    margin: 60px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.report-screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

.report-cover-footer {
    margin-top: auto;
    padding-top: 40px;
}

/* ========================================
   CARDS
   ======================================== */

.report-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.report-card:last-child {
    margin-bottom: 0;
}

.report-card h3,
.report-card h4 {
    margin-bottom: 24px;
    color: #1F2937;
}

/* ========================================
   BRAND MATCH
   ======================================== */

.brand-match {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #5716F7;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.brand-status-success {
    background: #ECFDF5;
    color: #065F46;
}

.brand-status-warning {
    background: #FEF3C7;
    color: #92400E;
}

/* ========================================
   AI VISIBILITY GRID
   ======================================== */

.ai-visibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.ai-system-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.ai-system-item.is-visible {
    border-color: #22C55E;
    background: #F0FDF4;
}

.ai-system-item.is-not-visible {
    border-color: #EF4444;
    background: #FEF2F2;
}

.ai-system-icon {
    margin-bottom: 12px;
}

.ai-system-name {
    font-weight: 600;
    color: #1F2937;
    text-align: center;
    margin-bottom: 8px;
}

.ai-system-status {
    font-size: 14px;
    color: #6B7280;
}

/* ========================================
   TRAFFIC COMPARISON
   ======================================== */

.traffic-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.traffic-item {
    padding: 24px;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
}

.traffic-item-organic {
    background: #F0F9FF;
    border-color: #3B82F6;
}

.traffic-item-ai {
    background: #F0FDF4;
    border-color: #22C55E;
}

.traffic-label {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 8px;
}

.traffic-value {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
}

.traffic-percentage {
    font-size: 14px;
    color: #6B7280;
}

/* ========================================
   TABLES
   ======================================== */

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.report-table thead th {
    background: #F9FAFB;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #E5E7EB;
    font-size: 14px;
}

.report-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 14px;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

.report-table tbody tr:hover {
    background: #F9FAFB;
}

.llm-name {
    font-weight: 600;
    color: #1F2937;
}

.change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-left: 8px;
}

.change-up {
    color: #22C55E;
}

.change-down {
    color: #EF4444;
}

.change-neutral {
    color: #94A3B8;
}

/* ========================================
   PROMPTS
   ======================================== */

.prompts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prompt-item {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.prompt-header {
    margin-bottom: 12px;
}

.prompt-text {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 8px;
}

.prompt-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6B7280;
}

.prompt-llm {
    padding: 4px 8px;
    background: #5716F7;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.prompt-volume {
    font-weight: 500;
}

.prompt-answer p {
    color: #374151;
    margin-bottom: 12px;
}

.prompt-expand {
    background: none;
    border: none;
    color: #5716F7;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    padding: 0;
}

.prompt-links {
    margin-top: 12px;
    font-size: 14px;
}

.prompt-links ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.prompt-links li {
    margin-bottom: 4px;
}

/* Split prompt layout (1/3 position, 2/3 content) */
.prompt-item-split {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.prompt-position {
    flex: 0 0 calc(33.333% - 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.position-label {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5716F7 0%, #7C3AED 100%);
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(87, 22, 247, 0.2);
}

.position-links {
    width: 100%;
    text-align: center;
}

.links-expand-all {
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.links-expand-all:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
    color: #374151;
}

.linked-pages-list {
    margin-top: 8px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    text-align: left;
}

.linked-page-url {
    display: block;
    padding: 6px 0;
    font-size: 12px;
    color: #5716F7;
    text-decoration: none;
    word-break: break-all;
}

.linked-page-url:hover {
    text-decoration: underline;
}

.prompt-content {
    flex: 0 0 calc(66.666% - 10px);
}

/* Report cover meta (Market and Date below screenshot) */
.report-cover-meta {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 24px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    flex-wrap: wrap;
}

.report-meta-item {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.report-meta-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.report-meta-value {
    font-size: 14px;
    color: #1F2937;
    font-weight: 600;
}

@media (max-width: 768px) {
    .report-cover-meta {
        gap: 16px;
        padding: 12px;
    }

    .report-meta-item {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }
}

/* Traffic previous data */
.traffic-previous {
    font-size: 14px;
    color: #6B7280;
    margin-top: 8px;
}

/* Traffic percentage inline (between value and arrow) */
.traffic-percentage-inline {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
    margin: 0 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prompt-item-split {
        flex-direction: column;
    }

    .prompt-position,
    .prompt-content {
        flex: 1 1 100%;
    }

    .position-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

.prompt-links a {
    color: #5716F7;
    text-decoration: none;
}

.prompt-links a:hover {
    text-decoration: underline;
}

/* ========================================
   COMPETITORS
   ======================================== */

.competitors-grid {
    display: grid;
    gap: 32px;
}

.competitor-card {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E5E7EB;
}

.competitor-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.competitor-logo img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.competitor-info h3 {
    margin: 0 0 4px 0;
}

.competitor-domain {
    color: #6B7280;
    font-size: 14px;
}

.competitor-screenshot {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.competitor-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.competitor-traffic {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.traffic-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E5E7EB;
}

.traffic-row:last-child {
    border-bottom: none;
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1F2937;
}

.report-table-compact {
    font-size: 13px;
}

.report-table-compact thead th,
.report-table-compact tbody td {
    padding: 10px 12px;
}

.prompts-simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prompts-simple-list li {
    padding: 12px;
    background: #FFFFFF;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.prompts-simple-list .prompt-text {
    flex: 1;
    font-size: 14px;
    margin: 0;
}

.prompt-llm-badge {
    padding: 4px 8px;
    background: #E0E7FF;
    color: #3730A3;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================
   BENCHMARK
   ======================================== */

.leaders-grid {
    display: grid;
    gap: 16px;
}

.leader-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.leader-item.is-you {
    background: #FEF3C7;
    border-color: #F59E0B;
}

.leader-llm {
    font-weight: 600;
    color: #374151;
}

.leader-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.leader-icon {
    width: 20px;
    height: 20px;
}

.leader-badge {
    padding: 4px 8px;
    background: #F59E0B;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.comparison-item {
    padding: 24px;
    background: #F9FAFB;
    border-radius: 8px;
    text-align: center;
}

.comparison-label {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 12px;
}

.comparison-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.comparison-positive {
    color: #22C55E;
}

.comparison-negative {
    color: #EF4444;
}

.comparison-percentage {
    font-size: 18px;
    font-weight: 600;
    color: #6B7280;
}

.comparison-insight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #FEF3C7;
    border-radius: 8px;
    border: 1px solid #F59E0B;
}

.comparison-insight svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.comparison-insight p {
    margin: 0;
    color: #92400E;
    font-size: 14px;
}

.growth-comparison {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.growth-section {
    padding: 24px;
    background: #F9FAFB;
    border-radius: 8px;
}

.growth-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.growth-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.growth-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.growth-bar-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.growth-bar-wrapper {
    background: #E5E7EB;
    border-radius: 8px;
    height: 32px;
    position: relative;
    overflow: hidden;
}

.growth-bar {
    background: #5716F7;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 0.5s ease;
}

.growth-bar-competitor {
    background: #EF4444;
}

.growth-bar-value {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   SUMMARY & CONTACT
   ======================================== */

.report-summary {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border: 2px solid #5716F7;
}

.summary-icon {
    text-align: center;
    margin-bottom: 24px;
}

.summary-content {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.report-contact {
    background: #FFFFFF;
}

.contact-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.contact-photo {
    position: sticky;
    top: 20px;
}

.consultant-photo {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
}

.contact-description {
    font-size: 16px;
    color: #6B7280;
    margin: 16px 0 24px;
}

.consultant-details {
    margin-bottom: 24px;
}

.consultant-name {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
}

.consultant-role {
    font-size: 14px;
    color: #6B7280;
    margin-top: 4px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
    text-decoration: none;
    color: #1F2937;
    transition: all 0.2s ease;
}

.contact-method:hover {
    background: #F3F4F6;
    transform: translateX(4px);
}

.contact-method-icon {
    color: #5716F7;
}

.contact-method-text {
    flex: 1;
}

.contact-method-label {
    font-size: 12px;
    color: #6B7280;
}

.contact-method-value {
    font-weight: 600;
    color: #1F2937;
    margin-top: 2px;
}

.contact-cta {
    margin-top: 24px;
}

/* ========================================
   FOOTER
   ======================================== */

.report-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #E5E7EB;
}

.report-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 768px) {
    .report-footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.report-footer-text p {
    margin: 4px 0;
}

/* ========================================
   CONTENT REPORT - SCORE CARD
   ======================================== */

.report-score-card {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border: none;
}

.score-main {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .score-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.score-circle {
    display: flex;
    justify-content: center;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.score-breakdown-item {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    gap: 12px;
    align-items: center;
}

.score-breakdown-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.score-breakdown-bar {
    background: #E5E7EB;
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
}

.score-breakdown-progress {
    background: #5716F7;
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.score-breakdown-value {
    font-weight: 700;
    color: #5716F7;
    text-align: right;
}

/* ========================================
   CONTENT STATS GRID
   ======================================== */

.content-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.content-stat-item {
    text-align: center;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
}

.content-stat-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.content-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.content-stat-label {
    font-size: 14px;
    color: #6B7280;
}

/* ========================================
   OPTIMIZATION ITEMS
   ======================================== */

.optimization-item {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
}

.optimization-item:last-child {
    margin-bottom: 0;
}

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

.optimization-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.optimization-score {
    font-size: 18px;
    font-weight: 700;
    color: #5716F7;
}

.optimization-score .score-value {
    font-size: 24px;
}

.optimization-progress-bar {
    background: #E5E7EB;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.optimization-progress {
    background: #5716F7;
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease;
}

.optimization-recommendation {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* ========================================
   LLM PERFORMANCE
   ======================================== */

.llm-performance-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.llm-performance-item {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
}

.llm-performance-item.is-visible {
    border-color: #22C55E;
}

.llm-performance-item.is-not-visible {
    border-color: #EF4444;
}

.llm-perf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.llm-perf-name {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background: #ECFDF5;
    color: #065F46;
}

.status-error {
    background: #FEF2F2;
    color: #991B1B;
}

.llm-perf-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

.llm-perf-snippet {
    padding: 16px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

.snippet-text {
    font-size: 14px;
    color: #374151;
    font-style: italic;
    margin: 8px 0 0 0;
    line-height: 1.6;
}

/* ========================================
   IMPROVEMENTS
   ======================================== */

.improvements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.improvement-item {
    padding: 20px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
}

.improvement-priority-high {
    border-left: 4px solid #EF4444;
}

.improvement-priority-medium {
    border-left: 4px solid #F59E0B;
}

.improvement-priority-low {
    border-left: 4px solid #3B82F6;
}

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

.improvement-priority-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.improvement-priority-high .improvement-priority-badge {
    background: #FEE2E2;
    color: #991B1B;
}

.improvement-priority-medium .improvement-priority-badge {
    background: #FEF3C7;
    color: #92400E;
}

.improvement-priority-low .improvement-priority-badge {
    background: #DBEAFE;
    color: #1E40AF;
}

.improvement-category {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.improvement-issue,
.improvement-impact,
.improvement-recommendation {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.improvement-estimated-impact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ECFDF5;
    color: #065F46;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   SIDEBAR
   ======================================== */

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 80px;
}

.sidebar-toggle:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.sidebar-toggle-expand-arrow {
    color: #5716F7;
}

.sidebar-toggle-label {
    font-size: 10px;
    font-weight: 700;
    color: #1F2937;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.2em;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-toggle-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5716F7;
}

.sidebar-toggle-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-toggle-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F3F4F6;
    border-radius: 50%;
    color: #5716F7;
    transition: all 0.2s ease;
}

.sidebar-toggle-icon:hover {
    background: #5716F7;
    color: #FFFFFF;
}

/* When sidebar is open, hide toggle button */
.sidebar-open .sidebar-toggle {
    display: none;
}

/* Sidebar Overlay - disabled */
.sidebar-overlay {
    display: none;
}

/* Sidebar */
.report-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #F9FAFB;
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 20px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.sidebar-open .report-sidebar {
    right: 0;
}

.report-sidebar-inner {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.sidebar-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.sidebar-close-btn:hover {
    background: #F3F4F6;
    color: #5716F7;
}

.sidebar-logo {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo-img {
    height: 28px;
    width: auto;
}

.sidebar-logo-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 0;
}

.sidebar-logo-close:hover {
    background: #F3F4F6;
    color: #5716F7;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
}

.toc-nav {
    margin-bottom: 20px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 4px;
}

.toc-item-h3 {
    padding-left: 16px;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    color: #6B7280;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.toc-item-h3 .toc-link {
    font-size: 12px;
    padding: 6px 12px;
    color: #9CA3AF;
}

.toc-link:hover {
    background: #F3F4F6;
    color: #5716F7;
}

.sidebar-cta {
    padding: 16px;
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border-radius: 12px;
    border: 2px solid #5716F7;
    text-align: center;
}

.sidebar-cta-photo {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.cta-consultant-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: #E5E7EB;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-cta-title {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.sidebar-consultant-info {
    margin-bottom: 12px;
}

.sidebar-consultant-info .consultant-name {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.sidebar-consultant-info .consultant-role {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

.sidebar-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.sidebar-contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-contact-link:hover {
    background: #F9FAFB;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-contact-link svg {
    color: #5716F7;
    flex-shrink: 0;
}

.sidebar-cta-button {
    width: 100%;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #10B981;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
}

.btn-schedule svg {
    stroke: currentColor;
}

.sidebar-scroll-top {
    display: none;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    background: #F3F4F6;
    border: none;
    border-radius: 8px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-scroll-top:hover {
    background: #E5E7EB;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        width: 64px;
        padding: 12px 8px;
        gap: 8px;
    }

    .sidebar-toggle-label {
        font-size: 9px;
        gap: 1px;
    }

    .sidebar-toggle-avatar {
        width: 40px;
        height: 40px;
    }

    .sidebar-toggle-icon {
        width: 40px;
        height: 40px;
    }

    .sidebar-toggle-icon svg {
        width: 14px;
        height: 14px;
    }

    .report-sidebar {
        width: 300px;
        right: -300px;
    }
}

@media (max-width: 480px) {
    .sidebar-toggle {
        width: 56px;
        top: 16px;
        right: 16px;
        padding: 10px 6px;
        gap: 6px;
    }

    .sidebar-toggle-label {
        font-size: 8px;
        gap: 1px;
    }

    .sidebar-toggle-avatar {
        width: 36px;
        height: 36px;
    }

    .sidebar-toggle-icon {
        width: 36px;
        height: 36px;
    }

    .sidebar-toggle-icon svg {
        width: 12px;
        height: 12px;
    }

    .report-sidebar {
        width: 280px;
        right: -280px;
        padding: 16px;
    }

    .sidebar-cta {
        padding: 14px 12px;
    }

    .cta-consultant-photo {
        width: 80px;
        height: 80px;
    }

    .sidebar-cta-title {
        font-size: 13px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-size-small {
    font-size: 14px;
}

.text-color-secondary {
    color: #6B7280;
}

.text-color-primary {
    color: #1F2937;
}

.text-color-black {
    color: #000000;
}

.heading-style-h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1F2937;
}

.heading-style-h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #1F2937;
}

.heading-style-h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #1F2937;
}

.heading-style-h4 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #1F2937;
}

@media (max-width: 768px) {
    .heading-style-h1 {
        font-size: 36px;
    }

    .heading-style-h2 {
        font-size: 28px;
    }

    .heading-style-h3 {
        font-size: 20px;
    }
}

/* ========================================
   NEW ANALYSIS SECTIONS
   ======================================== */

/* Perspective Cards */
.perspective-card {
    margin-bottom: 32px;
}

.perspective-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.perspective-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border-radius: 12px;
    color: #5716F7;
    flex-shrink: 0;
}

.card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 12px;
    color: #D97706;
    flex-shrink: 0;
}

.card-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-top: 4px;
}

/* Pros & Cons Grid */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.pros-column,
.cons-column {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 24px;
}

.pros-column {
    border: 2px solid #ECFDF5;
    border-left: 4px solid #22C55E;
}

.cons-column {
    border: 2px solid #FEF2F2;
    border-left: 4px solid #EF4444;
}

.pros-cons-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pros-title {
    color: #22C55E;
}

.cons-title {
    color: #EF4444;
}

.pros-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-item,
.cons-item {
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.pros-item:last-child,
.cons-item:last-child {
    border-bottom: none;
}

/* Content Structure Sections */
.structure-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.structure-section {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.structure-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
}

.pros-cons-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .pros-cons-grid-compact {
        grid-template-columns: 1fr;
    }
}

.pros-column-compact,
.cons-column-compact {
    padding: 16px;
    background: #FFFFFF;
    border-radius: 8px;
}

.compact-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.pros-label {
    background: #ECFDF5;
    color: #065F46;
}

.cons-label {
    background: #FEF2F2;
    color: #991B1B;
}

.compact-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.compact-list li {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 8px;
}

.compact-list li:last-child {
    margin-bottom: 0;
}

.empty-state {
    font-size: 13px;
    color: #9CA3AF;
    font-style: italic;
    margin: 0;
    padding: 8px 0;
}

/* Missing Parts */
.missing-parts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.missing-part-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #1F2937;
    background: #F9FAFB;
    border-left: 3px solid #F59E0B;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.missing-part-item:hover {
    background: #F3F4F6;
    border-left-color: #5716F7;
}

.missing-part-item svg {
    color: #F59E0B;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Sources Grid */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

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

.source-item {
    padding: 20px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.source-item:hover {
    border-color: #5716F7;
    box-shadow: 0 4px 12px rgba(87, 22, 247, 0.1);
    transform: translateY(-2px);
}

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

.source-header svg {
    color: #5716F7;
}

.source-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6B7280;
    background: #F3F4F6;
    padding: 4px 8px;
    border-radius: 4px;
}

.source-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.source-description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
}

.source-url {
    font-size: 12px;
    color: #5716F7;
    font-family: monospace;
    margin-top: auto;
}

/* AI Predicates */
.predicates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.predicate-item {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 16px;
    padding: 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    align-items: start;
    transition: all 0.2s ease;
}

.predicate-item:hover {
    background: #F3F4F6;
    border-color: #5716F7;
}

.predicate-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5716F7 0%, #7C3AED 100%);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.predicate-content {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
}

.predicate-copy {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.predicate-copy:hover {
    background: #F3F4F6;
    border-color: #5716F7;
    color: #5716F7;
}

/* ========================================
   FULL CONTENT SECTION STYLES
   ======================================== */

.full-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.full-content h1,
.full-content h2,
.full-content h3,
.full-content h4,
.full-content h5,
.full-content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.full-content h1:first-child,
.full-content h2:first-child,
.full-content h3:first-child {
    margin-top: 0;
}

.full-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.full-content ul,
.full-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.full-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.full-content code {
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    display: inline-block;
}

.full-content pre {
    background: #F3F4F6;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    max-width: 100%;
}

.full-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: pre;
    display: block;
    overflow-x: auto;
}

.full-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.full-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    overflow-x: auto;
    display: block;
}

.full-content table th,
.full-content table td {
    border: 1px solid #E5E7EB;
    padding: 12px;
    text-align: left;
}

.full-content table th {
    background: #F9FAFB;
    font-weight: 600;
}

.full-content blockquote {
    border-left: 4px solid #5716F7;
    padding-left: 16px;
    margin: 16px 0;
    color: #6B7280;
    font-style: italic;
}

@media (max-width: 768px) {
    .full-content code {
        font-size: 0.85em;
        word-break: break-all;
    }

    .full-content pre {
        padding: 12px;
        font-size: 0.85em;
    }

    .full-content table {
        font-size: 0.9em;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .report-sidebar {
        display: none;
    }

    .report-with-sidebar {
        grid-template-columns: 1fr;
    }

    .report-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .sidebar-scroll-top {
        display: none;
    }
}

/* ========================================
   FULL CONTENT DESCRIPTION & DOWNLOAD
   ======================================== */

.full-content-description {
    font-size: 18px;
    color: #6B7280;
    margin-top: 12px;
    margin-bottom: 1.5rem;
}

.full-content-actions {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.btn-download-html {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: #5716f7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-download-html:hover {
    background-color: #3c0fab;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(87, 22, 247, 0.3);
}

.btn-download-html svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-download-html:hover svg {
    transform: translateY(2px);
}
