/* EV Page ( /ev ) - dedicated stylesheet */

.ev-page{
  background: linear-gradient(180deg, rgba(240, 252, 255, 0.65), rgba(248, 250, 252, 0.85) 35%, #f8fafc 100%);
  min-height: 100%;
  padding-bottom: 2.25rem;
}

.ev-page :where(a, button, [role="tab"]):focus-visible{
  outline: 3px solid rgba(20,242,184,0.35);
  outline-offset: 2px;
  border-radius: 12px;
}

.ev-hero{
  background:
    radial-gradient(1200px 500px at 20% 10%, rgba(64,255,198,0.35), transparent 60%),
    radial-gradient(900px 450px at 80% 20%, rgba(0,153,255,0.25), transparent 60%),
    linear-gradient(135deg, #07121A 0%, #071A1C 50%, #061018 100%);
  color:#EAF7FF;
  padding: 2.5rem 0 2rem;
  margin-top:-20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.ev-hero-slider{
  margin-top:1.8rem;
  position: relative;
}
.ev-hero-slide{
  display:block;
  position:absolute;
  inset:0;
  opacity:0;
  transform: translate3d(0, 10px, 0) scale(.985);
  filter: blur(0px);
  pointer-events:none;
}
.ev-hero-slide.active{
  opacity:1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events:auto;
}
.ev-hero-slider::before{
  content:"";
  position:absolute;
  inset:-18px -18px -18px -18px;
  background:
    radial-gradient(600px 240px at 15% 20%, rgba(20,242,184,0.18), transparent 60%),
    radial-gradient(520px 260px at 85% 15%, rgba(0,153,255,0.18), transparent 65%);
  pointer-events:none;
  opacity:.85;
  filter: blur(2px);
}

/* Directional takeover transition */
.ev-hero-slide.is-entering{
  transition: transform .9s cubic-bezier(.2,.9,.2,1), opacity .9s ease;
}
.ev-hero-slide.is-leaving{
  transition: transform .9s cubic-bezier(.4,0,.6,1), opacity .9s ease;
  opacity:.0;
}
.ev-hero-slide.from-right{
  opacity: 1;
  transform: translate3d(28px, 0, 0) scale(.99);
}
.ev-hero-slide.from-left{
  opacity: 1;
  transform: translate3d(-28px, 0, 0) scale(.99);
}
.ev-hero-slide.to-left{
  transform: translate3d(-28px, 0, 0) scale(.99);
}
.ev-hero-slide.to-right{
  transform: translate3d(28px, 0, 0) scale(.99);
}

/* Electric sweep flash during change */
.ev-hero-slide.is-entering .ev-hero-bike-image{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.ev-hero-slide.is-entering .ev-hero-bike-image::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:60%;
  height:180%;
  background: linear-gradient(90deg, transparent, rgba(20,242,184,0.22), rgba(0,153,255,0.18), transparent);
  transform: rotate(18deg);
  animation: evSweep .9s ease forwards;
  pointer-events:none;
}
@keyframes evSweep{
  from{ transform: translateX(0) rotate(18deg); opacity:.0; }
  15%{ opacity:1; }
  to{ transform: translateX(220%) rotate(18deg); opacity:0; }
}

.ev-hero-slider-dots{
  position: relative;
  z-index: 2;
}

/* Height so absolute slides don't collapse */
.ev-hero-slider{
  min-height: 360px;
}
.ev-hero-bike-image img{
  width:100%;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,0,0,0.45);
  max-height: 340px;
  object-fit: contain;
  background: #ffffff;
}
.ev-hero-bike-content{
  color:#EAF7FF;
}
.ev-hero-brand{
  font-size:.9rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  opacity:.85;
}
.ev-hero-bike-name{
  font-weight:800;
  font-size:1.6rem;
  margin:.25rem 0 .6rem;
}
.ev-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin-bottom:.85rem;
}
.ev-hero-meta .meta-pill{
  border-radius:999px;
  padding:.28rem .75rem;
  font-size:.8rem;
  background:rgba(15,23,42,0.75);
  border:1px solid rgba(148,163,184,0.65);
}
.ev-hero-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  padding:.5rem 1rem;
  border-radius:999px;
  background:#22A359;
  color:#fff;
  font-weight:700;
  font-size:.9rem;
  text-decoration:none;
  box-shadow:0 15px 30px rgba(34,163,89,0.35);
}
.ev-hero-slider-dots{
  display:flex;
  gap:.35rem;
  margin-top:1rem;
  justify-content:flex-start;
}
.ev-hero-dot{
  appearance: none;
  -webkit-appearance: none;
  width:12px;
  height:12px;
  border-radius:999px;
  border: none;
  outline: none;
  background:rgba(148,163,184,0.55);
  padding:0;
  cursor:pointer;
}
.ev-hero-dot.active{
  width:34px;
  background:linear-gradient(90deg,#14F2B8,#0099FF);
}
.ev-hero-dot:focus-visible{
  outline: 3px solid rgba(20,242,184,0.35);
  outline-offset: 3px;
}

.ev-hero-cta{
  background: linear-gradient(90deg, #14F2B8, #0099FF);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 36px rgba(0,153,255,0.22);
}
.ev-hero-cta:hover{
  filter: brightness(1.02);
  box-shadow: 0 22px 46px rgba(0,153,255,0.28);
}

@media (max-width: 768px){
  .ev-hero-slider{margin-top:1.25rem}
  .ev-hero-bike-name{font-size:1.35rem}
  .ev-hero-bike-image img{max-height: 260px}
  .ev-hero-slider{min-height: 520px;}
}

@media (prefers-reduced-motion: reduce){
  .ev-hero-slide,
  .ev-hero-slide.is-entering,
  .ev-hero-slide.is-leaving{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    position: static !important;
    pointer-events: auto !important;
  }
  .ev-hero-slider{min-height: auto !important;}
  .ev-hero-slide.is-entering .ev-hero-bike-image::after{display:none !important;}
}
.ev-hero h1{font-weight:800;letter-spacing:-0.02em}
.ev-hero .sub{color:rgba(234,247,255,0.78)}
.ev-badges{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.ev-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  padding:.45rem .75rem;border-radius:999px;
  font-size:.85rem;color:rgba(234,247,255,0.9)
}
.ev-badge .dot{
  width:8px;height:8px;border-radius:50%;
  background:#28F0B5;
  box-shadow:0 0 16px rgba(40,240,181,0.65)
}

.ev-panel{
  background: #fff;
  border-radius:14px;
  box-shadow: 0 18px 45px rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(15,23,42,0.08);
  padding: 1rem;
  margin-top: -1.4rem;
  position: relative;
}

.ev-active-filters{
  margin: .75rem 0 1rem;
  padding: .85rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20,242,184,0.10), rgba(0,153,255,0.07));
  border: 1px solid rgba(15,23,42,0.08);
}
.ev-active-title{
  font-weight: 900;
  color: #0f172a;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.ev-filter-pills{display:flex;flex-wrap:wrap;gap:.5rem}
.ev-pill{
  display:inline-flex;align-items:center;gap:.45rem;
  padding: .42rem .65rem;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 850;
  font-size: .85rem;
  color: rgba(15,23,42,0.92);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.ev-pill span[aria-hidden="true"]{
  font-weight: 900;
  opacity: .75;
}
.ev-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(20,242,184,0.55);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.10);
  background: rgba(255,255,255,0.80);
}

