@charset "UTF-8";

/* ==================== IMAGE ANALYSIS MICROSERVICE ==================== */

.image-analysis {
    --color-bg-light: #f8f9fa;
    --color-border: #eee;
    --color-text-dark: #333;
    --color-text-medium: #666;
    --color-text-light: #999;
    --color-status-2xx: #d4edda;
    --color-status-3xx: #d1ecf1;
    --color-status-4xx: #f8d7da;
    --color-status-5xx: #fff3cd;
}

.image-analysis__grid {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.image-analysis__col {
    background: var(--color-bg-light);
    border-radius: 4px;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.image-analysis__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.image-analysis__preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-analysis__content {
    padding: 15px;
    height: 100%;
}

.image-analysis__header {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-text-dark);
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.image-analysis__status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.image-analysis__status--2xx {
    background: var(--color-status-2xx);
}

.image-analysis__status--3xx {
    background: var(--color-status-3xx);
}

.image-analysis__status--4xx {
    background: var(--color-status-4xx);
}

.image-analysis__status--5xx {
    background: var(--color-status-5xx);
}

.image-analysis__status--not-loaded {
    background: #eee;
    color: #666;
}

.image-analysis__info {
    font-size: 13px;
    line-height: 1.6;
}

.image-analysis__info-label {
    color: var(--color-text-medium);
}

.image-analysis__html-list {
    max-height: 200px;
    overflow-y: auto;
}

.image-analysis__html-item {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.image-analysis__html-item:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.image-analysis__html-index {
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.image-analysis__no-data {
    color: var(--color-text-light);
    font-style: italic;
    font-size: 13px;
}

/* ==================== MOBILE ADAPTIVE MICROSERVICE ==================== */

.mobile-adaptive-results {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-adaptive-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Mobile Device Frame */
.mobile-adaptive-screenshot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-device-frame {
    position: relative;
    width: 100%;
    max-width: 375px;
    background: #1D1D1D;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mobile-device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #1D1D1D;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.mobile-device-screen {
    position: relative;
    width: 100%;
    background: var(--color-white);
    border-radius: 32px;
    overflow: hidden;
}

.mobile-device-screen img {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-device-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mobile-device-label {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* Mobile Metrics */
.mobile-adaptive-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-metric-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px;
    border-left: 4px solid var(--color-border);
    transition: all 0.3s ease;
}

.mobile-metric-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Metric Card Variants */
.mobile-metric-card--good {
    border-left-color: #109D35;
}

.mobile-metric-card--needs-improvement {
    border-left-color: #FF9800;
}

.mobile-metric-card--poor {
    border-left-color: #FF3222;
}

.mobile-metric-card--info {
    border-left-color: var(--color-secondary);
}

/* Metric Icon */
.mobile-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

.mobile-metric-card--good .mobile-metric-icon {
    background: rgba(16, 157, 53, 0.1);
    color: #109D35;
}

.mobile-metric-card--needs-improvement .mobile-metric-icon {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.mobile-metric-card--poor .mobile-metric-icon {
    background: rgba(255, 50, 34, 0.1);
    color: #FF3222;
}

.mobile-metric-card--info .mobile-metric-icon {
    background: rgba(24, 144, 255, 0.1);
    color: var(--color-secondary);
}

/* Metric Content */
.mobile-metric-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-metric-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
}

.mobile-metric-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1;
}

.mobile-metric-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Metric Badge */
.mobile-metric-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mobile-metric-badge--good {
    background: rgba(16, 157, 53, 0.1);
    color: #109D35;
}

.mobile-metric-badge--needs-improvement {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.mobile-metric-badge--poor {
    background: rgba(255, 50, 34, 0.1);
    color: #FF3222;
}

/* Viewport Display */
.mobile-viewport-value {
    margin: 10px 0;
}

.mobile-viewport-value code {
    display: inline-block;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: var(--text-sm);
    color: var(--color-text-dark);
}

.mobile-viewport-missing {
    color: var(--color-text-light);
    font-style: italic;
}

/* ==================== DNS MICROSERVICE ==================== */

.dns-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dns-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dns-table thead {
    background: linear-gradient(135deg, #f8f9fc 0%, #e7f0fa 100%);
}

.dns-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--color-border);
}

.dns-table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.dns-table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.dns-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.dns-table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9fc 0%, #ffffff 100%);
    transform: translateX(2px);
}

.dns-table td {
    padding: 16px 20px;
    font-size: var(--text-sm);
    color: var(--color-text);
    vertical-align: middle;
}

/* DNS Record Type Badge */
.dns-table td:first-child {
    font-weight: 600;
}

.dns-record-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Record Type Colors */
.dns-record-type--a {
    background: rgba(16, 157, 53, 0.1);
    color: #109D35;
}

.dns-record-type--aaaa {
    background: rgba(24, 144, 255, 0.1);
    color: #1890FF;
}

.dns-record-type--mx {
    background: rgba(255, 50, 34, 0.1);
    color: #FF3222;
}

.dns-record-type--txt {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.dns-record-type--cname {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.dns-record-type--ns {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.dns-record-type--soa {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.dns-record-type--srv {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.dns-record-type--ptr {
    background: rgba(103, 58, 183, 0.1);
    color: #673AB7;
}

.dns-record-type--spf {
    background: rgba(233, 30, 99, 0.1);
    color: #E91E63;
}

.dns-record-type--default {
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}

/* DNS Value Cell */
.dns-table td:nth-child(2) {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: var(--color-text-dark);
    max-width: 500px;
}

/* TTL Cell */
.dns-table td:nth-child(3) {
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* DNS Stats Summary (optional enhancement) */
.dns-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dns-stat-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dns-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dns-stat-content {
    flex: 1;
}

.dns-stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.dns-stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-dark);
}

/* Empty State */
.dns-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.dns-empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.dns-empty-state h3 {
    font-size: var(--text-xl);
    color: var(--color-text);
    margin-bottom: 10px;
}

.dns-empty-state p {
    font-size: var(--text-sm);
}

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

@media screen and (max-width: 768px) {
    .image-analysis__grid {
        display: flex;
        flex-direction: column;
    }

    .image-analysis__col {
        width: 100%;
        height: auto;
    }

    .image-analysis__preview {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .mobile-adaptive-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mobile-device-frame {
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .mobile-adaptive-container {
        gap: 20px;
    }

    .mobile-device-frame {
        max-width: 280px;
        padding: 10px;
        border-radius: 30px;
    }

    .mobile-device-notch {
        width: 120px;
        height: 25px;
    }

    .mobile-device-screen {
        border-radius: 24px;
    }

    .mobile-metric-card {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }

    .mobile-metric-icon {
        width: 40px;
        height: 40px;
    }

    .mobile-metric-value {
        font-size: var(--text-3xl);
    }

    .mobile-metric-badge {
        justify-self: start;
    }

    /* DNS Table Mobile */
    .dns-table-container {
        border-radius: var(--radius-sm);
    }

    .dns-table thead {
        display: none;
    }

    .dns-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        padding: 15px;
    }

    .dns-table tbody tr:hover {
        transform: none;
    }

    .dns-table td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
    }

    .dns-table td:before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: var(--text-xs);
        color: var(--color-text-muted);
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .dns-table td:first-child {
        padding-top: 0;
    }

    .dns-table td:last-child {
        padding-bottom: 0;
    }
}

/* ==================== CONTENT ANALYSIS - RELEVANCE ==================== */

.relevance-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.relevance-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

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

/* ==================== WORD CLOUDS ==================== */

.word-clouds-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.word-cloud-block h4 {
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 40px 50px;
    min-height: 250px;
    line-height: 1.4;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 -5px 15px rgba(255, 255, 255, 0.8),
        inset 0 5px 15px rgba(0, 0, 0, 0.05);
}

.word-cloud-item {
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.word-cloud-item:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Size classes */
.word-cloud-item.size-1 {
    font-size: 12px;
}

.word-cloud-item.size-2 {
    font-size: 14px;
}

.word-cloud-item.size-3 {
    font-size: 16px;
}

.word-cloud-item.size-4 {
    font-size: 20px;
}

.word-cloud-item.size-5 {
    font-size: 24px;
}

.word-cloud-item.size-6 {
    font-size: 28px;
}

.word-cloud-item.size-7 {
    font-size: 32px;
}

.word-cloud-item.size-8 {
    font-size: 36px;
}

.word-cloud-item.size-9 {
    font-size: 40px;
}

.word-cloud-item.size-10 {
    font-size: 48px;
}

/* Color classes */
.word-cloud-item.color-1 {
    color: #28a745;
}

.word-cloud-item.color-2 {
    color: #17a2b8;
}

.word-cloud-item.color-3 {
    color: #007bff;
}

.word-cloud-item.color-4 {
    color: #6610f2;
}

.word-cloud-item.color-5 {
    color: #6f42c1;
}

.word-cloud-item.color-6 {
    color: #e83e8c;
}

.word-cloud-item.color-7 {
    color: #fd7e14;
}

.word-cloud-item.color-8 {
    color: #20c997;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .word-clouds-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .word-clouds-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .word-cloud {
        padding: 30px 35px;
        min-height: 200px;
    }

    .word-cloud::before,
    .word-cloud::after {
        width: 60px;
        height: 50px;
    }

    .word-cloud-item.size-7 {
        font-size: 28px;
    }

    .word-cloud-item.size-8 {
        font-size: 32px;
    }

    .word-cloud-item.size-9 {
        font-size: 36px;
    }

    .word-cloud-item.size-10 {
        font-size: 40px;
    }
}

/* ==================== SITEMAP MICROSERVICE ==================== */

.sitemap-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.sitemap-tab {
    position: relative;
    display: inline-block;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    margin-bottom: -2px;
}

.sitemap-tab:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
}

.sitemap-tab.active {
    background: #fff;
    color: #007bff;
    border-color: #007bff;
    border-bottom: 2px solid #fff;
    font-weight: 600;
    box-shadow: 0 -2px 8px rgba(0, 123, 255, 0.15);
}

.sitemap-report {
    margin: 20px 0;
}

.sitemap-block {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.sitemap-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sitemap-loc {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
    word-break: break-all;
}

/* Metadata Stats Cards */
.sitemap-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.sitemap-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.sitemap-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sitemap-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.sitemap-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    word-break: break-all;
}

.sitemap-errors-block,
.sitemap-duplicates-block {
    margin-top: 30px;
}

.sitemap-errors-block h4,
.sitemap-duplicates-block h4 {
    font-size: 18px;
    font-weight: 600;
    color: #dc3545;
    margin: 0 0 15px 0;
    padding: 10px 15px;
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    border-radius: 4px;
}

.sitemap-duplicates-block h4 {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

/* Table Container */
.sitemap-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-top: 10px;
}

.sitemap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.sitemap-table thead {
    background: linear-gradient(135deg, #f8f9fc 0%, #e7f0fa 100%);
}

.sitemap-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.sitemap-table th:first-child {
    border-radius: 8px 0 0 0;
}

.sitemap-table th:last-child {
    border-radius: 0 8px 0 0;
}

.sitemap-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.sitemap-table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9fc 0%, #ffffff 100%);
    transform: translateX(2px);
}

.sitemap-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
}

.sitemap-table td.error-level {
    width: 80px;
    text-align: center;
}

.sitemap-table .error-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Responsive sitemap */
@media (max-width: 768px) {
    .sitemap-tabs {
        flex-direction: column;
        gap: 5px;
    }

    .sitemap-tab {
        width: 100%;
        text-align: center;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        margin-bottom: 0;
    }

    .sitemap-tab.active {
        border-bottom: 1px solid #007bff;
    }

    .sitemap-block {
        padding: 20px;
    }

    .sitemap-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sitemap-table-container {
        border-radius: 6px;
    }

    .sitemap-table {
        border: none;
    }

    .sitemap-table thead {
        display: none;
    }

    .sitemap-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 15px;
    }

    .sitemap-table tbody tr:hover {
        transform: none;
    }

    .sitemap-table td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
    }

    .sitemap-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 12px;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .sitemap-table td.error-level {
        width: 100%;
        text-align: left;
        padding-top: 0;
    }

    .sitemap-table td.error-level::before {
        display: inline-block;
        margin-right: 10px;
    }
}

/* ==================== OPENGRAPH MICROSERVICE ==================== */

/* Preview Card */
.og-preview {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    align-items: start;
}

.og-preview-image {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1.91 / 1;
}

.og-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.og-preview-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.og-preview-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Properties Table */
.og-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 30px 0;
}

.og-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.og-table thead {
    background: linear-gradient(135deg, #f8f9fc 0%, #e7f0fa 100%);
}

.og-table th {
    padding: 18px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

.og-table th:first-child {
    border-radius: 8px 0 0 0;
}

.og-table th:last-child {
    border-radius: 0 8px 0 0;
}

.og-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.og-table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9fc 0%, #ffffff 100%);
    transform: translateX(2px);
}

.og-table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
}

.og-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 250px;
}

/* Media Gallery */
.og-media {
    margin: 30px 0;
}

.og-media h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding: 10px 15px;
    background: rgba(24, 144, 255, 0.1);
    border-left: 4px solid #1890FF;
    border-radius: 4px;
}

.og-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.og-media-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.og-media-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.og-media-item img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.og-media-item span {
    display: block;
    font-size: 13px;
    color: #666;
    word-break: break-all;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.og-media-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.og-media-meta div {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.og-media-meta div:last-child {
    border-bottom: none;
}

/* Errors Section */
.og-errors {
    margin: 30px 0;
}

.og-errors h3 {
    font-size: 20px;
    font-weight: 600;
    color: #dc3545;
    margin: 0 0 20px 0;
    padding: 10px 15px;
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    border-radius: 4px;
}

.og-error-level {
    width: 80px;
    text-align: center;
}

.og-icon {
    font-size: 20px;
}

/* Responsive OpenGraph */
@media (max-width: 768px) {
    .og-preview {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .og-preview-content h3 {
        font-size: 20px;
    }

    .og-table-container {
        border-radius: 6px;
    }

    .og-table thead {
        display: none;
    }

    .og-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 15px;
    }

    .og-table tbody tr:hover {
        transform: none;
    }

    .og-table td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: left;
        width: 100% !important;
    }

    .og-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 12px;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .og-table td:first-child::before {
        display: none;
    }

    .og-media-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== HTML VALIDATOR MICROSERVICE ==================== */

/* Structure Check Section */
.html-structure-section {
    margin: 30px 0;
}

.html-structure-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
}

.html-structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.html-check-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.html-check-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.html-check-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.html-check-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.html-check-card li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.html-check-card li strong {
    color: #dc3545;
}

/* Filter Controls */
.hv-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.hv-filter label {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.hv-filter-checkbox {
    position: absolute;
    opacity: 0;
}

.hv-filter span {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.hv-filter-checkbox:checked+span {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.hv-filter label:hover span {
    border-color: #007bff;
}

/* Error Cards */
.html-validator-report {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.hv-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #666;
    transition: all 0.2s ease;
}

.hv-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

/* Error type colors */
.hv-error {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

.hv-warning {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.02);
}

.hv-info {
    border-left-color: #17a2b8;
    background: rgba(23, 162, 184, 0.02);
}

.hv-fatal {
    border-left-color: #6c757d;
    background: rgba(108, 117, 125, 0.02);
}

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

.hv-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hv-error .hv-type {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.hv-warning .hv-type {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.hv-info .hv-type {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.hv-fatal .hv-type {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.hv-location {
    font-size: 13px;
    color: #666;
    font-family: 'Courier New', monospace;
}

.hv-message {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.hv-extract {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #555;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.hv-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.hv-no-report {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    font-size: 16px;
    color: #666;
}

/* Responsive HTML Validator */
@media (max-width: 768px) {
    .html-structure-grid {
        grid-template-columns: 1fr;
    }

    .hv-filter {
        flex-direction: column;
        gap: 8px;
    }

    .hv-filter label {
        width: 100%;
    }

    .hv-filter span {
        display: block;
        text-align: center;
    }

    .hv-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hv-card {
        padding: 15px;
    }
}

/* ==================== DUPLICATES/REDIRECTS MICROSERVICE ==================== */

/* Container */
.redirects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

/* Redirect Card */
.redirect-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #666;
    transition: all 0.2s ease;
}

.redirect-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

/* Status colors */
.redirect-ok {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.02);
}

.redirect-fail {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

/* Type Badge */
.redirect-type {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* URLs Section */
.redirect-urls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.redirect-url {
    flex: 1;
    min-width: 200px;
}

.redirect-url .label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.redirect-url a {
    display: block;
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
    font-size: 14px;
    line-height: 1.5;
}

.redirect-url a:hover {
    text-decoration: underline;
}

/* Arrow */
.redirect-arrow {
    font-size: 24px;
    color: #007bff;
    flex-shrink: 0;
}

/* Status Badge */
.redirect-status {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.redirect-status.ok {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.redirect-status.fail {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Empty State */
.redirects-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    font-size: 16px;
    color: #666;
    margin: 30px 0;
}

/* Responsive Duplicates */
@media (max-width: 768px) {
    .redirects-container {
        grid-template-columns: 1fr;
    }

    .redirect-card {
        padding: 20px;
    }

    .redirect-urls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .redirect-url {
        width: 100%;
        min-width: auto;
    }

    .redirect-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
}

/* ==================== PAGE SPEED MICROSERVICE ==================== */

/* Page Speed Container */
.ps-metrics {
    font-family: system-ui, sans-serif;
    margin: 24px 0;
}

/* Speed Gauge */
.speed-gauge {
    width: 160px;
    margin: 20px auto;
    text-align: center;
}

.speed-gauge__svg {
    width: 100%;
    height: auto;
}

.speed-gauge__bg {
    fill: none;
    stroke: #f1f4f8;
    stroke-width: 12;
}

.speed-gauge__bar {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease, stroke 0.4s ease;
}

.speed-gauge__value {
    font-size: 22px;
    font-weight: 700;
    fill: #333;
}

.speed-gauge__label {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* General Stats */
.ps-general {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ps-general-item {
    background: #fafbfc;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    min-width: 150px;
}

.ps-general-item .label {
    font-size: 12px;
    color: #666;
}

.ps-general-item .value {
    font-weight: 600;
    color: #222;
    margin-top: 4px;
}

/* Metrics Grid */
.ps-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ps-metric-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
}

.ps-metric-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ps-metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ps-metric-name {
    font-weight: 600;
    color: #333;
}

.ps-metric-value {
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
}

.ps-metric-value.success {
    background: #27AE60;
}

.ps-metric-value.warning {
    background: #F2994A;
}

.ps-metric-value.error {
    background: #EB5757;
}

.ps-metric-value.info {
    background: #95a5a6;
}

.ps-metric-bar__bg {
    width: 100%;
    height: 10px;
    background: #f1f4f8;
    border-radius: 6px;
    overflow: hidden;
}

.ps-metric-bar__fill {
    height: 100%;
    transition: width .4s ease;
}

.ps-metric-bar__fill.success {
    background: linear-gradient(90deg, #6fdc8c, #27ae60);
}

.ps-metric-bar__fill.warning {
    background: linear-gradient(90deg, #ffd08a, #f2994a);
}

.ps-metric-bar__fill.error {
    background: linear-gradient(90deg, #ff9b9b, #eb5757);
}

/* No Metrics Message */
.ps-no-metrics {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
    color: #666;
    font-size: 16px;
    margin: 20px 0;
}

/* CrUX Record */
.crux-record {
    font-family: system-ui, sans-serif;
    margin: 18px 0;
}

.crux-header {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.crux-header>div {
    font-size: 14px;
    color: #555;
}

.crux-header strong {
    color: #333;
}

/* CrUX Fractions */
.crux-fractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.crux-fraction-card {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    padding: 12px;
}

.crux-fraction-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.crux-fraction-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crux-fraction-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crux-fraction-label {
    min-width: 60px;
    font-size: 14px;
    color: #555;
}

.crux-fraction-bar__bg {
    flex: 1;
    height: 10px;
    background: #f1f4f8;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.crux-fraction-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #6fdc8c, #27ae60);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.crux-fraction-value {
    font-size: 12px;
    color: #222;
    width: 36px;
    text-align: right;
}

/* Resources Section */
.ps-resources {
    margin-top: 32px;
    margin-bottom: 32px;
    font-family: sans-serif;
}

.ps-resources h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    margin-top: 8px;
}

.ps-resources__group {
    margin-bottom: 24px;
}

.ps-resources__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ps-resources__item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    flex: 1 1 300px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
    background-color: #fff;
    word-break: break-all;
}

.ps-resources__item:hover {
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

.ps-resources__url {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: bottom;
    cursor: default;
    margin-bottom: 8px;
    font-weight: 500;
}

.ps-resources__meta {
    font-size: 0.875rem;
    color: #555;
}

/* Resource Status Colors */
.ps-resources__status-2xx {
    color: #27ae60;
    font-weight: 600;
}

.ps-resources__status-3xx {
    color: #2d9cdb;
    font-weight: 600;
}

.ps-resources__status-4xx {
    color: #f2c94c;
    font-weight: 600;
}

.ps-resources__status-5xx {
    color: #eb5757;
    font-weight: 600;
}

/* Responsive Page Speed */
@media (max-width: 768px) {
    .ps-metrics-grid {
        grid-template-columns: 1fr;
    }

    .ps-general {
        flex-direction: column;
    }

    .ps-general-item {
        width: 100%;
    }

    .crux-fractions-grid {
        grid-template-columns: 1fr;
    }

    .ps-resources__list {
        flex-direction: column;
    }

    .ps-resources__item {
        flex: 1 1 auto;
    }

}


/* ==================== OPENGRAPH MICROSERVICE ==================== */

.og-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.og-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.og-table {
    width: 100%;
    border-collapse: collapse;
}

.og-table th,
.og-table td {
    border: 1px solid #eee;
    padding: 6px 10px;
    font-size: 13px;
}

.og-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.og-media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.og-media-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    max-width: 300px;
}

.og-media-item img {
    max-width: 100%;
    border-radius: 4px;
}

.og-media-meta {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.og-icon.error {
    color: #f44336;
}

.og-icon.warning {
    color: #ff9800;
}