/* ==========================================
   Main Style CSS for English Version
   AlRaebi Auto Car
   ========================================== */

/* Import the main RTL stylesheet and override for LTR */
@import url('main-style.css');

/* Override RTL specific styles for LTR */
body {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Adjust margins and paddings for LTR */
.top-links a:first-child {
    margin-right: 0;
    margin-left: 1rem;
}

.social-links a {
    margin-left: 0;
    margin-right: 10px;
}

.social-links a:last-child {
    margin-right: 0;
}

/* Navigation adjustments */
.navbar-nav .nav-link.active::after {
    right: auto;
    left: 15px;
}

.dropdown-item:hover {
    padding-right: 20px;
    padding-left: 25px;
}

/* Quick links */
.quick-link-card i {
    margin-left: 0;
    margin-right: 15px;
}

/* Section headers */
.section-title::after {
    right: auto;
    left: 0;
}

/* Service links */
.service-link i {
    margin-left: 5px;
    margin-right: 0;
}

/* Why us items */
.why-us-item .icon {
    margin-right: 20px;
    margin-left: 0;
}

/* Experience badge position */
.experience-badge {
    left: auto;
    right: 30px;
}

/* News date badge */
.news-date {
    right: auto;
    left: 15px;
}

/* Read more links */
.read-more i {
    margin-left: 5px;
    margin-right: 0;
}

/* Footer adjustments */
.footer-title::after {
    right: auto;
    left: 0;
}

.footer-social a {
    margin-left: 0;
    margin-right: 10px;
}

.footer-social a:last-child {
    margin-right: 0;
}

.footer-links ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.contact-info li i {
    margin-left: 0;
    margin-right: 10px;
}

/* WhatsApp button position */
.whatsapp-btn {
    left: auto;
    right: 30px;
}

/* Back to top button position */
.back-to-top {
    right: 105px;
    left: auto;
}

/* Search modal adjustments */
.search-input {
    direction: ltr;
    text-align: left;
}

.close-search {
    right: auto;
    left: 0;
}

/* Hero buttons */
.hero-buttons .btn {
    margin-right: 1rem;
    margin-left: 0;
}

.hero-buttons .btn:last-child {
    margin-right: 0;
}

/* CTA buttons */
.cta-buttons .btn {
    margin-right: 1rem;
    margin-left: 0;
}

.cta-buttons .btn:last-child {
    margin-right: 0;
}

/* Vehicle specs */
.vehicle-specs .spec i {
    margin-right: 8px;
    margin-left: 0;
}

/* Language switcher specific styles */
.language-switcher {
    display: flex;
    gap: 5px;
}

/* Animations for LTR */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

/* Typography adjustments for English */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
}

/* Button adjustments */
.btn {
    letter-spacing: 0.02em;
}

/* Responsive adjustments for LTR */
@media (max-width: 991px) {
    .navbar-toggler {
        margin-left: auto;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .quick-link-card {
        justify-content: flex-start;
    }
    
    .footer-bottom-links {
        text-align: left;
    }
}

/* Print styles for English */
@media print {
    body {
        direction: ltr;
        text-align: left;
    }
}

/* 
Hide specific footer links */
.footer-links a[href*="العروض"],
.footer-links a[href*="الأخبار"],
.footer-links a[href*="الوظائف"],
.footer-links a[href*="الأسئلة الشائعة"],
.footer-links a[href*="Offers"],
.footer-links a[href*="News"],
.footer-links a[href*="Jobs"],
.footer-links a[href*="Careers"],
.footer-links a[href*="FAQ"] {
    display: none !important;
}

.footer-links li:has(a[href*="العروض"]),
.footer-links li:has(a[href*="الأخبار"]),
.footer-links li:has(a[href*="الوظائف"]),
.footer-links li:has(a[href*="الأسئلة الشائعة"]),
.footer-links li:has(a[href*="Offers"]),
.footer-links li:has(a[href*="News"]),
.footer-links li:has(a[href*="Jobs"]),
.footer-links li:has(a[href*="Careers"]),
.footer-links li:has(a[href*="FAQ"]) {
    display: none !important;
}


/* Hide footer bottom links temporarily */
.footer-bottom a[href*="privacy"],
.footer-bottom a[href*="terms"],
.footer-bottom a[href*="sitemap"],
.footer-bottom a[href*="Privacy"],
.footer-bottom a[href*="Terms"],
.footer-bottom a[href*="Sitemap"],
footer a[href*="privacy"],
footer a[href*="terms"],
footer a[href*="sitemap"],
footer a[href*="Privacy"],
footer a[href*="Terms"],
footer a[href*="Sitemap"] {
    display: none !important;
}

/* Hide separator before/after hidden links */
.footer-bottom a[href*="privacy"] + span,
.footer-bottom a[href*="terms"] + span,
.footer-bottom a[href*="Privacy"] + span,
.footer-bottom a[href*="Terms"] + span {
    display: none !important;
}


/* Hide privacy policy and terms links in footer */
.footer-bottom-links a[href*="privacy"],
.footer-bottom-links a[href*="Privacy"],
.footer-bottom-links a[href*="terms"],
.footer-bottom-links a[href*="Terms"],
.footer-bottom-links a[href*="sitemap"],
.footer-bottom-links a[href*="Sitemap"] {
    display: none !important;
}

/* Hide separators next to hidden links */
.footer-bottom-links a[href*="privacy"] + span,
.footer-bottom-links a[href*="Privacy"] + span,
.footer-bottom-links a[href*="terms"] + span,
.footer-bottom-links a[href*="Terms"] + span {
    display: none !important;
}


/* ====================================
   Fix Check/Cross Symbols in Riddara-EN
   ==================================== */

/* Add check symbol for spec-check class */
.spec-check::after {
    content: '✓';
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #28a745;
    font-size: 18px;
}

/* Add cross symbol for spec-cross class */
.spec-cross::after {
    content: '✗';
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #dc3545;
    font-size: 18px;
}

/* Add check symbol for empty spec-value */
.spec-value:empty::after {
    content: '✓';
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #28a745;
    font-size: 18px;
}

/* Don't add symbol if already has content */
.spec-value:not(:empty) {
    /* Keep original content */
}


/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 90px; /* Above WhatsApp button */
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Dark Mode */
[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
    background: linear-gradient(135deg, #357abd, #2868a8);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        left: 15px;
        font-size: 18px;
    }
}


/* Dark Mode Overrides for About Page */
[data-theme="dark"] h2[style*="color: var(--primary-black"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p[style*="color: var(--text-secondary"] {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] strong[style*="color: var(--primary-black"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] div[style*="background: white"] {
    background: var(--card-bg) !important;
}

[data-theme="dark"] span[style*="color: var(--text-secondary"] {
    color: var(--text-secondary) !important;
}


/* About Content Section */
.about-content-section {
    background: linear-gradient(135deg, #ffffff 0%, #ebedf1 100%);
}

[data-theme="dark"] .about-content-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}


/* MVV Section */
.mvv-section {
    background: var(--primary-light, #ebedf1);
}

[data-theme="dark"] .mvv-section {
    background: var(--bg-secondary);
}

.mvv-card {
    background: white;
}

[data-theme="dark"] .mvv-card {
    background: var(--card-bg) !important;
}
