/* ============================================================
   PEBBLEMIRROR — SPORTS HUB HYBRID THEME
   CLEANED CSS (NO BEHAVIOR CHANGES)
============================================================ */

/* ------------------------------------------------------------
   GLOBAL LAYOUT
------------------------------------------------------------ */
html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans",
               "Droid Sans", "Helvetica Neue", sans-serif;
  background: #dddddd;
  color: #222;
}

.wrap {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */
.site-header {
  background: linear-gradient(to right, #c5d1df, #b4c3d4);
  color: #1f2937;
  padding: 20px 0 26px 0;
  border-bottom: 4px solid #FF5722;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo {
  height: 115px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ------------------------------------------------------------
   UNIVERSAL BUTTON BASE (Nav + Pager + Etc.)
------------------------------------------------------------ */
.btn {
  background: #ffffff;
  border: 1px solid #b8c2cc;
  border-radius: 14px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #4b2e83;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  display: inline-block;
}

.btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  border-color: #a9b4c0;
}

.btn:disabled {
  opacity: 0.4;
  transform: none;
  box-shadow: none;
}

/* ------------------------------------------------------------
   TOP NAV — TILE STYLE
------------------------------------------------------------ */
nav.wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

nav.wrap a.btn {
  position: relative;
}

/* Base accent bar (overridden to dark grey below) */
nav.wrap a.btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 87, 34, 0.35);
  transition: 0.25s ease;
}

nav.wrap a.btn:nth-child(even)::before {
  background: rgba(16, 185, 129, 0.35);
}

nav.wrap a.btn:hover::before {
  background: rgba(255, 87, 34, 0.65);
}

nav.wrap a.btn:nth-child(even):hover::before {
  background: rgba(16, 185, 129, 0.65);
}

/* ------------------------------------------------------------
   SEARCH AREA
------------------------------------------------------------ */
.top-controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input.search,
select {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #b8c2cc;
  font-size: 15px;
  background: #ffffff;
  flex: 1;
  min-width: 280px;
}

input.search:focus,
select:focus {
  outline: none;
  border-color: #8fa3b7;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.09);
}

/* ------------------------------------------------------------
   GRID LAYOUT (App Store)
------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

/* ------------------------------------------------------------
   APP CARDS — SPORTS HUB STYLE
------------------------------------------------------------ */
.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 16px;
  min-height: 120px;
  border: 1px solid #e4e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

/* Base accent bar (overridden to dark grey below) */
.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: rgba(255, 87, 34, 0.35);
  border-radius: 2px;
  transition: 0.25s ease;
}

.card:hover::after {
  background: rgba(255, 87, 34, 0.75);
}

/* PebbleOS Icon Style */
.card .icon img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #d1d5db;
}

/* Text */
.title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #111827;
}

.small {
  font-size: 0.78rem;
  color: #6b7280;
}

.links a {
  color: #0c7c3d;
  font-weight: 600;
}

.links a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   PAGER FIX (Prev / Next)
------------------------------------------------------------ */
/* ===========================
   PAGINATION BAR (PHP version)
=========================== */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.pagination a.btn {
  padding: 6px 12px;
  border-radius: 10px;
  min-width: 40px;
  text-align: center;
}

.pagination a.btn.active {
  background: #4b2e83;
  border-color: #4b2e83;
  color: #fff;
}

.pagination .ellipsis {
  padding: 6px 4px;
  font-size: 20px;
  color: #555;
}

/* Hide Old Pagination */
.pager {
  display: none !important;
}

/* ------------------------------------------------------------
   DETAILS PAGE
------------------------------------------------------------ */
.detail-top {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #d7d7d7;
}

.icon-large img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid #d7d7d7;
}

/* ------------------------------------------------------------
   QUICK LINKS — TILE STYLE
------------------------------------------------------------ */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 35px;
}

.quick-links a {
  flex: 1;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  padding: 22px 26px;
  text-align: center;
  color: #4b2e83;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Base accent bar (overridden to dark grey below) */
.quick-links a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 87, 34, 0.35);
  transition: 0.3s ease;
}

.quick-links a:nth-child(even)::before {
  background: rgba(16, 185, 129, 0.35);
}

.quick-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.quick-links a:hover::before {
  background: rgba(255, 87, 34, 0.65);
}

.quick-links a:nth-child(even):hover::before {
  background: rgba(16, 185, 129, 0.65);
}

/* ============================================================
   HERO / FEATURE CARDS (Browse Apps, Pebble OS, Mobile App, Forum)
============================================================ */
.sportsHub-option {
  background: #ffffff;
  border-radius: 14px;
  padding: 0;
  text-decoration: none !important;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  display: block;
  overflow: hidden;
}

