:root {
  --hr-accent: #fff000;
  --hr-neon: #ff2dfb;
  --hr-blue: #00eaff;
  --hr-text: #ffffff;
  --hr-border: rgba(255,255,255,.35);
  --hr-bg: rgba(0,0,0,.65);
  --hr-bg-soft: rgba(0,0,0,.45);
  --hr-shadow: 0 10px 30px rgba(0,0,0,.6);
  --hr-radius: 14px;
}

/* RPO list styling */
.rpo-list {
    text-align: left;
    font-size: 0.9em;
    margin: 8px 0 16px;
    padding: 10px;
    background: rgba(255,255,255,.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
}

.rpo-item {
    margin: 4px 0;
    padding: 2px 0;
    border-bottom: 1px dotted rgba(255,255,255,.2);
}

.rpo-item:last-child { border-bottom: none; }

/* Wrapper */
.hot-rods-wrapper { color: var(--hr-text); }

/* Gallery grid */
.hot-rods-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 30px auto;
  padding: 20px;
  border-radius: var(--hr-radius);
  background: linear-gradient(145deg, #111, #000);
  box-shadow: 0 0 50px rgba(0,0,0,.9);
}

/* Hot rod card */
.hot-rod-item {
  position: relative;
  padding: 20px;
  border-radius: var(--hr-radius);
  background: linear-gradient(145deg, #1a1a1a, #050505);
  border: 1px solid rgba(255,255,255,.2);
  text-align: center;
  transition: .3s ease;
  overflow: visible !important;
}

.hot-rod-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 30px rgba(255,240,0,.3), 0 0 50px rgba(0,234,255,.2);
  border-color: var(--hr-blue);
}

/* Image & video */
.hot-rod-item img, .hot-rod-item iframe {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Title & info */
.hot-rod-item h3 {
  margin: 12px 0 8px;
  color: var(--hr-accent);
  text-shadow: 0 0 10px rgba(255,240,0,.8);
  font-size: 1.45em;
}

.hot-rod-item p { margin: 6px 0; font-size: 0.96em; }

/* Featured badge - FIXED with z-index so it sits on top of carousel */
.hot-rod-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff000, #ff6a00);
  color: #000;
  box-shadow: 0 0 15px rgba(255,240,0,.9);
  animation: pulseGlow 2s infinite alternate;
  z-index: 30; /* ← This fixes the badge being behind the carousel */
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 10px rgba(255,240,0,.7); }
  to   { box-shadow: 0 0 25px rgba(255,240,0,1); }
}

