/* ── Base ──────────────────────────────────────────────────── */
:root {
  --ic-blue:      #0066a1;
  --ic-blue-dark: #004e72;
  --ic-green:     #198754;
  --ic-yellow:    #ffd700;
  --ic-text:      #212529;
  --ic-muted:     #6c757d;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ic-text);
}

/* ── Top bar ───────────────────────────────────────────────── */
.top-bar {
  background: var(--ic-blue-dark);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: .35rem 0;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: -.5px;
}
.navbar-brand i { color: var(--ic-blue); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, var(--ic-blue-dark) 0%, var(--ic-blue) 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 1.5rem;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.2rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: background .2s;
}
.hero-badge:hover { background: rgba(255,255,255,.25); }

.hero-search-bar {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,.25);
  padding: 1.25rem 0;
}

/* ── Category cards ────────────────────────────────────────── */
.category-card {
  background: #fff;
  border-color: #dee2e6 !important;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.category-card:hover {
  border-color: var(--ic-blue) !important;
  box-shadow: 0 4px 12px rgba(0,102,161,.12);
  transform: translateY(-2px);
}
.category-name { color: var(--ic-text); }

/* ── Listing cards ─────────────────────────────────────────── */
.listing-card {
  transition: box-shadow .2s, transform .15s;
}
.listing-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.1) !important;
  transform: translateY(-2px);
}

.listing-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: .375rem 0 0 .375rem;
}

.listing-title a:hover { color: var(--ic-blue) !important; }

.listing-meta { font-size: .78rem; }

/* ── Pagination ────────────────────────────────────────────── */
.page-link {
  color: var(--ic-blue);
}
.page-item.active .page-link {
  background-color: var(--ic-blue);
  border-color: var(--ic-blue);
}

/* ── Yellow action button (black text for contrast) ───────── */
.btn-ic-yellow {
  background-color: var(--ic-yellow);
  border-color: #e6c200;
  color: #1a1a1a;
  font-weight: 600;
}
.btn-ic-yellow:hover,
.btn-ic-yellow:focus {
  background-color: #ffe033;
  border-color: #d4b000;
  color: #1a1a1a;
}
.btn-ic-yellow:active {
  background-color: #e6c200;
  color: #1a1a1a;
}

/* ── Item detail ───────────────────────────────────────────── */
.stars-display i,
.stars-sm i { line-height: 1; }

.star-btn { border-radius: 6px; padding: .3rem .6rem; }

/* Screenshot gallery */
.screenshot-gallery .gallery-thumb img {
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s;
}
.screenshot-gallery .gallery-thumb:hover img { opacity: 1; }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar-table td { padding: .5rem .25rem; vertical-align: middle; }
.sidebar-table tr:not(:last-child) td { border-bottom: 1px solid #f0f0f0; }
.card-header.bg-primary { background: var(--ic-blue) !important; }

.sidebar-card-header {
  background: var(--ic-blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem .75rem;
  letter-spacing: .02em;
}

/* ── Review items ──────────────────────────────────────────── */
.review-item:last-of-type { border-bottom: none !important; }

/* ── Google-stars step numbers ─────────────────────────────── */
.step-num {
  width: 2.2rem;
  height: 2.2rem;
  line-height: 2.2rem;
  border-radius: 50%;
  background: var(--ic-blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto;
}

/* ── Footer ────────────────────────────────────────────────── */
#site-footer a { transition: color .15s; }
#site-footer a:hover { color: var(--ic-blue) !important; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--ic-muted); }

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 576px) {
  .listing-thumb { height: 100px; }
  .hero-content  { padding: 2rem 0 1rem; }
  .hero-title    { font-size: 1.5rem; }
}
