/* assets/css/style.css - Premium Luxury Theme for El Basha Car */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-purple: #2A0845;
    --primary-purple-dark: #1A042D;
    --primary-purple-light: #4A1575;
    --accent-gold: #D4AF37;
    --accent-gold-gradient: linear-gradient(135deg, #F1D26F 0%, #D4AF37 50%, #B8860B 100%);
    --bg-dark: #0D0216;
    --bg-light: #F8F5FA;
    --card-bg-dark: #190926;
    --text-white: #FFFFFF;
    --text-muted-purple: #B29EC7;
    --silver-white: #F3EFF7;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-gold: 1px solid rgba(212, 175, 55, 0.3);
    --border-purple: 1px solid rgba(74, 21, 117, 0.3);
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: #333333;
    overflow-x: hidden;
}

/* Arabic RTL Overrides */
body[dir="rtl"], body.rtl {
    font-family: 'Cairo', sans-serif;
}

/* Theme Utilities */
.bg-purple-dark {
    background-color: var(--bg-dark) !important;
}

.bg-purple-gradient {
    background: linear-gradient(135deg, var(--primary-purple-dark) 0%, var(--primary-purple) 50%, var(--primary-purple-light) 100%) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.btn-gold {
    background: var(--accent-gold-gradient);
    color: var(--primary-purple-dark) !important;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.btn-gold:hover {
    background: var(--accent-gold-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold) !important;
    background: transparent;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--primary-purple-dark) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Custom Navbar */
.navbar-custom {
    background-color: rgba(13, 2, 22, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem;
    z-index: 1000;
}

.navbar-custom .navbar-brand img {
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    margin-right: 10px;
}

body[dir="rtl"] .navbar-custom .navbar-brand img {
    margin-right: 0;
    margin-left: 10px;
}

.navbar-custom .navbar-brand span {
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
}

.navbar-custom .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent-gold) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: radial-gradient(circle at 70% 30%, var(--primary-purple) 0%, var(--bg-dark) 70%);
    color: var(--text-white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg-pattern.png');
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted-purple);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Search Container Widget */
.search-widget {
    background: rgba(25, 9, 38, 0.85);
    border: var(--border-gold);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
}

.search-widget label {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.search-widget .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: var(--border-purple);
    color: var(--text-white);
    padding: 0.75rem 1rem;
}

.search-widget .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    color: var(--text-white);
}

/* Car Premium Card */
.car-card {
    background-color: var(--text-white);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(42, 8, 69, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.car-card-img-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #f0f0f0;
    overflow: hidden;
}

.car-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.car-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-gold-gradient);
    color: var(--primary-purple-dark);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    z-index: 10;
}

body[dir="rtl"] .car-card-badge {
    right: auto;
    left: 15px;
}

.car-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-purple-dark);
    margin-bottom: 0.25rem;
}

.car-card-brand {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.car-card-specs {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
}

.car-card-spec-item {
    font-size: 0.8rem;
    color: #666666;
}

.car-card-spec-item i {
    color: var(--primary-purple);
    margin-right: 5px;
}

body[dir="rtl"] .car-card-spec-item i {
    margin-right: 0;
    margin-left: 5px;
}

.car-card-price-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-purple);
}

.car-card-price span {
    font-size: 0.8rem;
    color: #888888;
    font-weight: 400;
}

/* Featured / Section Title styling */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-purple-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent-gold-gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #777777;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Dark Section style */
.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.dark-section .section-title {
    color: var(--text-white);
}

/* Feature Box for About Page / Features List */
.feature-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    border-color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gold-gradient);
    color: var(--primary-purple-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.feature-desc {
    color: var(--text-muted-purple);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sidebar filter section */
.filter-sidebar {
    background-color: var(--text-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-purple-dark);
    margin-bottom: 1rem;
}

/* Car Details Styling */
.car-detail-gallery {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    background: #000;
}

.detail-spec-card {
    background-color: var(--text-white);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
}

.detail-spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-spec-list li:last-child {
    border-bottom: none;
}

.detail-spec-label {
    font-weight: 600;
    color: #666666;
}

.detail-spec-value {
    font-weight: 700;
    color: var(--primary-purple-dark);
}

.booking-sidebar-card {
    background-color: var(--primary-purple-dark);
    border: var(--border-gold);
    border-radius: 8px;
    color: var(--text-white);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Modern Forms */
.form-floating > label {
    color: #888888;
}

/* Footer Section */
.footer-section {
    background-color: var(--bg-dark);
    color: var(--text-white);
    border-top: 2px solid var(--accent-gold);
    padding: 5rem 0 2rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 55px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    margin-right: 12px;
}

body[dir="rtl"] .footer-logo img {
    margin-right: 0;
    margin-left: 12px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-text {
    color: var(--text-muted-purple);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

body[dir="rtl"] .footer-social-links a {
    margin-right: 0;
    margin-left: 10px;
}

.footer-social-links a:hover {
    background: var(--accent-gold-gradient);
    color: var(--primary-purple-dark);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 2px;
    background-color: var(--accent-gold);
    bottom: 0;
    left: 0;
}

body[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted-purple);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

body[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-muted-purple);
    font-size: 0.95rem;
}

.footer-info-list li i {
    color: var(--accent-gold);
    margin-top: 4px;
    margin-right: 12px;
    font-size: 1.1rem;
}

body[dir="rtl"] .footer-info-list li i {
    margin-right: 0;
    margin-left: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted-purple);
}

/* Booking Card Status colors */
.badge-pending {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.badge-approved {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.badge-rejected {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.badge-cancelled {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* Interactive custom card for categories */
.category-card {
    background-color: var(--text-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: var(--primary-purple-dark);
}

.category-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(42, 8, 69, 0.06);
    color: var(--primary-purple);
}

.category-card i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-card h5 {
    font-weight: 700;
    margin-bottom: 0;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

body[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 40px;
}

.btn-whatsapp-chat {
    background-color: #25d366;
    color: #FFF !important;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp-chat:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}
