@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700&display=swap');

:root {
  --red:    #E63946;
  --yellow: #FFB703;
  --blue:   #219EBC;
  --green:  #06D6A0;
  --purple: #7B2FBE;
  --orange: #FB8500;
  --white:  #FFFEF0;
  --dark:   #1A1A2E;
  --gray:   #6B7280;
  --radius: 16px;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ───────────────────────────── */
.site-header {
  background: repeating-linear-gradient(
    -45deg,
    var(--red)   0px, var(--red)   24px,
    var(--white) 24px, var(--white) 48px
  );
  padding: 2.5rem 1rem;
  text-align: center;
}

.header-inner {
  display: inline-block;
  background: rgba(255,254,240,0.93);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  border: 3px solid var(--dark);
  box-shadow: 6px 6px 0 var(--dark);
}

.header-inner h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.75rem;
  color: var(--red);
  line-height: 1.1;
}

.header-inner .tagline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 0.35rem;
  letter-spacing: 0.4px;
}

/* ── Nav ──────────────────────────────── */
.site-nav {
  background: var(--dark);
  padding: 0.75rem 1rem;
  text-align: center;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  margin: 0 1rem;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--yellow); }

/* ── Main ─────────────────────────────── */
main {
  flex: 1;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

/* ── App grid ─────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
}

/* ── App card ─────────────────────────── */
.app-card {
  background: #fff;
  border-radius: var(--radius);
  border: 2.5px solid var(--dark);
  box-shadow: 5px 5px 0 var(--dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.app-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 8px 9px 0 var(--dark);
}

.app-card-accent { height: 8px; }

.app-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 2px solid rgba(0,0,0,0.08);
}

.app-card h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.app-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.app-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1.5px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Badges ───────────────────────────── */
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f0f0f0;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.live { background: #D1FAE5; color: #065F46; }

/* ── Buttons ──────────────────────────── */
.btn-text {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 2px solid var(--dark);
  transition: background 0.15s, color 0.15s;
}

.btn-text:hover { background: var(--dark); color: var(--white); }

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: 2.5px solid var(--dark);
  background: #fff;
  color: var(--dark);
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--dark);
  transition: transform 0.12s, box-shadow 0.12s;
}

.store-btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 5px 0 var(--dark);
}

.store-btn.coming-soon {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

/* ── App detail ───────────────────────── */
.app-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.app-icon-lg {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  border: 2.5px solid rgba(0,0,0,0.1);
}

.app-hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.app-hero .tagline {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2.5px solid var(--dark);
  display: block;
}

.screenshot-placeholder {
  height: 360px;
  border-radius: 16px;
  border: 2.5px solid var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.8rem;
  gap: 0.4rem;
  letter-spacing: 0.5px;
}

.app-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  font-size: 1rem;
}

.app-description h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.back-link:hover { opacity: 1; }

.legal-links {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
}

.legal-links a { color: var(--gray); margin: 0 0.5rem; }

/* ── Footer ───────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,254,240,0.8);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.site-footer a { color: var(--yellow); text-decoration: none; }

.footer-sub { margin-top: 0.5rem; opacity: 0.55; }

/* ── Per-app accent colors ────────────── */
.accent-therollplay     { background: #7B2FBE; }
.accent-baloaner        { background: #FB8500; }
.accent-spottherough    { background: #E63946; }
.accent-pictureit       { background: #06D6A0; }
.accent-ytplaylistmanager { background: #FF0000; }
.accent-newjury         { background: #219EBC; }
.accent-dooptydo        { background: #57CC99; }

/* ── Per-app icon backgrounds ─────────── */
.icon-therollplay     { background: #F3E8FF; }
.icon-baloaner        { background: #FFF3E0; }
.icon-spottherough    { background: #FEE2E2; }
.icon-pictureit       { background: #D1FAE5; }
.icon-ytplaylistmanager { background: #FEE2E2; }
.icon-newjury         { background: #E0F2FE; }
.icon-dooptydo        { background: #D1FAE5; }

/* ── Responsive ───────────────────────── */
@media (max-width: 600px) {
  .header-inner h1 { font-size: 2rem; }
  .apps-grid { grid-template-columns: 1fr; }
  .screenshots { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .screenshots { grid-template-columns: 1fr; }
}