/* Base accent bar (overridden to dark grey below) */
.sportsHub-option::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 87, 34, 0.35);
  transition: 0.3s ease;
}

.sportsHub-option:nth-child(even)::after {
  background: rgba(16, 185, 129, 0.35);
}

/* Hover state */
.sportsHub-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

.sportsHub-option:hover::after {
  background: rgba(255, 87, 34, 0.65);
}

.sportsHub-option:nth-child(even):hover::after {
  background: rgba(16, 185, 129, 0.65);
}

/* Title text inside each tile */
.sportsHub-option h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 10px 0 6px;
  text-align: center;
  color: #4b2e83;
}

/* Paragraph text */
.sportsHub-option p {
  color: #555;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  margin: 10px auto 0;
  max-width: 90%;
}

/* Icon container */
.sportsHub-option div[style*="height:120px"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px;
}

/* SVG and images inside tile */
.sportsHub-option img,
.sportsHub-option svg {
  max-width: 100px;
  max-height: 100px;
}

/* ------------------------------------------------------------
   GLOBAL ACCENT BAR COLOR OVERRIDE (Dark Grey)
   (Keeps visual behavior: all accents dark grey, no green)
------------------------------------------------------------ */
nav.wrap a.btn::before,
.quick-links a::before,
.sportsHub-option::after,
.card::after {
  background: rgba(80, 80, 80, 0.35) !important;
}

nav.wrap a.btn:hover::before,
.quick-links a:hover::before,
.sportsHub-option:hover::after,
.card:hover::after {
  background: rgba(80, 80, 80, 0.65) !important;
}

/* Remove green alternating accent completely */
nav.wrap a.btn:nth-child(even)::before,
.quick-links a:nth-child(even)::before,
.sportsHub-option:nth-child(even)::after,
.card:nth-child(even)::after {
  background: rgba(80, 80, 80, 0.35) !important;
}

nav.wrap a.btn:nth-child(even):hover::before,
.quick-links a:nth-child(even):hover::before,
.sportsHub-option:nth-child(even):hover::after,
.card:nth-child(even):hover::after {
  background: rgba(80, 80, 80, 0.65) !important;
}

/* ============================================================
   MOBILE FIX PACK (≤ 600px)
   Desktop behavior intentionally unchanged
============================================================ */
@media (max-width: 600px) {

  /* Prevent overflow */
  html,
  body {
    overflow-x: hidden !important;
  }

  /* Header: smaller title, hide subtitle */
  .site-title {
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }

  .header-brand .muted {
    display: none !important;
  }

  /* Hide PebbleOS + Mobile App (GitHub) ONLY on mobile */
  nav.wrap a[href="/pebbleos.php"],
  nav.wrap a[href="/mobileapp.php"] {
    display: none !important;
  }

  /* Keep Home / App Store / Forum visible and tidy */
  nav.wrap {
    padding: 0 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  nav.wrap a.btn {
    font-size: 14px !important;
    padding: 10px 16px !important;
    white-space: nowrap !important;
  }

  /* HERO GRID — Force single column and prevent right-side stretching */
  section[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    gap: 24px !important;
    padding: 0 10px !important;
    overflow: hidden !important;
  }

  /* Ensure hero tiles fit */
  .sportsHub-option {
    padding: 18px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .sportsHub-option > div > div {
    height: 90px !important;
  }

  .sportsHub-option img,
  .sportsHub-option svg {
    max-height: 70px !important;
    width: auto !important;
  }

  .sportsHub-label,
  .sportsHub-option h3 {
    font-size: 1.15rem !important;
    text-align: center !important;
  }

  .sportsHub-option p {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    margin-top: 6px !important;
  }

  /* QUICK LINKS — Fine-tune layout */
  .quick-links {
    gap: 14px !important;
    padding: 0 12px !important;
  }

  .quick-links a {
    padding: 16px !important;
    font-size: 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* STORE LIST — Reduce font + spacing */
  .card {
    padding: 14px !important;
    gap: 14px !important;
  }

  .title {
    font-size: 1.05rem !important;
  }

  /* PAGINATION — Center & stacked */
  .pager {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px 0 !important;
  }

  .pager .btn {
    width: 120px !important;
    text-align: center !important;
  }

  .pager {
    display: none !important;
  }

  /* App Store page: replace "Pebble Mirror" with "App Store" */
  body.page-store .site-title {
    visibility: hidden; /* Keep original hidden */
  }

  body.page-store .site-title::before {
    content: "App Store";
    font-size: 1rem !important;   /* match PebbleMirror mobile size */
    font-weight: 700;
    visibility: visible;
    display: block;
    line-height: 1.2;
    position: relative;
    top: 12px;                     /* no upward shift */
  }
}

/* Footer Font Size */
.site-footer .wrap p {
  font-size: 0.88rem;   /* relative to root font size */
}

/* ============================================================
   RECENT POSTS — HERO CARD MATCHED STYLE
   (Styled exactly like .sportsHub-option cards)
============================================================ */
.forum-feed-section {
  margin: 60px 0 40px;
}

.forum-feed-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #333;
  letter-spacing: 0.5px;
}

/* GRID — matches spacing of hero grid */
.forum-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* CARD — clones .sportsHub-option behavior */
.forum-feed-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none !important;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  display: block;
  overflow: hidden;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Accent bar — matches hero cards (dark grey override) */
.forum-feed-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(80, 80, 80, 0.35); /* dark grey from global override */
  transition: 0.3s ease;
}

.forum-feed-card:hover::after {
  background: rgba(80, 80, 80, 0.65);
}

/* Hover lift — EXACT match to hero cards */
.forum-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

/* SNIPPET TEXT (like hero paragraph text) */
.forum-feed-snippet {
  color: #555;
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* META LINE (soft grey) */
.forum-feed-meta {
  font-size: 0.75rem;
  color: #777;
  margin-top: 10px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1100px) {
  .forum-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .forum-feed-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: smaller title for Recent Posts */
@media (max-width: 650px) {
  .forum-feed-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
    position: relative;
  }
}

/* ============================================================
   RECENT APPS — HERO CARD MATCHED STYLE
   (Styled exactly like .sportsHub-option)
============================================================ */

/* Section wrapper */
.apps-feed-section {
  margin: 60px 0 45px;
}

.apps-feed-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #333;
  letter-spacing: 0.5px;
}

/* GRID — same spacing as hero cards */
.apps-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* CARD — 1:1 replica of .sportsHub-option */
.apps-feed-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none !important;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  display: block;
  overflow: hidden;
  color: #333;
}

/* Accent bar — same as hero tiles (dark grey override) */
.apps-feed-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(80, 80, 80, 0.35);
  transition: 0.3s ease;
}

.apps-feed-card:hover::after {
  background: rgba(80, 80, 80, 0.65);
}

/* Hover behavior identical to .sportsHub-option */
.apps-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: #d1d5db;
}

/* Icon area */
.apps-feed-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.apps-feed-icon-wrap img {
  max-width: 90px;
  max-height: 90px;
  border-radius: 8px;
}

/* Title (matches hero tile h3 font) */
.apps-feed-title,
.apps-feed-card .apps-feed-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4b2e83;
  margin: 6px 0 8px;
  text-align: center;
}

/* Author line */
.apps-feed-meta {
  color: #555;
  font-size: 0.78rem;
  text-align: center;
  margin-bottom: 10px;
}

/* Description snippet */
.apps-feed-snippet {
  color: #555;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  margin: 0 auto;
  max-width: 90%;
}

/* RESPONSIVE BREAKPOINTS (same as Posts) */
@media (max-width: 1100px) {
  .apps-feed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .apps-feed-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile heading size */
@media (max-width: 650px) {
  .apps-feed-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
  }
}

/* Match "Latest Apps" heading to "Latest community posts" */
.apps-feed-title {
  font-size: 1.25rem;    /* match your posts heading */
  font-weight: 700;
  color: #333;
  text-align: left;      /* FIX: move title left */
  margin-left: 0;        /* no centering offset */
  margin-bottom: 18px;
}

@media (max-width: 650px) {
  .apps-feed-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
  }
}

/* Updated 'Days Ago' & Categories for Recent Apps */
.apps-feed-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px auto 6px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #4a3aff;
  background: #f0ebff;
  border-radius: 999px;
  text-align: center;
}

.apps-feed-updated {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 8px;
  text-align: center;
}

.apps-feed-card {
  text-align: center;
}

.apps-feed-card * {
  margin-left: auto;
  margin-right: auto;
}

/* MAIN NAV CONTAINER */
.pm-nav {
  display: flex;
  justify-content: space-between;  /* LEFT <--> RIGHT */
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

/* LEFT GROUP */
.pm-nav-left {
  display: flex;
  gap: 14px;
}

/* RIGHT GROUP (stores) */
.pm-nav-right {
  display: flex;
  gap: 14px;
}

/* Base button styling */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 15px;
  background: rgba(90,147,191);
  color: white;
  backdrop-filter: blur(4px);
}

/* Highlighted store buttons */
.nav-store,
.nav-archive {
  background: white;
  color: #0a1c3b;
  font-weight: 600;
}

.nav-store i,
.nav-archive i {
  color: #0a1c3b;
}

/* Shared button style (from Rebble Archive) */
.pm-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #ffffff;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #3a3a3a;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: all 0.15s ease-in-out;
}

.pm-btn:hover {
  background: #f0f3ff;
  transform: translateY(-2px);
}

