/* =========================================
   AUTO RENT PREMIUM UI - FINAL COMPLETE
========================================= */

/* --- 1. VÁLTOZÓK & ALAPOK --- */
:root {
  --primary: #FF3B30;        /* Sport-piros */
  --primary-hover: #D63026;
  --dark: #0A0F1C;           /* Éjszakai kék/fekete */
  --text-main: #1D1D1F;
  --text-muted: #86868B;
  --light-gray: #F5F5F7;
  --card-bg: #FFFFFF;
  
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.1);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-gray);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand-font {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
input, textarea, button { font-family: 'Inter', sans-serif; }

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

/* Page Wrapper (hogy a fix fejléc ne takarjon ki semmit) */
.page-wrapper {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.page-title-box { text-align: center; margin-bottom: 50px; }
.page-title-box h1 { font-size: 2.5rem; color: var(--dark); margin-bottom: 10px; }
.page-title-box p { color: var(--text-muted); font-size: 1.1rem; }

/* --- 2. HEADER (ÜVEG + SOLID MÓD) --- */
.glass-header {
  position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 1000;
  background: transparent; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.glass-header.scrolled, .glass-header.header-solid {
  background: rgba(10, 15, 28, 0.95); /* Sötét háttér */
  backdrop-filter: blur(15px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo-link { font-size: 1.6rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.logo-link .highlight { color: var(--primary); }

.desktop-nav .nav-links { display: flex; gap: 40px; }
.nav-item {
  color: rgba(255, 255, 255, 0.75); font-weight: 500; font-size: 0.95rem; position: relative; padding: 5px 0;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.nav-item:hover { color: #fff; }
.nav-item::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
  background: var(--primary); transform: translateX(-50%); transition: width 0.3s ease;
}
.nav-item:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 20px; }
.btn-header-login {
  color: #fff; font-weight: 600; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 24px; border-radius: 100px;
}
.btn-header-login:hover { background: #fff; color: var(--dark); border-color: #fff; }

.user-profile { color: #fff; display: flex; align-items: center; gap: 15px; font-size: 0.9rem; }
.btn-logout { color: #fff; opacity: 0.7; font-size: 1.2rem; }
.btn-logout:hover { opacity: 1; color: var(--primary); transform: rotate(90deg); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 24px; height: 2px; background: #fff; transition: 0.4s; }

.mobile-menu {
  position: fixed; top: 70px; left: 0; width: 100%; background: var(--dark); padding: 30px;
  display: flex; flex-direction: column; gap: 20px; text-align: center;
  transform: translateY(-150%); transition: transform 0.4s ease; z-index: 990;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { color: #fff; font-size: 1.2rem; font-weight: 600; }

/* --- 3. HERO (HOME) --- */
.home-hero {
  height: 100vh; min-height: 700px;
  background: linear-gradient(to bottom, rgba(10,15,28,0.3), rgba(10,15,28,0.9)), url('../imgs/hero_car.jpg') center/cover no-repeat fixed;
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; position: relative;
}
.hero-content { max-width: 900px; padding: 0 20px; margin-top: 60px; animation: slideUp 1s ease; }
.hero-badge {
  display: inline-block; background: rgba(255, 59, 48, 0.15); color: #FF6B6B;
  border: 1px solid rgba(255, 59, 48, 0.3); padding: 8px 16px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 25px; backdrop-filter: blur(5px);
}
.home-hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.home-hero p { font-size: 1.25rem; color: rgba(255,255,255,0.85); margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
.btn-primary {
  background: var(--primary); color: #fff; padding: 18px 45px; border-radius: 100px;
  font-size: 1.1rem; font-weight: 600; box-shadow: 0 10px 25px rgba(255, 59, 48, 0.4);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(255, 59, 48, 0.6); }

/* --- 4. SZOLGÁLTATÁSOK --- */
.features-strip { padding: 100px 0; background: #fff; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.feature-box { padding: 40px; background: var(--light-gray); border-radius: var(--radius); transition: 0.3s; }
.feature-box:hover { background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.icon-box { width: 60px; height: 60px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin-bottom: 25px; box-shadow: var(--shadow-sm); }
.feature-box h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--dark); }

/* --- 5. KATEGÓRIÁK --- */

/* A kategória kártyák háttérképeinek javítása */
.cat-card-bg {
    width: 100%;
    height: 100%;
    /* A cover-t átírjuk contain-re, hogy az egész kép beleférjen */
    background-size: contain !important; 
    background-position: center !important;
    background-repeat: no-repeat !important;
    /* Adunk neki egy világos hátteret, hogy ne legyen üres fekete/fehér folt a széleken */
    background-color: #f9f9f9; 
    transition: transform 0.5s ease;
}

/* Kiemelés: ha fölé viszed az egeret, egy kicsit nőjön meg a kocsi */
.cat-card:hover .cat-card-bg {
    transform: scale(1.1);
}

/* Biztosítjuk, hogy a kártya fix magasságú legyen */
.cat-card {
    height: 250px; /* Ezt ízlés szerint állíthatod */
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid #eee;
    background: #f9f9f9;
}

/* --- 6. CTA & FOOTER --- */
.cta-section { background: var(--dark); color: #fff; padding: 100px 0; text-align: center; }
.cta-content { display: flex; flex-direction: column; align-items: center; }
.btn-white { background: #fff; color: var(--dark); padding: 16px 40px; border-radius: 100px; font-weight: 700; }
.btn-white:hover { background: var(--primary); color: #fff; }
footer { background: #05080f; color: #555; padding: 60px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- 7. TÉRKÉP & KAPCSOLAT --- */
.map-container-wrapper { position: relative; width: 100%; height: 500px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); margin-top: 30px; border: 1px solid #eee; }
#map { width: 100%; height: 100%; z-index: 1; }
.map-card { position: absolute; top: 30px; left: 30px; background: rgba(255, 255, 255, 0.95); padding: 25px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 999; max-width: 300px; border-left: 5px solid var(--primary); }
.contact-container { display: flex; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-text { flex: 1; padding: 60px; background: var(--dark); color: #fff; }
.contact-form-wrapper { flex: 1.2; padding: 60px; background: #fff; }
.home-form input, .home-form textarea { width: 100%; padding: 16px; margin-bottom: 20px; border: 2px solid #f0f0f0; background: #f9f9f9; border-radius: 12px; transition: 0.3s; }
.home-form input:focus, .home-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.home-form button { width: 100%; padding: 16px; background: var(--dark); color: #fff; border: none; border-radius: 12px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.home-form button:hover { background: var(--primary); }

/* --- 8. LOGIN / REGISTER FORM STÍLUSOK (Új) --- */
.auth-form {
  background: #fff; padding: 40px 50px; border-radius: 24px; box-shadow: var(--shadow-lg);
  max-width: 400px; width: 90%; text-align: center; margin: 0 auto;
}
.auth-form h3 { font-size: 1.8rem; color: var(--dark); margin-bottom: 30px; }
.auth-form input { width: 100%; padding: 14px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 12px; background: #fafafa; }
.auth-form input:focus { border-color: var(--primary); outline: none; background: #fff; }
.auth-form button { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; margin-bottom: 15px; transition: 0.3s; }
.auth-form button:hover { background: var(--primary-hover); transform: translateY(-2px); }
.secondary-btn { display: block; background: #f0f0f0; color: #555; padding: 12px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 10px; }
.back-btn { display: block; margin-top: 20px; color: #888; font-size: 0.9rem; }

/* POPUP */
.popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.popup-content { background: #fff; padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; border-top: 5px solid var(--primary); animation: slideUp 0.3s ease; }
.popup-content.success { border-color: #2ecc71; }
.popup-content h2 { font-size: 1.4rem; margin-bottom: 10px; }
.popup-btn { background: var(--dark); color: #fff; padding: 10px 25px; border-radius: 50px; display: inline-block; cursor: pointer; border: none; font-weight: 600; margin-top: 15px; }

/* --- 9. FOGLALÁS & FLOTTA (ALOLDALAK) --- */
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.fleet-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #eee; transition: 0.3s; display: flex; flex-direction: column; }
.fleet-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.fleet-img-box { height: 200px; width: 100%; overflow: hidden; }
.fleet-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.fleet-card:hover img { transform: scale(1.1); }
.fleet-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.fleet-brand { font-size: 1.4rem; font-weight: 700; color: var(--dark); }
.fleet-model { color: var(--primary); font-weight: 600; margin-bottom: 15px; display: block; }
.fleet-specs { display: flex; gap: 15px; color: #888; font-size: 0.85rem; margin-bottom: 20px; }
.fleet-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f5f5f5; padding-top: 15px; }
.fleet-price { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.btn-book-sm { background: var(--dark); color: #fff; padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; }
.btn-book-sm:hover { background: var(--primary); }



/* ÁRLISTA ROW DESIGN */
.prices-table-container { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.price-item-row { display: flex; align-items: center; padding: 20px 30px; border-bottom: 1px solid #f0f0f0; transition: 0.2s; }
.price-item-row:hover { background: #fafafa; }
.p-col-img img { width: 80px; height: 50px; object-fit: cover; border-radius: 8px; }
.p-col-name { flex: 1; padding-left: 20px; font-weight: 700; color: var(--dark); }
.p-col-price { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

/* FOGLALÁSI OLDAL (BOOKING PAGE) */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vehicle-summary-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #eee; }
.booking-form-card { background: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-lg); }
.fancy-input { width: 100%; padding: 14px; border: 2px solid #eee; border-radius: 12px; margin-bottom: 20px; font-family: 'Inter', sans-serif; }
.fancy-input:focus { border-color: var(--primary); outline: none; }
.total-price-box { background: var(--dark); color: #fff; padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 20px; }
.btn-confirm-booking { width: 100%; padding: 16px; background: var(--primary); color: #fff; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-confirm-booking:hover { background: var(--dark); }

@media (max-width: 900px) {
  .home-hero h1 { font-size: 3rem; }
  .desktop-nav, .btn-header-login, .user-profile { display: none; }
  .hamburger { display: flex; }
  .contact-container, .booking-grid { flex-direction: column; }
  .fleet-grid { grid-template-columns: 1fr; }
}
@keyframes slideUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }