* {
  box-sizing: border-box;
  margin: 0;
  font-family: Arial, sans-serif;
  /*border:1px solid rgb(255, 255, 255);*/
}

/* Make page a column flex container so footer can stick to bottom */
html, body {
  height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: white;
}

p {
  color: #ccc;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background-color: black;
}

.archivo-black-regular {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.oswald {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  background-color: transparent;
  padding: 1rem 2rem;
}

/* Main content should grow to fill available space */
.site-main{
  flex: 1 1 auto;
  padding: 2rem;
}

/* Utility: center content vertically inside `.site-main` */
.center-in-main{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  width: 100%;
  text-align: center;
}

/* Hero video above the cars grid */
.hero-video{
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 1.25rem;
}

.hero-video video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Cars grid */
.car-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-top: 2rem;
}

.car-card{
  background: #0f0f10;
  border: 1px solid #232323;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.car-card img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.car-info{
  padding: 0.75rem 1rem 1rem 1rem;
  color: #eee;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.car-info h2{
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
}

.car-meta{
  color: #a8a8a8;
  font-size: 0.9rem;
  margin: 0;
}

.car-price{
  margin-top: auto;
  font-weight: 700;
  color: #ffd24d;
}

.car-card.placeholder img{
  opacity: 0.6;
  filter: grayscale(30%);
}

/* Auth form styles (red / yellow / white theme) */
:root{
  --brand-yellow: #ffd24d;
  --brand-red: #ff4d4f;
  --brand-white: #ffffff;
  --muted: #bdbdbd;
}

.auth-form{
  max-width: 520px;
  margin: 2rem auto;
  background: rgba(20,20,20,0.7);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.auth-form h1{
  margin: 0 0 1rem 0;
  color: var(--brand-white);
  font-size: 1.6rem;
  text-align: center;
}

.auth-form label{
  display: block;
  margin: 0.6rem 0 0.25rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="number"],
.auth-form textarea{
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.6);
  color: var(--brand-white);
  font-size: 1rem;
}

/* Form card layout replacing Bootstrap .card */
.form-card{
  max-width: 920px;
  margin: 1.5rem auto;
  background: rgba(12,12,12,0.6);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
}

.form-header{
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  color: var(--brand-white);
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.form-body{
  padding: 1.25rem;
}

.list-plain{
  margin: 0;
  padding-left: 1rem;
}
.list-plain li{color: #ffd6d6}

/* Dashboard grid and cards */
.dashboard-grid{
  max-width: 980px;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: start;
}

.dash-card{
  background: rgba(12,12,12,0.6);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 1.1rem;
  border-radius: 10px;
}

.dash-stats ul{padding-left:1rem}
.dash-stats li{color:#ddd;margin-bottom:.4rem}

@media (max-width: 768px){
  .dashboard-grid{grid-template-columns:1fr; padding:0 1rem}
}

/* Car detail layout: image + aside */
.car-detail{
  max-width: 980px;
  margin: 1.5rem auto;
}

.car-detail-grid{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1rem;
  align-items: start;
}

.car-detail-grid img{
  width:100%;
  border-radius:8px;
  object-fit:cover;
  max-height:480px;
}

@media (max-width: 768px){
  .car-detail-grid{
    grid-template-columns: 1fr;
  }
  .car-detail-grid aside{
    order: 2;
  }
}

/* Plain anchor that can wrap other elements without visual decoration */
.link-plain,
a.link-plain{
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: stretch;
  width: auto;
}

.link-plain:hover,
a.link-plain:hover,
.link-plain:active,
a.link-plain:active{
  text-decoration: none;
  color: inherit;
}

/* Keep an accessible focus ring rather than removing it */
.link-plain:focus-visible,
a.link-plain:focus-visible{
  outline: 3px solid rgba(255,210,77,0.14);
  outline-offset: 2px;
}

/* Currency / numeric input alignment */
.currency-input{
  text-align: right;
}

/* Remove native number input spinners for consistent styling */
/* Chrome, Safari, Edge */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Select and file inputs: match other form controls */
.auth-form select{
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.6);
  color: var(--brand-white);
  font-size: 1rem;
}

.auth-form select:focus{
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 6px rgba(255,210,77,0.07);
}

.auth-form input[type="file"]{
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.6);
  color: var(--brand-white);
  font-size: 0.95rem;
}

/* Style the file button in modern browsers */
.auth-form input[type="file"]::file-selector-button{
  background: linear-gradient(180deg,var(--brand-yellow),#f2c23a);
  border: none;
  padding: 0.45rem 0.7rem;
  margin-right: 0.5rem;
  border-radius: 6px;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.auth-form input[type="file"]::-webkit-file-upload-button{
  background: linear-gradient(180deg,var(--brand-yellow),#f2c23a);
  border: none;
  padding: 0.45rem 0.7rem;
  margin-right: 0.5rem;
  border-radius: 6px;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

.auth-form input:focus{
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 6px rgba(255,210,77,0.07);
}

.auth-form .error{
  color: var(--brand-red);
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.auth-form .contrast{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

.auth-form button[type="submit"]{
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(180deg,var(--brand-yellow),#f2c23a);
  color: #111;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255,210,77,0.12);
}

.auth-form button[type="submit"]:hover{
  transform: translateY(-1px);
}

@media (max-width: 768px){
  .auth-form{padding: 1rem; margin: 1rem;}
  .auth-form h1{font-size:1.3rem}
}

/* Reusable button / link styles */
.btn,
button.btn,
input[type="submit"].btn,
input.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
  vertical-align: middle;
  font-family: inherit;
}

.btn:focus,
button.btn:focus,
input[type="submit"].btn:focus{
  outline: none;
  box-shadow: 0 0 0 6px rgba(255,210,77,0.08);
}

.btn-primary{
  background: linear-gradient(180deg,var(--brand-yellow),#f2c23a);
  color: #111;
  border: none;
  padding: 0.1rem;
  border-radius: 8px;
  font-weight: 300;
  box-shadow: 0 8px 20px rgba(255,210,77,0.12);
}

.btn-primary:hover{transform: translateY(-1px);}

.btn-ghost{
  background: transparent;
  color: var(--brand-white);
  border-color: rgba(255,255,255,0.08);
}

.btn-ghost:hover{
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,210,77,0.18);
}

.btn-link{
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--brand-yellow);
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}

.btn-sm{padding: 0.35rem 0.6rem; font-size: 0.9rem; border-radius: 8px}
.btn-lg{padding: 0.85rem 1.25rem; font-size: 1.05rem}

/* Logo */
header img{
  display: block;

  height: 80px;
  width: auto;
}

/* Navigation on the right */
.header-nav{
  display: flex;
  gap: 1rem;
  align-items: center;
}

header a{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: white;
  padding: 6px 8px;
  font-size: 1.2rem;
  font-family: "Oswald", sans-serif;
}


/* Footer pinned to bottom when content is short */
.site-footer{
  background-color: #111;
  color: #ddd;
  padding: 1rem 2rem;
  text-align: center;
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 768px) {
  .site-header{
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .header-nav{
    flex-direction: row;
    gap: 0.5rem;
  }

  header img{
    height: 100px;
    margin-bottom: 1rem;
  }
  
}
