/* Young Automotive Group Custom Styles */
:root {
    --yag-primary: #1a1a1a;
    --yag-secondary: #2d2d2d;
    --yag-accent: #c41e3a;
    --yag-silver: #c0c0c0;
    --yag-light: #f8f9fa;
    /* Legacy variable aliases for compatibility */
    --silk-primary: var(--yag-primary);
    --silk-secondary: var(--yag-secondary);
    --silk-accent: var(--yag-accent);
    --silk-gold: var(--yag-silver);
    --silk-light: var(--yag-light);
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--yag-primary) 0%, var(--yag-secondary) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-pattern.svg') repeat;
    opacity: 0.05;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Vehicle Cards */
.vehicle-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.vehicle-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.vehicle-card .badge-condition {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-card .badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--silk-gold);
    color: #000;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yag-accent);
}

/* Stats Section */
.stats-section {
    background: var(--yag-primary);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--yag-silver);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--yag-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--yag-accent);
    border-radius: 2px;
}

/* Testimonial Cards */
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.testimonial-card .rating {
    color: var(--yag-silver);
}

.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    margin: 20px 0;
}

.testimonial-card .customer-name {
    font-weight: 600;
    color: var(--yag-primary);
}

/* Filter Sidebar */
.filter-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-weight: 600;
    color: var(--yag-primary);
    margin-bottom: 15px;
}

/* Vehicle Details */
.vehicle-gallery {
    position: relative;
}

.vehicle-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.vehicle-gallery-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.vehicle-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.vehicle-gallery-thumbs img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vehicle-gallery-thumbs img:hover,
.vehicle-gallery-thumbs img.active {
    opacity: 1;
}

.vehicle-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.vehicle-specs-table {
    width: 100%;
}

.vehicle-specs-table tr {
    border-bottom: 1px solid #eee;
}

.vehicle-specs-table td {
    padding: 12px 0;
}

.vehicle-specs-table td:first-child {
    font-weight: 600;
    color: #666;
    width: 40%;
}

/* Contact Form */
.contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Finance Calculator */
.calculator-card {
    background: var(--silk-light);
    border-radius: 12px;
    padding: 30px;
}

.payment-result {
    background: var(--yag-primary);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.payment-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--yag-silver);
}

/* Team Member Cards */
.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-card-body {
    padding: 20px;
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--yag-accent) 0%, #a01830 100%);
    padding: 60px 0;
    color: #fff;
}

/* Map Container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Admin Layout */
.admin-sidebar {
    background: var(--yag-primary);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 5px 15px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.admin-content {
    background: var(--yag-light);
    min-height: 100vh;
    padding: 30px;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.stat-card {
    border-radius: 12px;
    padding: 25px;
    color: #fff;
}

.stat-card.bg-vehicles {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.bg-inquiries {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card.bg-team {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.bg-testimonials {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Buttons */
.btn-silk-primary,
.btn-yag-primary {
    background: var(--yag-accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-silk-primary:hover,
.btn-yag-primary:hover {
    background: #a01830;
    color: #fff;
    transform: translateY(-2px);
}

.btn-silk-outline,
.btn-yag-outline {
    background: transparent;
    color: var(--yag-primary);
    border: 2px solid var(--yag-primary);
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-silk-outline:hover,
.btn-yag-outline:hover {
    background: var(--yag-primary);
    color: #fff;
}

/* Vehicle placeholder image */
.vehicle-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
    font-size: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .vehicle-gallery-main img {
        height: 300px;
    }
}

/* Alert messages */
.alert-silk {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Kendo Grid customizations */
.k-grid {
    border-radius: 8px;
    overflow: hidden;
}

.k-grid th {
    background: var(--yag-primary) !important;
    color: #fff !important;
}

/* Logo styling */
.navbar-brand-logo {
    height: 45px;
    width: auto;
}

/* Login page styling */
.login-page-bg {
    background: linear-gradient(135deg, var(--yag-primary) 0%, var(--yag-secondary) 100%);
}

.login-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.login-header-dark {
    background: var(--yag-primary);
    padding: 30px;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.btn-login-yag {
    background: var(--yag-accent);
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-login-yag:hover {
    background: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
    color: white;
}
