/* ==========================================================================
   GSMGo Auctions - Official Theme Stylesheet (Primary Color: #164E9B)
   ========================================================================== */

:root {
  --primary: #164E9B;         /* Official Requested Blue */
  --primary-dark: #0f3973;    /* Darker shade */
  --primary-light: #2563eb;   /* Lighter shade */
  --accent: #facc15;          /* Yellow Accent */
  --accent-green: #16a34a;    /* Bid/Closes Green */
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #93c5fd;    /* Light Blue Border */
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.top-bar {
  background-color: #0d3266;
  color: #dbeafe;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  background-color: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(22, 78, 155, 0.25);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo img {
  height: 48px;
  width: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-title span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  align-items: center;
}

.nav-links a {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-accent {
  background-color: var(--accent);
  color: #0f172a;
}

.btn-accent:hover {
  background-color: #eab308;
}

.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
}

/* Full Width Hero Banner */
.hero-banner-wrap {
  width: 100%;
  background-color: #0f172a;
  text-align: center;
  overflow: hidden;
}

.hero-banner-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Modern Next Auction Countdown Banner */
.next-auction-banner {
  background: linear-gradient(135deg, #0d3266 0%, #164E9B 100%);
  color: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--accent);
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.next-auction-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.next-auction-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.next-auction-info p {
  color: #bfdbfe;
  font-size: 0.9rem;
}

.countdown-digits-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.digit-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.4);
  backdrop-filter: blur(4px);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  text-align: center;
  min-width: 65px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.digit-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-family: monospace, monospace;
}

.digit-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

.countdown-colon {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: -0.4rem;
}

/* Auctions Grid: 5 Tiles per Row x 2 Rows */
.auctions-section {
  padding: 2.5rem 0 2rem;
}

.section-header-title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-header-title h2 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.section-header-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

.grid-5-col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}

.auction-tile {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.15rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auction-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(22, 78, 155, 0.15);
  border-color: var(--primary);
}

.badge-top-seller {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ccff00;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #a3e635;
}

.badge-vat-margin {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #0284c7;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tile-img {
  width: 100%;
  height: 165px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.tile-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  min-height: 48px;
}

.tile-bid-info {
  background-color: #f8fafc;
  width: 100%;
  padding: 0.5rem 0.4rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
}

.tile-bid-label {
  font-size: 0.88rem;
  color: var(--accent-green);
  font-weight: 500;
}

.tile-bid-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.tile-subtag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.5rem;
}

.btn-pill-status {
  background-color: var(--primary);
  color: #ffffff;
  width: 85%;
  padding: 0.4rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  display: inline-block;
  border: none;
}

.btn-pill-status.active {
  background-color: var(--accent-green);
}

.tile-closes-date {
  font-size: 0.7rem;
  color: var(--accent-green);
  font-weight: 700;
}

/* 3 Featured Promo Cards */
.promo-cards-section {
  padding: 1.5rem 0 2rem;
  background-color: transparent;
}

.promo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.promo-card {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.promo-card-header {
  padding: 0.55rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.promo-card-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  flex-grow: 1;
}

.promo-card-body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.promo-card-body p {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  min-height: auto;
}

.promo-card-img-wrap {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.promo-card-img-wrap img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.promo-card-icon-box {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

/* Card Colors */
.promo-card-blue {
  background-color: #164E9B;
  color: #ffffff;
}

.promo-card-blue .promo-card-header {
  background-color: #0f3d7c;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-card-blue p {
  color: #ffffff;
}

.promo-card-yellow {
  background-color: #ffff00;
  color: #000000;
}

.promo-card-yellow .promo-card-header {
  background-color: #e6e600;
  color: #000000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.promo-card-yellow p {
  color: #000000;
}

.promo-card-cyan {
  background-color: #0099ff;
  color: #ffffff;
}

.promo-card-cyan .promo-card-header {
  background-color: #0080ff;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-card-cyan p {
  color: #ffffff;
}

.btn-orange {
  background-color: #f57c00;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.45rem 1.35rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 3px 8px rgba(245, 124, 0, 0.35);
  transition: all 0.2s ease;
  border: none;
  display: inline-block;
  text-decoration: none;
}

.btn-orange:hover {
  background-color: #e65100;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* How It Work Section */
.how-it-work-section {
  padding: 2.5rem 0 3.5rem;
  background-color: #ffffff;
}

.how-it-work-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.how-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 1.5rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-card {
  background-color: #f1f5f9;
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateX(6px);
  background-color: #e2e8f0;
}

.step-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.2rem;
}

.step-content p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

.how-illustration img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   Partners & Payment Methods Infinite Carousel
   ========================================================================== */
.partners-carousel-section {
  padding: 2.5rem 0 3rem;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.partners-carousel-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.partners-carousel-track:hover {
  animation-play-state: paused;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0 0.5rem;
}

.partner-logo-item img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(15%) opacity(90%);
  transition: all 0.25s ease;
}

.partner-logo-item img:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.08);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer */
.site-footer {
  background-color: #0d3266;
  color: #94a3b8;
  padding: 3.5rem 0 1.75rem;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul a {
  color: #94a3b8;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

@media (max-width: 1200px) {
  .grid-5-col {
    grid-template-columns: repeat(3, 1fr);
  }
  .promo-grid-3 {
    grid-template-columns: 1fr;
  }
  .how-it-work-container {
    grid-template-columns: 1fr;
  }
  .next-auction-flex {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .grid-5-col {
    grid-template-columns: repeat(2, 1fr);
  }
}