.ev-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.ev-tab{
  border:1.5px solid rgba(15,23,42,0.12);
  background:#fff;color:#0f172a;
  padding:.5rem .75rem;border-radius:10px;
  font-weight:700;font-size:.85rem;cursor:pointer;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.ev-tab:hover{
  transform: translateY(-1px);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.08);
}
.ev-tab.active{
  border-color:#14F2B8;
  box-shadow:0 0 0 4px rgba(20,242,184,0.12);
  background: linear-gradient(180deg, rgba(20,242,184,0.08), rgba(0,153,255,0.05));
}
.ev-tab-content{display:none}
.ev-tab-content.active{display:block}

.ev-tab-indicator{
  display:block;
  height: 3px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #14F2B8, #0099FF);
  box-shadow: 0 0 18px rgba(20,242,184,0.35);
  transform: translateX(0);
  transition: width .18s ease, transform .18s ease;
  align-self: flex-end;
}

.ev-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.65rem}
.ev-chip{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;
  padding:.7rem .8rem;border-radius:12px;
  border:1.5px solid rgba(15,23,42,0.10);
  background: linear-gradient(180deg, rgba(20,242,184,0.06), rgba(0,153,255,0.04));
  text-decoration:none;color:#0f172a;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.ev-chip:hover{
  transform: translateY(-1px);
  border-color: rgba(20,242,184,0.6);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.08);
  background: linear-gradient(180deg, rgba(20,242,184,0.09), rgba(0,153,255,0.06));
}
.ev-chip strong{font-size:.92rem}
.ev-chip small{color:rgba(15,23,42,0.62)}

