/**
 * Autonis Core - Vehicle Cockpit & Engineering Blueprint Stylesheet
 * High-Density Industrial Luxury Slate & Amber Gold
 * RTL-First Architecture | Mobile & Desktop Precision Optimized
 */

/* ==========================================================================
   1. GLOBAL WRAPPER & TYPOGRAPHY
   ========================================================================== */
.atn-vehicle-wrap {
    background-color: #070a13;
    color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.atn-vehicle-wrap *,
.atn-vehicle-wrap *::before,
.atn-vehicle-wrap *::after {
    box-sizing: border-box;
}

.atn-vehicle-wrap .dashicons,
.dashicons {
    font-family: dashicons !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* ==========================================================================
   2. LUXURY BREADCRUMBS
   ========================================================================== */
.atn-vehicle-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 14px 0;
    font-size: 13px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
}

/* ==========================================================================
   3. MASTER VEHICLE HERO COCKPIT
   ========================================================================== */
.atn-vehicle-hero {
    background: linear-gradient(135deg, #0b1120 0%, #0d1629 50%, #080d19 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 36px 40px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.atn-vehicle-hero::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 991px) {
    .atn-vehicle-hero {
        padding: 24px 20px;
    }
}

.atn-vhero-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.atn-vbadge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
}

.atn-vbadge-gold {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.atn-vbadge-gold .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.atn-vbadge-sub {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.atn-vhero-main-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

@media (max-width: 991px) {
    .atn-vhero-main-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.atn-vhero-title {
    margin: 0 0 14px 0;
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.atn-vhero-model-code {
    display: inline-block;
    font-family: monospace;
    font-size: 18px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 10px;
    border-radius: 6px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .atn-vhero-title {
        font-size: 24px;
    }
    .atn-vhero-model-code {
        font-size: 14px;
        margin-top: 6px;
    }
}

.atn-vhero-desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: #94a3b8;
    max-width: 700px;
}

/* GARAGE CARD IN HERO */
.atn-vhero-garage-box {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .atn-vhero-garage-box {
        justify-content: stretch;
    }
}

.atn-vhero-garage-card {
    background: #111a2f;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
}

.atn-vgarage-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.atn-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
}

.atn-status-indicator.is-active {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.atn-vgarage-label {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.atn-btn-block {
    width: 100%;
}

/* TECHNICAL SPECIFICATIONS MATRIX */
.atn-vhero-specs-matrix {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

@media (max-width: 1100px) {
    .atn-vhero-specs-matrix {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .atn-vhero-specs-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.atn-vspec-card {
    background: #090e1b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s ease;
}

.atn-vspec-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background: #0d1527;
}

.atn-vspec-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    flex-shrink: 0;
}

.atn-vspec-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.atn-vspec-data {
    display: flex;
    flex-direction: column;
}

.atn-vspec-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.atn-vspec-val {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
}

.atn-vspec-note {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 2px;
}

/* FAST NAV ANCHORS BAR */
.atn-vhero-quick-anchors {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 20px;
}

.atn-vanchor-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.atn-vanchor-btn:hover {
    background: #14203a;
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.atn-vanchor-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #f59e0b;
}

.atn-vanchor-btn-highlight {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    margin-right: auto;
}

.atn-vanchor-btn-highlight:hover {
    background: #f59e0b;
    color: #0f172a !important;
}

/* ==========================================================================
   4. SECTION BASE STYLES
   ========================================================================== */
.atn-vsection {
    margin-bottom: 56px;
}

.atn-vsection-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.atn-vsection-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.atn-vsection-badge .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

.atn-vsection-title {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
}

.atn-vsection-desc {
    margin: 0;
    font-size: 13.5px;
    color: #94a3b8;
    max-width: 650px;
    line-height: 1.6;
}

/* ==========================================================================
   5. SECTION 1: 14 EPC GROUPS GRID
   ========================================================================== */
.atn-vgroups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1280px) {
    .atn-vgroups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .atn-vgroups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .atn-vgroups-grid {
        grid-template-columns: 1fr;
    }
}

.atn-vgroup-card {
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.atn-vgroup-card:hover {
    background: #121c33;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.atn-vgroup-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #090e1b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    margin-bottom: 12px;
}

.atn-vgroup-icon-wrap .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.atn-vgroup-content {
    flex: 1;
    margin-bottom: 14px;
}

.atn-vgroup-title-fa {
    margin: 0 0 2px 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}

.atn-vgroup-title-en {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-bottom: 8px;
}

.atn-vgroup-desc {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atn-vgroup-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.atn-vgroup-count {
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
}

.atn-vgroup-arrow {
    color: #64748b;
    font-size: 14px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.atn-vgroup-card:hover .atn-vgroup-arrow {
    color: #fbbf24;
    transform: translateX(-4px);
}

/* ==========================================================================
   6. SECTION 2: EXPLODED DIAGRAMS GRID
   ========================================================================== */
.atn-vdiagrams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1280px) {
    .atn-vdiagrams-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .atn-vdiagrams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .atn-vdiagrams-grid {
        grid-template-columns: 1fr;
    }
}

.atn-vdiagram-card {
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.atn-vdiagram-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

.atn-vdiagram-thumb-wrap {
    position: relative;
    display: block;
    height: 180px;
    background: #ffffff;
    overflow: hidden;
}

.atn-vdiagram-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.25s ease;
}

.atn-vdiagram-card:hover .atn-vdiagram-img {
    transform: scale(1.05);
}

.atn-vdiagram-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111a2e;
    color: #64748b;
}

.atn-vdiagram-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.atn-vdiagram-badge-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.atn-vdiagram-parts-pill {
    background: rgba(11, 17, 32, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.atn-vdiagram-parts-pill .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.atn-vdiagram-info {
    padding: 14px;
    flex: 1;
}

.atn-vdiagram-title {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 800;
}

.atn-vdiagram-title a {
    color: #ffffff;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.atn-vdiagram-title a:hover {
    color: #fbbf24;
}

.atn-vdiagram-en {
    font-size: 11px;
    color: #64748b;
    display: block;
}

.atn-vdiagram-footer {
    padding: 10px 14px;
    background: #090e1b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.atn-btn-view-diagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24 !important;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.atn-btn-view-diagram:hover {
    background: #f59e0b;
    color: #0f172a !important;
}

/* ==========================================================================
   7. SECTION 3: COMPATIBLE OEM PARTS GRID
   ========================================================================== */
.atn-vparts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 1280px) {
    .atn-vparts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .atn-vparts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .atn-vparts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   8. SECTION 4: ENGINEERING FAQ & TECHNICAL GUIDES
   ========================================================================== */
.atn-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 991px) {
    .atn-faq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.atn-faq-card {
    background: #0d1527;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 22px 20px;
}

.atn-faq-question {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.atn-faq-question .dashicons {
    color: #f59e0b;
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.atn-faq-answer {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.7;
}