/* Like & Rating */
.hr-like, .hr-rating { margin: 12px 0; }
.hr-like { font-size: 26px; cursor: pointer; }
.hr-like:hover { transform: scale(1.2); }
.hr-like.liked { color: #ff0044; }
.star { font-size: 24px; cursor: pointer; }

/* === FIXED SCROLL + BIGGER REPLY === */
.hr-comments {
  margin: 20px 0 16px;
  max-height: 340px !important;
  overflow-y: scroll !important;
  padding-right: 14px;
  scrollbar-width: thin;
  scrollbar-color: #ffd700 #222;
  pointer-events: auto !important;
  -webkit-overflow-scrolling: touch;
}

.hr-comments::-webkit-scrollbar { width: 8px; }
.hr-comments::-webkit-scrollbar-thumb { background: #ffd700; border-radius: 4px; }

/* Threaded replies */
.hr-comment-thread {
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 4px solid #ffd700;
}

/* Reply link – now much bigger & easier to click */
.hr-reply-link {
  display: inline-block;
  padding: 8px 16px !important;
  font-size: 0.95em;
  color: #ffd700;
  background: rgba(255,215,0,0.1);
  border-radius: 8px;
  text-decoration: none;
  transition: .2s;
}

.hr-reply-link:hover {
  background: rgba(255,215,0,0.25);
  color: #fff;
  transform: scale(1.05);
}

/* Comment form */
.hr-comment-form {
  margin-top: 16px;
}

.hr-comment-form input,
.hr-comment-form textarea {
  width: 100%;
  margin: 8px 0;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
}

.hr-comment-form textarea { min-height: 70px; resize: vertical; }

.hr-comment-form button {
  padding: 10px 20px;
  background: linear-gradient(90deg, #ff2dfb, #00eaff);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Forms */
.hot-rods-form, .hot-rods-filter {
  max-width: 740px;
  margin: 30px auto;
  padding: 28px;
  border-radius: var(--hr-radius);
  background: linear-gradient(145deg, #111, #000);
  box-shadow: 0 0 40px rgba(0,0,0,.9);
}

.hot-rods-form label, .hot-rods-filter label {
  display: block;
  margin: 14px 0 6px;
  font-weight: bold;
}

.hot-rods-form input, .hot-rods-form textarea, .hot-rods-filter input {
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
}

.hot-rods-form input[type="submit"], .hot-rods-filter input[type="submit"] {
  margin-top: 20px;
  background: linear-gradient(90deg, #fff000, #ff6a00);
  color: #000;
  font-weight: bold;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
}

/* Notices */
.hot-rods-notice {
  padding: 16px 24px;
  margin: 20px 0;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 600px) {
  .hot-rods-gallery { grid-template-columns: 1fr; }
  .hr-comments { max-height: 260px !important; }
  .hr-reply-link { padding: 10px 18px !important; font-size: 1em; }
}

/* === ADDED for Upgrade #2: Multiple Images Grid === */
.hr-multi-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.hr-multi-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hr-multi-images img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(255,240,0,0.25);
}

/* === ADDED for Upgrade #3: Sorting/Filter Form === */
.hot-rods-filter {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--hr-radius);
    padding: 20px;
    margin: 0 auto 40px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    text-align: center;
}

.hot-rods-filter label {
    display: inline-block;
    margin-right: 12px;
    font-weight: bold;
    color: var(--hr-accent);
    vertical-align: middle;
}

.hot-rods-filter select {
    padding: 10px 16px;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    font-size: 1em;
    min-width: 220px;
    vertical-align: middle;
}

.hot-rods-filter input[type="submit"] {
    padding: 10px 24px;
    background: linear-gradient(90deg, var(--hr-accent), #ff6a00);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
}

.hot-rods-filter input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,240,0,0.4);
}

@media (max-width: 600px) {
    .hot-rods-filter label,
    .hot-rods-filter select,
    .hot-rods-filter input[type="submit"] {
        display: block;
        width: 100%;
        margin: 12px 0;
    }
}

/* ============================================= */
/* NEW: AUTO-SLIDING CAROUSEL STYLES (added only) */
/* ============================================= */
.hr-image-carousel {
    position: relative;
    width: 100%;
    max-height: 280px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #000;
    box-shadow: 0 0 20px rgba(255,240,0,.2);
    z-index: 5; /* ensures badge can sit on top */
}

.hr-image-carousel .slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}

.hr-image-carousel .slide {
    flex: 0 0 100%;
    max-height: 280px;
}

.hr-image-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hr-image-carousel .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    border: none;
    width: 48px;
    height: 48px;
    font-size: 28px;
    line-height: 44px;
    cursor: pointer;
    z-index: 20;
    border-radius: 50%;
    transition: all 0.3s;
    text-align: center;
}

.hr-image-carousel .arrow:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.hr-image-carousel .arrow.left { left: 12px; }
.hr-image-carousel .arrow.right { right: 12px; }

.hr-image-carousel .dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.hr-image-carousel .dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: .3s;
}

.hr-image-carousel .dot.active {
    background: #ffd700;
    transform: scale(1.3);
    box-shadow: 0 0 12px #ffd700;
}

@media (max-width: 600px) {
    .hr-image-carousel .arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}