/* ======================================
   REBBLE APP DETAIL – BASE THEME
====================================== */

:root {
  --bg: #bcc8d9;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --radius: 18px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body {
  margin: 0;
  padding: 20px;
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  color: var(--text);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 22px;
  padding: 20px 26px;
  box-shadow: var(--shadow);
}

/* Gap between header and app card (app.php only) */
.wrap {
  margin-top: 36px;
}


h1 {
  margin-top: 0;
  color: var(--accent);
}

.meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.screens {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 18px;
}

.screens img {
  height: 168px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #000;
}

.download a,
a.back {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #5b92bf;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-right: 10px;
}

.download a:hover,
a.back:hover {
  background: #4a82ad;
}

/* === App Detail Action Buttons (FIXED TARGETING) === */

/* Download button wrapper */
.download {
  margin-top: 18px !important;
}

/* Download button */
.download a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
}

/* Back button (separate element) */
a.back {
  display: inline-flex !important;
  align-items: center !important;
  margin-top: 10px !important;
  padding: 9px 18px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  border: 2px solid #6f96bb !important;
  color: #1f2937 !important;
}

/* ============================================================
   APP DETAIL — ACTION BUTTONS
   COLOR-ONLY OVERRIDE (BLACK / WHITE)
============================================================ */

/* Download button */
.download a {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* Back button */
a.back {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}

/* Optional hover — subtle CDPR-style lift */
.download a:hover,
a.back:hover {
  background: #111111 !important;
  border-color: #111111 !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  body {
    padding: 14px;
  }

  .screens img {
    height: 150px;
  }
}
