/* ========================================
   BMW Diagnostic Page Styles
   Dark Tech Theme - WamaPower
   ======================================== */

:root {
    --bmw-blue: #0066B1;
    --bmw-blue-dark: #003D7A;
    --bmw-ring: #0653A6;
    --bmw-white: #FFFFFF;
    --bmw-silver: #C0C0C0;
    --severity-critical: #FF1744;
    --severity-high: #FF6D00;
    --severity-medium: #FFC107;
    --severity-low: #4CAF50;
    --card-bg: rgba(20, 25, 40, 0.6);
    --card-border: rgba(0, 102, 177, 0.2);
}

/* BMW Hero */
.bmw-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bmw-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 177, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.bmw-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--bmw-blue);
    border-radius: 30px;
    color: var(--bmw-blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    background: rgba(0, 102, 177, 0.08);
}

.bmw-hero h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--bmw-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.bmw-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.bmw-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.bmw-hero-stats .stat {
    text-align: center;
}

.bmw-hero-stats .stat-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--bmw-blue);
    font-family: var(--font-mono);
}

.bmw-hero-stats .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* BMW Filter Bar */
.bmw-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
    margin-bottom: 40px;
}

.bmw-filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bmw-filter-btn:hover {
    border-color: var(--bmw-blue);
    color: var(--bmw-blue);
}

.bmw-filter-btn.active {
    background: var(--bmw-blue);
    color: #fff;
    border-color: var(--bmw-blue);
}

/* BMW Solutions Grid */
.bmw-solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    padding-bottom: 80px;
    align-items: stretch;
}

/* BMW Solution Card - reuse porsche card styles with bmw accents */
.bmw-solutions-grid .solution-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.bmw-solutions-grid .solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--severity-color, var(--severity-high));
    border-radius: 16px 16px 0 0;
}

.bmw-solutions-grid .solution-card:hover {
    transform: translateY(-4px);
    border-color: var(--bmw-blue);
    box-shadow: 0 12px 40px rgba(0, 102, 177, 0.15);
}

.bmw-solutions-grid .solution-card[data-severity="critical"] { --severity-color: var(--severity-critical); }
.bmw-solutions-grid .solution-card[data-severity="high"] { --severity-color: var(--severity-high); }
.bmw-solutions-grid .solution-card[data-severity="medium"] { --severity-color: var(--severity-medium); }
.bmw-solutions-grid .solution-card[data-severity="low"] { --severity-color: var(--severity-low); }

/* BMW Icon styling */
.bmw-solutions-grid .solution-card .card-icon {
    background: linear-gradient(135deg, rgba(0, 102, 177, 0.15), rgba(0, 61, 122, 0.15));
}

.bmw-solutions-grid .solution-card .card-icon svg {
    stroke: var(--bmw-blue);
}

/* BMW Model Tags */
.bmw-solutions-grid .model-tag.bmw-model-tag {
    background: rgba(0, 102, 177, 0.1);
    border: 1px solid rgba(0, 102, 177, 0.3);
    color: #5DADE2;
}

/* BMW OBD Code styling */
.bmw-solutions-grid .obd-code.bmw-obd-code {
    background: rgba(0, 102, 177, 0.1);
    border: 1px solid rgba(0, 102, 177, 0.3);
    color: #5DADE2;
}

/* BMW Detail Modal - reuse porsche styles */
.bmw-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.bmw-detail-overlay.active {
    display: flex;
}

.bmw-detail-overlay .solution-detail {
    background: linear-gradient(135deg, #0f1115 0%, #1a1d29 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
}

.bmw-detail-overlay .solution-detail::-webkit-scrollbar { width: 6px; }
.bmw-detail-overlay .solution-detail::-webkit-scrollbar-track { background: transparent; }
.bmw-detail-overlay .solution-detail::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 3px; }

.bmw-detail-overlay .detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.bmw-detail-overlay .detail-close:hover {
    background: var(--severity-critical);
    border-color: var(--severity-critical);
    color: #fff;
}

/* Reuse detail sections from porsche */
.bmw-detail-overlay .detail-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bmw-detail-overlay .detail-header .en-name {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.bmw-detail-overlay .detail-section {
    margin-bottom: 32px;
}

.bmw-detail-overlay .detail-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--bmw-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
}

.bmw-detail-overlay .detail-section ul {
    list-style: none;
    padding: 0;
}

.bmw-detail-overlay .detail-section ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.6;
}

.bmw-detail-overlay .detail-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--severity-low);
    font-weight: 700;
}

.bmw-detail-overlay .repair-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.bmw-detail-overlay .repair-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 10px 12px;
    border-bottom: 1px solid var(--card-border);
    font-weight: 600;
}

.bmw-detail-overlay .repair-table td {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bmw-detail-overlay .repair-table td.cost {
    color: var(--accent-cyan);
    font-weight: 600;
    font-family: var(--font-mono);
}

.bmw-detail-overlay .obd-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bmw-detail-overlay .note-box {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.bmw-detail-overlay .note-box p {
    font-size: 13px;
    color: var(--severity-medium);
    line-height: 1.6;
    margin: 0;
}

.bmw-detail-overlay .affected-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bmw-detail-overlay .model-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* BMW Brand Banner on Homepage */
.bmw-banner {
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(0, 102, 177, 0.08), rgba(0, 61, 122, 0.08));
    border: 1px solid rgba(0, 102, 177, 0.25);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
}

.bmw-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 102, 177, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bmw-banner-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bmw-banner-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.bmw-banner-cta {
    padding: 12px 28px;
    background: var(--bmw-blue);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bmw-banner-cta:hover {
    background: var(--bmw-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 177, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .bmw-hero { padding: 80px 0 40px; }
    .bmw-hero h1 { font-size: 32px; }
    .bmw-hero-stats { gap: 24px; }
    .bmw-solutions-grid { grid-template-columns: 1fr; }
    .bmw-detail-overlay .solution-detail { padding: 24px; }
    .bmw-detail-overlay .repair-table { font-size: 12px; }
}