/* Store-specific highlight */
.pm-store {
  background: #e9efff;
  color: #2a43c4;
  font-weight: 700;
}

.pm-store:hover {
  background: #dbe6ff;
}

/* ============================================
   MOBILE NAV FIX — applies ONLY to PebbleMirror
============================================ */
@media (max-width: 640px) {

  /* Make nav stack vertically */
  .pm-nav {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  /* Left group: stack/wrap buttons */
  .pm-nav-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  /* Right group: featured buttons */
  .pm-nav-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  /* Make mobile buttons slightly smaller */
  .nav-btn {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 24px;
    white-space: nowrap;
  }

  /* Brand block centered */
  .header-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .site-logo {
    width: 90px;
  }

  .site-title {
    font-size: 20px;
  }
}

/* ============================================
   IFRAME-SPECIFIC MOBILE NAV FIX (FOR FORUM)
   Does NOT affect normal PebbleMirror mobile
============================================ */
@media (max-width: 768px) {

  /* Only target when inside iframe */
  body .pm-nav {
    gap: 8px !important;
  }

  body .pm-nav-left,
  body .pm-nav-right {
    gap: 6px !important;
  }

  /* Shrink pills just for iframe */
  body .pm-nav .nav-btn {
    padding: 6px 10px !important;
    font-size: 12.5px !important;
    border-radius: 18px !important;
  }

  body .pm-nav .nav-btn i {
    font-size: 12px !important;
  }
}


/* ============================================================
   CD PROJEKT RED — COLOR OVERRIDE ONLY
   (NO LAYOUT / NO STRUCTURE CHANGES)
============================================================ */

/* ---------- Global ---------- */
html,
body {
  background: #d9d9d9;
  color: #111111;
}

/* ---------- Header ---------- */
.site-header {
  background: #0b0b0b;
  color: #ffffff;
  border-bottom-color: #d62d20;
}

/* Header subtitle text */
.site-header .muted,
.site-header p {
  color: #b5b5b5;
}

/* ---------- Buttons ---------- */
.btn,
.pm-btn,
.nav-btn {
  background: #ffffff;
  color: #111111;
  border-color: #e1e1e1;
}

.btn:hover,
.pm-btn:hover,
.nav-btn:hover {
  background: #f3f3f3;
}

/* ---------- Store highlight buttons ---------- */
.pm-store,
.nav-store,
.nav-archive {
  background: #ffffff;
  color: #111111;
}

/* ---------- Search & Inputs ---------- */
input,
select {
  background: #ffffff;
  color: #111111;
  border-color: #cfcfcf;
}

input::placeholder {
  color: #777777;
}

/* ---------- Cards ---------- */
.card,
.sportsHub-option,
.quick-links a,
.apps-feed-card,
.forum-feed-card {
  background: #ffffff;
  border-color: #e1e1e1;
  color: #111111;
}

/* Card hover */
.card:hover,
.sportsHub-option:hover,
.quick-links a:hover,
.apps-feed-card:hover,
.forum-feed-card:hover {
  border-color: #cfcfcf;
}

/* ---------- Titles & Text ---------- */
.title,
.sportsHub-option h3,
.apps-feed-title,
.forum-feed-title {
  color: #111111;
}

.small,
.dev,
.apps-feed-meta,
.forum-feed-meta,
.apps-feed-snippet,
.forum-feed-snippet {
  color: #555555;
}

/* ---------- Links ---------- */
a {
  color: #d62d20;
}

a:hover {
  color: #b82418;
}

/* ---------- Accent Bars (Unified Red) ---------- */
nav.wrap a.btn::before,
.quick-links a::before,
.sportsHub-option::after,
.card::after,
.apps-feed-card::after,
.forum-feed-card::after {
  background: rgba(214, 45, 32, 0.45) !important;
}

nav.wrap a.btn:hover::before,
.quick-links a:hover::before,
.sportsHub-option:hover::after,
.card:hover::after,
.apps-feed-card:hover::after,
.forum-feed-card:hover::after {
  background: rgba(214, 45, 32, 0.8) !important;
}

/* ---------- Pagination ---------- */
.rebble-page-btn {
  background: #ffffff;
  color: #111111;
  border-color: #e1e1e1;
}

.rebble-page-current {
  background: #d62d20;
  border-color: #d62d20;
  color: #ffffff;
}

.rebble-page-btn:hover {
  background: #f3f3f3;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #d9d9d9;
  color: #555555;
}

/* Pagination — ACTIVE page (CD Projekt Red red) */
.rebble-page-current,
.pagination a.btn.active {
  background: #d62d20 !important;
  border-color: #d62d20 !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .pm-nav-left .nav-pebbleos,
  .pm-nav-left .nav-mobileapp {
    display: none;
  }
}
