/* Nava4D Brand Theme Override */
:root {
  --nava-orange: #f5c862; /* Emas cerah dari logo/mahkota */
  --nava-orange-dark: #cc9639; /* Emas gelap dari teks/border */
  --nava-orange-deep: #a67c2e; /* Emas gelap untuk bayangan */
  --nava-gold: #0adccf; /* Cyan/Teal terang dari teks TITI4D */
  --nava-gold-soft: #12b7a8; /* Cyan/Teal sedang */
  --nava-cream: #001211; /* Latar belakang hitam kehijauan gelap */
  --nava-cream-2: #022b27; /* Latar belakang gelap dengan rona hijau */
  --nava-surface: #0a0e10; /* Latar belakang hitam pekat */
  --nava-text: #ffffff; /* Putih untuk teks utama agar kontras */
  --nava-text-soft: #b0c9c7; /* Teks sekunder teal abu-abu */
  --nava-border: #145e5a; /* Teal gelap untuk border */
  --nava-shadow: 0 12px 32px rgba(0, 220, 207, 0.14); /* Bayangan dengan pendaran cyan */
}

/**
 * Benchmark Section Styles
 * For product detail page benchmark display
 */

.pd-benchmark-section {
    background: #001211; /* Gunakan warna latar belakang gelap */
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 2px 8px rgba(0, 220, 207, 0.06); /* Pendaran cyan */
    border: 1px solid #cc9639; /* Border emas */
}

.benchmark-header {
    margin-bottom: 20px;
}

.benchmark-title {
    font-size: 22px;
    font-weight: 700;
    color: #f5c862; /* Teks judul emas cerah */
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benchmark-hint {
    font-size: 14px;
    color: #b0c9c7; /* Teks petunjuk teal abu-abu */
    margin: 0;
}

/* Preview Badges */
.benchmark-preview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.benchmark-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Gradient emas ke teal */
    background: linear-gradient(135deg, #f5c862 0%, #cc9639 55%, #12b7a8 100%);
    color: #001211; /* Teks badge gelap agar kontras dengan gradient emas */
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 220, 207, 0.25);
    transition: all 0.2s ease;
}

.benchmark-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 220, 207, 0.35);
}

.benchmark-badge strong {
    font-weight: 600;
    opacity: 0.9;
}

/* Load Button */
.btn-load-benchmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    padding: 14px 24px;
    /* Gradient emas ke teal yang lebih cerah untuk tombol */
    background: linear-gradient(135deg, #f5c862 0%, #0adccf 100%);
    color: #001211; /* Teks tombol gelap */
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 220, 207, 0.3);
    margin: 0 auto;
}

.btn-load-benchmark:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 220, 207, 0.4);
}

.btn-load-benchmark:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-load-benchmark .btn-icon {
    font-size: 20px;
}

.btn-load-benchmark.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Benchmark Content */
.benchmark-content {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #145e5a; /* Border teal gelap */
}

.benchmark-loading {
    text-align: center;
    padding: 40px 20px;
    color: #b0c9c7;
}

.benchmark-loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid #0a0e10; /* Latar belakang spinner gelap */
    border-top-color: #0adccf; /* Warna spinner cyan */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.benchmark-error {
    text-align: center;
    padding: 32px 20px;
    color: #ffc2b3; /* Teks error merah muda pucat */
    background: #471100; /* Latar belakang error merah gelap */
    border-radius: 8px;
}

/* Benchmark Data Display */
.benchmark-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.benchmark-card {
    /* Latar belakang kartu gelap dengan sedikit rona emas */
    background: linear-gradient(135deg, rgba(245, 200, 98, 0.1) 0%, rgba(10, 220, 207, 0.05) 100%);
    border: 1px solid #145e5a; /* Border teal gelap */
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: all 0.2s ease;
}

.benchmark-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 220, 207, 0.15);
}

.benchmark-card-label {
    font-size: 13px;
    color: #b0c9c7; /* Label teks teal abu-abu */
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benchmark-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #0adccf; /* Nilai teks cyan terang */
    line-height: 1.2;
}

.benchmark-card-value.large {
    font-size: 28px;
}

.benchmark-card-subtitle {
    font-size: 12px;
    color: #718096; /* Subtitle abu-abu sedang */
    margin-top: 4px;
}

/* Spec Details */
.benchmark-specs {
    background: #022b27; /* Latar belakang spesifikasi teal gelap */
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.benchmark-specs-title {
    font-size: 16px;
    font-weight: 600;
    color: #f5c862; /* Judul spesifikasi emas */
    margin: 0 0 16px 0;
}

.benchmark-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #145e5a; /* Border baris teal gelap */
}

.benchmark-spec-row:last-child {
    border-bottom: none;
}

.benchmark-spec-label {
    font-size: 14px;
    color: #b0c9c7;
    font-weight: 500;
}

.benchmark-spec-value {
    font-size: 14px;
    color: #ffffff; /* Nilai spesifikasi putih */
    font-weight: 600;
    text-align: right;
}

/* Score Badges */
.benchmark-score-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    color: #001211; /* Teks badge skor gelap */
}

.benchmark-score-badge.excellent {
    background: #0adccf; /* Skor sangat baik cyan */
}

.benchmark-score-badge.good {
    background: #12b7a8; /* Skor baik teal sedang */
}

.benchmark-score-badge.average {
    background: #f5c862; /* Skor rata-rata emas cerah */
}

.benchmark-score-badge.poor {
    background: #cc9639; /* Skor buruk emas gelap */
}

/* Attribution */
.benchmark-attribution {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #145e5a;
    font-size: 13px;
    color: #718096;
}

.benchmark-attribution a {
    color: #0adccf; /* Link atribusi cyan */
    text-decoration: none;
    font-weight: 500;
}

.benchmark-attribution a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .pd-benchmark-section {
        padding: 16px;
        margin: 20px 0;
    }
    
    .benchmark-title {
        font-size: 18px;
    }
    
    .benchmark-preview-badges {
        flex-direction: column;
        gap: 8px;
    }
    
    .benchmark-badge {
        justify-content: center;
    }
    
    .btn-load-benchmark {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .benchmark-data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .benchmark-card {
        padding: 14px;
    }
    
    .benchmark-card-value {
        font-size: 20px;
    }
    
    .benchmark-spec-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .benchmark-spec-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .benchmark-data-grid {
        grid-template-columns: 1fr;
    }
}