/*
Theme Name: CMB Car Rent
Theme URI: https://cmbcarrent.cz
Author: CMB Car Rent
Description: Prémiová autopůjčovna - moderní dark theme s glassmorphism designem
Version: 1.0.6
License: GNU General Public License v2 or later
Text Domain: cmb-car-rent
Tags: car-rental, dark, modern, glassmorphism
*/

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --accent: #6366f1;
    --bg: #0b0f1a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
}

/* ============================================
   Animated Background
   ============================================ */
.bg-glow {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0b0f1a 100%);
    z-index: -1;
}
.bg-glow::before {
    content: "";
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px; left: 50%;
    transform: translateX(-50%);
    animation: float 10s ease-in-out infinite;
}
.bg-glow::after {
    content: "";
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(192,132,252,0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px; right: 10%;
    animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(30px); }
}

/* ============================================
   Navigation
   ============================================ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%; top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(11,15,26,0.8);
    transition: all 0.3s ease;
}
nav.scrolled {
    padding: 0.7rem 5%;
    background: rgba(11,15,26,0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.site-logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }
.nav-links .btn-booking {
    background: var(--accent);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white !important;
}
.nav-links .btn-booking::after { display: none; }
.nav-links .btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99,102,241,0.4);
    color: white !important;
}

/* ============================================
   Buttons
   ============================================ */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.cta-button::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.cta-button:hover::before { left: 100%; }
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99,102,241,0.6);
    color: white;
    text-decoration: none;
}

/* ============================================
   Main Content Wrapper
   ============================================ */
.main-content { padding-top: 70px; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    padding: 4rem 5%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 900;
}
.hero span, .gradient-text {
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .tagline {
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.hero .description {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ============================================
   Benefits Bar
   ============================================ */
.benefits {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 5%;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #94a3b8;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    cursor: default;
}
.benefit-item:hover {
    border-color: var(--accent);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99,102,241,0.2);
}
.benefit-item i { color: var(--accent); font-size: 1rem; }

/* ============================================
   Fleet / Car Grid
   ============================================ */
.fleet { padding: 3rem 5%; margin-bottom: 2rem; }
.fleet-header { text-align: center; margin-bottom: 2rem; }
.fleet-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.fleet-header p { font-size: 0.95rem; color: #94a3b8; }

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}
.car-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    display: block;
}
.car-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(99,102,241,0.3);
    color: var(--text-main);
    text-decoration: none;
}
.car-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.car-card:hover .car-img { transform: scale(1.05); }
.car-content { padding: 1.5rem; }
.car-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 700; }
.car-content .specs {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.8rem;
}
.price-badge {
    background: rgba(99,102,241,0.2);
    color: #a5b4fc;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.6rem;
}

/* ============================================
   Booking Form
   ============================================ */
.booking-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}
.booking-header { text-align: center; margin-bottom: 2rem; }
.booking-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.booking-header p { color: #94a3b8; font-size: 0.95rem; }

.glass-form {
    background: rgba(255,255,255,0.03);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 800px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    font-size: 0.85rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.5rem;
}
input, select, textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    color: white;
    border-radius: 12px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}
input::placeholder { color: #64748b; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
select option { background: #1e1b4b; color: white; }

/* CF7 override */
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.wpcf7-form .wpcf7-submit {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
    margin-top: 0.5rem;
}
.wpcf7-form .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99,102,241,0.6);
}
.wpcf7-response-output {
    color: #94a3b8;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

/* ============================================
   Car Detail Page
   ============================================ */
.car-detail {
    padding: 100px 5% 50px;
    max-width: 1400px;
    margin: 0 auto;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}
.back-button:hover { color: var(--accent); transform: translateX(-5px); }
.car-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.car-info { padding: 2rem; }
.car-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.price-tag {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2rem;
}
.car-description {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s ease;
}
.spec-item:hover {
    background: rgba(255,255,255,0.04);
}
.spec-item i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}
.spec-item h3 {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}
.spec-item p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}
.carousel {
    position: relative;
    width: 100%; height: 500px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(10px);
}
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.carousel-item {
    min-width: 100%; height: 100%;
    flex-shrink: 0;
}
.carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.carousel-control {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: white;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
}
.carousel-control:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
.carousel-control.prev { left: 1rem; }
.carousel-control.next { right: 1rem; }
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.indicator.active {
    background: var(--accent);
    transform: scale(1.3);
}
.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.thumbnail {
    width: 70px; height: 50px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}
.thumbnail:hover { opacity: 1; border-color: var(--accent); }
.thumbnail.active { opacity: 1; border-color: var(--accent); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    padding: 2rem 5%;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    background: rgba(11,15,26,0.8);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.8rem;
}
.footer-contact i { color: var(--accent); font-size: 0.75rem; }
.footer-divider { color: #334155; }
.footer-copyright { color: #64748b; font-size: 0.75rem; }

/* ============================================
   Smart grid width (1, 2 or 3+ cars)
   ============================================ */
.car-grid--one {
    grid-template-columns: minmax(280px, 420px) !important;
    justify-content: center;
}
.car-grid--two {
    grid-template-columns: repeat(2, minmax(280px, 480px)) !important;
    justify-content: center;
}

/* ============================================
   Card Mini Carousel
   ============================================ */
.card-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: rgba(255,255,255,0.03);
}
.card-carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
}
.card-carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}
.card-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.car-card:hover .card-carousel-slide img {
    transform: scale(1.05);
}
.card-carousel-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
    opacity: 0;
    z-index: 2;
}
.car-card:hover .card-carousel-btn { opacity: 1; }
.card-carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
.card-carousel-btn--prev { left: 0.6rem; }
.card-carousel-btn--next { right: 0.6rem; }

.card-carousel-dots {
    position: absolute;
    bottom: 0.6rem;
    left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px;
    z-index: 2;
}
.card-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}
.card-dot.active {
    background: white;
    transform: scale(1.3);
}
.card-carousel-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #334155; font-size: 3rem;
}

/* Detail link v kartě */
.specs-detail-link {
    margin-left: auto;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 0.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.car-card:hover .specs-detail-link { opacity: 1; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .car-grid { grid-template-columns: repeat(2, 1fr); }
    .car-grid--one { grid-template-columns: minmax(280px, 420px) !important; }
    .form-row { grid-template-columns: 1fr; }
    .car-detail-content { grid-template-columns: 1fr; }
    .carousel { height: 400px; }
}
@media (max-width: 768px) {
    .hero { padding: 2rem 5%; min-height: 50vh; }
    .hero h1 { font-size: 2rem; }
    .hero .description { font-size: 0.95rem; }
    .car-grid,
    .car-grid--one,
    .car-grid--two { grid-template-columns: 1fr !important; gap: 1rem; }
    .nav-links a:not(.btn-booking) { display: none; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-section { flex-direction: column; gap: 0.8rem; }
    .footer-divider { display: none; }
    .glass-form { padding: 1.5rem; }
    .benefits { gap: 0.6rem; }
    .benefit-item { width: 100%; justify-content: center; font-size: 0.8rem; }
    .booking-section { padding: 2rem 5%; }
    .car-info h1 { font-size: 2rem; }
    .price-tag { font-size: 1.5rem; }
    .specs-grid { grid-template-columns: 1fr; }
    .carousel { height: 300px; }
}
