/*
 * custom.css — Amazon-style overrides
 * Loaded LAST so these rules take priority over bootstrap + style.css
 */

:root {
  --primary: #FF9900;       /* Amazon orange */
  --accent:  #146EB4;       /* Blue accent   */
  --dark-bg: #232F3E;       /* Header/footer dark bg */
  --light-bg: #F5F5F5;      /* Page background */
  --text: #212529;
  --font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ── Global ─────────────────────────────────────── */
body {
  background-color: var(--light-bg) !important;
  color: var(--text) !important;
  font-family: var(--font-family) !important;
}

/* ── Navbar / Header ────────────────────────────── */
.app-header,
.navbar.app-header {
  background-color: var(--dark-bg) !important;
  border-bottom: 2px solid var(--primary) !important;
  box-shadow: none !important;
}

.app-header .navbar-brand,
.app-header .app-brand,
.app-header .app-brand span {
  color: #fff !important;
}

.app-header .nav-link {
  color: #ccc !important;
}

.app-header .nav-link:hover {
  color: var(--primary) !important;
  background: transparent !important;
}

.app-header .brandmark {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: #e88a00 !important;
  color: #111 !important;
}

.btn-primary:hover {
  background-color: #e88a00 !important;
}

.btn-outline-dark {
  color: #232F3E !important;
  border-color: #232F3E !important;
  background-color: transparent !important;
}

.btn-outline-dark:hover {
  background-color: #232F3E !important;
  color: #fff !important;
}

/* In the dark navbar context, outline-dark buttons get lighter treatment */
.app-header .btn-outline-dark {
  color: #fff !important;
  border-color: rgba(255,255,255,.6) !important;
  background-color: transparent !important;
}

.app-header .btn-outline-dark:hover {
  background-color: rgba(255,255,255,.15) !important;
  color: #fff !important;
}

.btn-light {
  background-color: #fff !important;
  color: var(--text) !important;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
  color: #fff !important;
  border-bottom: none !important;
}

.hero h1,
.hero h1 span.text-primary {
  color: #fff !important;
}

.hero .lead,
.hero p {
  color: rgba(255,255,255,.88) !important;
}

.hero .searchbox {
  background: #fff !important;
  border-radius: 8px !important;
}

/* ── Cards ──────────────────────────────────────── */

/* Ensure the column / link wrapper stretches to full row height */
.col-md-6.col-lg-3,
.col-md-6.col-lg-4,
.swiper-slide {
  display: flex;
  flex-direction: column;
}

.launch-card-link {
  display: flex !important;
  flex-direction: column;
  flex: 1;
}

/* Card itself: full height flex column */
.launch-card {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s !important;
  /* Flex column so the body grows and footer is pinned */
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.launch-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.12) !important;
  border-color: var(--primary) !important;
}

/* The image/icon area: fixed height */
.launch-card .launch-cover,
.launch-card .product-art {
  flex-shrink: 0;
  height: 160px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* The text body: grows to fill remaining space */
.launch-card .p-3,
.launch-card .p-4 {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Description: grows to push footer down */
.launch-card .p-3 p,
.launch-card .p-4 p {
  flex: 1;
  margin-bottom: .75rem;
}

/* Bottom row (company + votes): always at bottom */
.launch-card .p-3 .d-flex:last-child,
.launch-card .p-4 .d-flex:last-child {
  margin-top: auto;
}

.category-card {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
}

.category-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.1) !important;
}

/* ── Footer ─────────────────────────────────────── */
footer,
footer.site-footer,
.site-footer {
  background-color: var(--dark-bg) !important;
  color: #ddd !important;
  border-top: 2px solid var(--primary) !important;
  margin-top: 0 !important;
}

.site-footer h6 {
  color: var(--primary) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.site-footer p,
.site-footer .text-muted {
  color: #aaa !important;
}

.site-footer a,
.site-footer a:not(.app-brand) {
  color: #ccc !important;
  text-decoration: none !important;
}

.site-footer a:hover {
  color: var(--primary) !important;
}

.site-footer .app-brand,
.site-footer .app-brand span {
  color: #fff !important;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1) !important;
  color: #888 !important;
  font-size: .85rem;
}

/* ── Back to top ────────────────────────────────── */
.back-to-top {
  background-color: var(--primary) !important;
  color: #111 !important;
  border-radius: 50% !important;
}

.back-to-top:hover {
  background-color: #e88a00 !important;
}

/* ── Clickable card wrapper (explore page) ───────── */
.launch-card-link {
  display: block;
  cursor: pointer;
}

.launch-card-link:hover .launch-card {
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.14) !important;
  border-color: var(--primary) !important;
}

/* ── Swiper slider nav buttons ───────────────────── */
.swiper-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--dark-bg);
  background: #fff;
  color: var(--dark-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-size: 1rem;
  padding: 0;
}

.swiper-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Swiper pagination dots */
.launches-pagination .swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}

.launches-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
}

.launches-swiper {
  padding-bottom: 40px !important; /* room for pagination dots */
}


