/* =========================================================
   Rummy Modern — styles
   Edit the color palette below to re-theme the whole site.
   ========================================================= */

:root {
  --color-bg: #fdf2f2;          /* page background (light pink) */
  --color-surface: #ffffff;     /* cards */
  --color-text: #1a1a1a;        /* main text */
  --color-muted: #7a7a7a;       /* secondary text */
  --color-cta: #1faa3f;         /* green download-to-play button */
  --color-cta-dark: #178a32;
  --color-download: #1f8ff5;    /* blue download buttons */
  --color-gold: #d4a017;        /* gold accents */
  --color-maroon: #3a0d10;      /* how-to-play panel */
  --color-maroon-2: #5a1418;
  --color-border: #ececec;

  --radius: 14px;
  --max-width: 480px;           /* mobile-app width, centered on desktop */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  /* padding removed — no fixed bottom nav */
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.97); }

.btn--cta {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(180deg, var(--color-cta), var(--color-cta-dark));
  box-shadow: 0 4px 14px rgba(31, 170, 63, .4);
  letter-spacing: .5px;
}
.btn__icon { font-size: 1.1rem; }

.btn--download {
  padding: 9px 18px;
  font-size: .9rem;
  color: #fff;
  background: var(--color-download);
  white-space: nowrap;
}
.btn--download:hover { filter: brightness(1.05); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  background: url("../images/hero-bg.jpg") center/cover no-repeat;
  position: relative;
}
.hero__overlay {
  background: linear-gradient(180deg, rgba(20,5,5,.35) 0%, rgba(20,5,5,.78) 100%);
  padding: 80px 18px 22px;
  text-align: center;
}
.hero__title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  margin-bottom: 16px;
}

.promo {
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(212, 160, 23, .6);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.promo__label {
  display: block;
  color: var(--color-gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.promo__text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  background: var(--color-surface);
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.tab {
  flex: 1;
  padding: 9px 4px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tab--active {
  background: var(--color-download);
  color: #fff;
}

/* ---------- App list ---------- */
.app-list { display: flex; flex-direction: column; gap: 12px; }

.app-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.app-card--featured {
  border: 2px solid var(--color-gold);
  background: #fffdf5;
}
.app-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.app-card__info { flex: 1; min-width: 0; }
.app-card__name { font-size: 1rem; font-weight: 700; }
.app-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.badge--downloads { color: var(--color-download); background: rgba(31,143,245,.1); }
.badge--bonus { color: var(--color-gold); background: rgba(212,160,23,.12); }
.app-card__meta { font-size: .75rem; color: var(--color-muted); }
.stars { color: var(--color-gold); }

.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-gold);
  color: #3a0d10;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 0 var(--radius) 0 10px;
}

/* ---------- Generic section ---------- */
.section { margin: 30px 0; }
.section__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  border-left: 4px solid var(--color-gold);
  padding-left: 10px;
}

/* ---------- Trust cards ---------- */
.trust-card {
  display: flex;
  gap: 12px;
  background: #fdf6e9;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.trust-card__icon { font-size: 1.3rem; }
.trust-card__title { font-size: .98rem; font-weight: 700; margin-bottom: 4px; }
.trust-card__text { font-size: .85rem; color: #5a5a5a; }

/* ---------- How to play ---------- */
.howto {
  background: linear-gradient(180deg, var(--color-maroon-2), var(--color-maroon));
  border-radius: 18px;
  padding: 22px 16px;
  margin: 30px auto;
  max-width: var(--max-width);
}
.howto__title {
  color: var(--color-gold);
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.step { display: flex; gap: 12px; margin-bottom: 18px; }
.step:last-child { margin-bottom: 0; }
.step__num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .9rem;
}
.step__title { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.step__text { color: #d8c4c4; font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq {
  background: #f7eaea;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}
.faq__chevron { transition: transform .2s ease; flex-shrink: 0; }
.faq.is-open .faq__chevron { transform: rotate(180deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 14px;
}
.faq__a p { padding-bottom: 14px; font-size: .85rem; color: #5a5a5a; }
.faq.is-open .faq__a { max-height: 300px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-maroon);
  color: #d8c4c4;
  text-align: center;
  padding: 22px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer__links a { color: #c8b3b3; text-decoration: none; font-size: .85rem; }
.footer__links a:hover { color: #fff; }
.footer__secure { color: var(--color-gold); font-size: .85rem; margin-bottom: 8px; }
.footer__copy { color: var(--color-gold); font-size: .8rem; font-weight: 600; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  body { background: #e9dede; }
  .hero, .howto, .footer { box-shadow: 0 0 30px rgba(0,0,0,.12); }
}