.ev-results-header{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:1rem;flex-wrap:wrap;margin:1.2rem 0 .75rem
}
.ev-results-header .count{font-weight:800;color:#0f172a}
.ev-results-header .hint{color:rgba(15,23,42,0.65);font-size:.9rem}

.ev-page .alert.alert-warning{
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.30);
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.75), rgba(254, 243, 199, 0.55));
  color: #7c4a00;
}

/* Make listing cards feel more “EV premium” but scoped to EV page */
.ev-page .modern-motorcycle-card{
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.10);
}
.ev-page .modern-motorcycle-card:hover{
  box-shadow: 0 24px 55px rgba(2, 132, 199, 0.14);
}

.ev-article{
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(20,242,184,0.08), rgba(0,153,255,0.06));
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.08);
}
.ev-article h2{font-size:1.25rem;font-weight:900;margin:0 0 .25rem}
.ev-article .lead{color:rgba(15,23,42,0.72);margin:0 0 .75rem}
.ev-article .snippet{
  overflow:hidden;
  /* Primary cross-browser truncation using max-height */
  max-height:5.4rem; /* ~3 lines */
  /* Progressive enhancement for WebKit-based browsers */
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.ev-article.expanded .snippet{
  max-height:none;
  -webkit-line-clamp:unset;
}
.ev-article #evKwLinks{
  display:flex;
  flex-wrap:wrap;
  gap: .4rem .45rem;
  margin-top: .25rem;
}
.ev-article a.kw{
  display:inline-block;
  margin: .12rem .35rem .12rem 0;
  text-decoration:none;
  font-weight:800;
  color:#0b3b2d;
  background: rgba(20,242,184,0.18);
  border: 1px solid rgba(20,242,184,0.35);
  padding: .18rem .45rem;
  border-radius: 999px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.ev-article a.kw:hover{background: rgba(20,242,184,0.26)}
.ev-article .toggle{
  border: 1px solid rgba(2, 132, 199, 0.20);
  background: rgba(255,255,255,0.65);
  color:#075985;
  font-weight:900;
  padding:.45rem .75rem;
  margin-top:.8rem;
  cursor:pointer;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.ev-article .toggle:hover{
  transform: translateY(-1px);
  border-color: rgba(20,242,184,0.40);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.10);
  background: rgba(255,255,255,0.80);
}

@media (max-width: 768px){
  .ev-hero{padding:2rem 0 1.6rem}
  .ev-panel{margin-top:-1rem}
  .ev-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .2rem;
  }
  .ev-tabs::-webkit-scrollbar{height:6px}
  .ev-tabs::-webkit-scrollbar-thumb{background: rgba(15,23,42,0.14);border-radius:999px}
  .ev-tab{white-space:nowrap}
}

@media (prefers-reduced-motion: reduce){
  .ev-chip,
  .ev-tab,
  .ev-pill,
  .ev-article .toggle{
    transition: none !important;
  }
  .ev-tab-indicator{
    transition: none !important;
  }
}

