@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --primary: #00FFF7;
    --accent:  #ff1493;
    --background:#1a1b2f;
    --surface:   #24263b;
    --text:      #ffffff;
    --muted:     #b0b0b0;
    --light-bg:  #f9f9f9;
    --input-dark:#2d2e41;
  }

html,body{
    height:100%;
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    background:var(--background);
    color:var(--text);
    display:flex;
    flex-direction:column;
    line-height:1.6}

    main{flex:1}

.header-dark {
  background: var(--surface);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--accent);
  color: #fff;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('../img/bannercar.png') center/cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.hero-text {
  margin-top: -22%;
  z-index: 2;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.search-box {
  background: var(--surface);
  padding: 2rem;
  margin: -20rem auto 2rem;
  max-width: 1100px;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.3);
  justify-content: center;
  position: relative;
  z-index: 3;
}

.search-box input,
.search-box select,
.search-box button {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  flex: 1 1 200px;
  min-width: 150px;
}

.search-box input,
.search-box select {
  background-color: var(--input-dark);
  color: var(--text);
}

.search-box button {
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.search-box button:hover {
  background: var(--primary);
  color: black;
}

.btn {
  background: var(--primary);
  color: #000;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn-glow {
  box-shadow: 0 0 15px var(--primary);
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  border-radius: 16px;
}

.grid {
  margin-top: 7%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  transition: 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.container-cars {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.cars-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.cars-card {
  background: var(--surface);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cars-card:hover {
  transform: translateY(-5px);
}

.cars-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.cars-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
}

.cars-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cars-card .btn {
  margin-top: auto;
}

footer.footer-dark {
  background: var(--surface);
  color: var(--text);
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

.text-glow {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #666;
  background: #2d2e41;
  color: #fff;
}

label {
  font-weight: 600;
  margin-top: 1rem;
  display: block;
  color: var(--text);
}

.form-container {
  max-width: 400px;
  background: var(--surface);
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.form-container h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.rounded {
  border-radius: 10px;
}

.auth-popup-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-popup-bg.active {
  display: flex;
}

.auth-popup {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: popupFadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes popupFadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.auth-popup h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.auth-popup form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-popup input {
  width: 90%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 6px;
  background-color: var(--input-dark);
  color: var(--text);
  font-size: 0.95rem;
}

.auth-popup button {
  width: 90%;
  padding: 0.8rem;
  background: var(--primary);
  border: none;
  color: black;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.auth-popup button:hover {
  background: var(--accent);
  color: white;
}

.auth-popup p {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.auth-popup a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.auth-popup a:hover {
  text-decoration: underline;
}

.auth-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

.category { color:#ff006e; font-size:.8rem; font-weight:600; }
.rent-btn:hover { background:#00FFF7; color:#000; }
.detail-img { filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

.hidden { display:none !important; }

#profileMenu {
  display:inline-block;
  color:var(--primary);
  font-weight:600;
}

#profileMenu a {
  color:var(--primary);
  text-decoration:none;
  margin-left:.25rem;
}
/* === Araç Detay Sayfası Görünümü === */
#car-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

/* Sol Kart: Araç Bilgisi */
.car-card {
  max-width: 600px;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.car-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0.2rem 0 1rem;
}

.car-card .category {
  color: #ff006e;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.car-card .detail-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3));
  margin-bottom: 1.5rem;
}

/* Bilgi kutuları (iki kolonlu yapı) */
.detail-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.detail-bottom > div {
  flex: 1;
}

.detail-bottom h4 {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.detail-bottom ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-bottom li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Sağ Kart: Rezervasyon Kutusu */
.reserve-box {
  flex: 1 1 300px;
  max-width: 360px;
  background: var(--surface);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.reserve-box h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text);
}

.reserve-box label {
  font-weight: 600;
  display: block;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.reserve-box input[type="date"] {
  width: 94%;
  padding: 0.65rem;
  border: 1px solid #555;
  border-radius: 6px;
  background: var(--input-dark);
  color: var(--text);
  font-size: 0.9rem;
}

.reserve-box .btn {
  width: 100%;
  margin-top: 1rem;
  background: var(--primary);
  color: #000;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.reserve-box .btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Geri Butonu */
#car-details .back-btn {
  order: 3;
  flex: 0 0 100%;
  align-self: center;
  margin-top: 2rem;
  padding: 0.9rem;
  background: var(--primary);
  color: #000;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
  display: inline-block;
  font-size: 0.95rem;
  cursor: pointer;
}

#car-details .back-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* ✅ Ekran küçülünce alt alta geçmesi için */
@media (max-width: 992px) {
  #car-details {
    flex-direction: column;
    align-items: center;
  }

  .car-card,
  .reserve-box {
    max-width: 100%;
  }
}
