/* ============================================================
   Report Page โ?้้็ดซ็ฝๅฐๅ็?   ============================================================ */

.report-wrap {
    background: var(--bg-light);
    padding: 32px 0 120px;
    min-height: 100vh;
}

.report-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* --- Report Header --- */
.report-header {
    background: linear-gradient(135deg, var(--primary-800), var(--primary-700) 50%, var(--primary-900));
    color: var(--white);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.report-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: var(--primary-400);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}
.report-header::after {
    content: 'GEO//REPORT';
    position: absolute;
    right: 24px;
    bottom: 18px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.18em;
}
.report-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    margin-bottom: 16px;
    letter-spacing: 0.06em;
    backdrop-filter: blur(4px);
}
.report-header .badge::before {
    content: 'โ?;
    color: var(--primary-200);
}
.report-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}
.report-header .meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    position: relative;
}
.report-header .url-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--white);
    border-radius: var(--radius);
    position: relative;
}
.report-header .url-box svg { width: 14px; height: 14px; opacity: 0.6; }
.report-header .url-box .url-favicon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
}

/* --- Score Card --- */
.score-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 28px;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.score-card .section-head { text-align: left; margin-bottom: 20px; }
.score-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.score-item {
    padding: 20px 18px;
    background: var(--bg-light);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius);
    position: relative;
    transition: all var(--t-fast);
}
.score-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-300);
}
.score-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 24px; height: 3px;
    background: var(--primary-700);
    border-radius: 0 0 var(--radius-sm) 0;
}
.score-item .score-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--danger);
    line-height: 1.1;
    margin-bottom: 4px;
}
.score-item .score-num.is-warn { color: var(--warning); }
.score-item .score-num.is-ok   { color: var(--success); }
.score-item .score-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 6px;
    line-height: 1.4;
}
.score-summary {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-700);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* --- Report Section --- */
.report-section {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
}
.report-section:hover { box-shadow: var(--shadow); }
.report-section h3 {
    font-size: 1.25rem;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 600;
    color: var(--gray-800);
}
.report-section h4 {
    font-size: 1rem;
    margin: 20px 0 10px;
    font-weight: 600;
    color: var(--gray-800);
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}
.report-section h4::before {
    content: 'ยง';
    color: var(--primary-700);
    font-weight: 600;
}
.report-section p {
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.7;
}
.report-section .lead-note {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-top: 10px;
}

/* blur */
.report-section .blur-content {
    position: relative;
    transition: filter 0.3s ease;
    margin-top: 8px;
}
.report-section.is-locked .blur-content {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    max-height: 220px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.report-section .blur-overlay {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 30%, #fff 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 60px 24px 24px;
    text-align: center;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.report-section .blur-overlay > * { pointer-events: auto; }
.report-section.is-unlocked .blur-overlay { display: none; }
.report-section.is-unlocked .blur-content {
    filter: none !important;
    user-select: auto !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
}

.blur-overlay .lock-glyph {
    width: 48px;
    height: 48px;
    border: 1px solid var(--primary-700);
    background: linear-gradient(135deg, var(--primary-100), var(--bg-light));
    color: var(--primary-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: var(--radius);
}
.blur-overlay p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 4px;
    line-height: 1.4;
}
.blur-overlay .sub {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-bottom: 18px;
    max-width: 480px;
}

/* --- Fixed Bottom Bar --- */
.fixed-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-200);
    padding: 14px var(--gutter);
    z-index: 50;
    text-align: center;
    box-shadow: 0 -2px 16px rgba(13, 148, 136, 0.08);
    transition: transform 0.3s ease;
}
.fixed-bar.is-hidden { transform: translateY(100%); pointer-events: none; }
.fixed-bar .btn { margin: 0 6px; vertical-align: middle; }
.fixed-bar .btn-outline {
    border-color: var(--gray-300);
    color: var(--gray-700);
}
.fixed-bar .btn-outline:hover {
    background: var(--bg-light);
    color: var(--primary-700);
    border-color: var(--primary-300);
}
.fixed-bar-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--gray-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* --- Notice --- */
.report-notice {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--warning);
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.report-notice h2 { font-size: 1.375rem; margin-bottom: 10px; }
.report-notice p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* --- Report preview block in modal --- */
.report-preview {
    background: var(--bg-light);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}
.report-preview-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--gray-200);
}
.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}
.report-item:last-child { border-bottom: none; }
.report-item .label { color: var(--gray-700); }
.report-item .value { font-weight: 600; color: var(--danger); }
.report-item .value.is-low  { color: var(--danger); }
.report-item .value.is-warn { color: var(--warning); }
.report-item .value.is-ok   { color: var(--success); }
