/* ============================================
   PRESTIGE OTO GALERİ - Premium Styles
   ============================================ */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #b91c1c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #991b1b;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(185, 28, 28, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185, 28, 28, 0.3), transparent);
}

/* Car Silhouette */
.car-silhouette {
    position: absolute;
    right: -5%;
    bottom: 5%;
    width: 55%;
    opacity: 0.04;
    font-size: 20rem;
    color: #fff;
    pointer-events: none;
}

/* Animated underline */
.animated-underline {
    position: relative;
    display: inline-block;
}
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: #b91c1c;
    transition: width 0.3s ease;
}
.animated-underline:hover::after {
    width: 100%;
}

/* Card Hover Effects */
.vehicle-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.vehicle-card:hover {
    transform: translateY(-8px);
    border-color: rgba(185, 28, 28, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(185, 28, 28, 0.1);
}

.vehicle-card .card-image {
    overflow: hidden;
}
.vehicle-card .card-image img,
.vehicle-card .card-image .img-placeholder {
    transition: transform 0.5s ease;
}
.vehicle-card:hover .card-image img,
.vehicle-card:hover .card-image .img-placeholder {
    transform: scale(1.05);
}

/* Image Placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a4a;
    font-size: 3rem;
}

/* Section Headers */
.section-header {
    position: relative;
}
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #b91c1c;
    margin: 12px auto 0;
}

/* Stats Counter */
.stat-item {
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(185, 28, 28, 0.3), transparent);
}
.stat-item:last-child::after {
    display: none;
}

/* Brand Logo Cards */
.brand-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.brand-card:hover {
    border-color: rgba(185, 28, 28, 0.3);
    background: rgba(185, 28, 28, 0.05);
    transform: translateY(-3px);
}

/* Filter Sidebar */
.filter-group label {
    cursor: pointer;
    transition: color 0.2s;
}
.filter-group label:hover {
    color: #fff;
}

/* Custom checkbox style */
.filter-group input[type="checkbox"] {
    accent-color: #b91c1c;
    width: 16px;
    height: 16px;
}

/* Range input */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #b91c1c;
    border-radius: 50%;
    cursor: pointer;
}

/* Detail Page Gallery */
.detail-image-main {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

/* Service Cards */
.service-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #b91c1c;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(185, 28, 28, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Contact Form */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}
.form-input:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
    background: rgba(255, 255, 255, 0.08);
}
.form-input::placeholder {
    color: #666;
}

/* Feature cards */
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.15), rgba(185, 28, 28, 0.05));
    border: 1px solid rgba(185, 28, 28, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #b91c1c;
    transition: all 0.3s ease;
}
.feature-icon:hover,
.service-card:hover .feature-icon {
    background: #b91c1c;
    color: #fff;
    transform: rotateY(180deg);
}

/* Red line accents */
.red-line-left {
    border-left: 3px solid #b91c1c;
    padding-left: 16px;
}

/* Table styles */
.spec-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.spec-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.spec-table td {
    padding: 12px 16px;
}

/* Pulse animation for CTA */
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(185, 28, 28, 0); }
}
.pulse-red {
    animation: pulse-red 2s infinite;
}

/* Fade in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .car-silhouette {
        display: none;
    }
    .stat-item::after {
        display: none;
    }
}

/* Select styling */
select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
}
select:focus {
    border-color: #b91c1c;
}
select option {
    background: #1a1a1a;
    color: #fff;
}
