/* ════════════════════════════════════════════════════════════════
   Red-Panda-Plugins — STORE  (full CSS, balanced gutters + centring)
   ════════════════════════════════════════════════════════════════ */

/* ───────── 0. GENERAL RESET ───────── */
html { overflow-y: auto; }
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Poppins", sans-serif;
  color: #fff;
}

/* ───────── 1. GLOBAL LAYOUT ───────── */
#app {
  position: relative;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
}

.hero {
  max-width: 50%;
  margin: 1.25rem auto;       /* was 40px auto 0; now 1.25rem top & bottom */
  padding: 2em 2em 1.25em;
  background: rgba(0,0,0,.5);
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.hero-logo {
  max-width: 250px;
  margin: 0 0 20px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  transition: transform .3s ease;
}
.hero-logo:hover { transform: scale(1.1); }
.hero h1 {
  font-size: 60px;
  text-transform: uppercase;
  text-shadow: 0 0 20px #fff;
  margin: .3em 0;
}
.hero h2 {
  font-size: 40px;
  margin: .2em 0 1em;
}

/* ───── store wrapper ───── */
.store-column {
  max-width: 50%;
  margin: 40px auto;
  padding: 2em;
  background: rgba(0,0,0,.5);
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.store-hero h1 { margin: .3em 0; }
.store-hero p { margin: .6em 0 1em; }

/* ───────── 2. STATUS BADGE ───────── */
.status-badge {
  position: fixed;
  top: 1%;
  right: 2%;
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .8em 1.2em;
  background: rgba(0,0,0,.8);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  z-index: 10;
}
.status-badge img {
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  object-fit: cover;
}

/* ───────── 3. PLUGIN CARDS ───────── */
.plugin-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.plugin-card {
  width: 80%;
  background: rgba(0,0,0,.5);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  display: flex;
  flex-direction: column;
  align-items: stretch;  /* children take full width */
}
.plugin-image {
  max-width: 150px;
  margin: 0 0 20px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  align-self: center;    /* keep the logo centred */
}
.plugin-card h3 {
  font-size: 24px;
  margin: 10px 0;
  text-transform: uppercase;
}

/* 3.1 default paragraph (centred) */
.plugin-card p {
  margin: .45em 0;
  line-height: 1.55;
  text-align: center;
}

/* 3.2 centred helper class */
.center-line {
  margin: 0;
  text-align: center;
  align-self: center;
}

/* 3.3 flush-left paragraphs share uniform gutters */
.align-left {
  text-align: left !important;
  width: 100%;
  margin: .45em 0;
  padding: 0 1.25rem;  /* ≈20px side gutters */
}

/* ───── accordion container ───── */
.plugin-card details {
  width: 100%;
  border: 0;
  padding: 0;
}

/* 3.4 summary row */
.plugin-card summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6em;
  width: 100%;
  padding: 0 1.25rem .6em;
  box-sizing: border-box;  /* gutters fix */
  cursor: pointer;
}
.plugin-card summary::after {
  content: "[▼]";
  font-size: 1.2em;
  color: #ff5722;
  transition: transform .25s ease;
  align-self: center;
}
.plugin-card details[open] summary::after {
  transform: rotate(-180deg);
}
.plugin-card summary .align-left {
  align-self: flex-start;
}

/* 3.5 accordion body */
.plugin-card .accordion-body {
  margin-top: .6em;
  padding: 0 1.25rem;  /* same gutters as summary / .align-left */
  box-sizing: border-box;
  animation: fade .25s ease;
  text-align: center;
}

/* video + button */
.youtube-embed {
  margin: 1.2em auto;
  text-align: center;
}
.buy-now-button {
  display: inline-block;
  margin: 1.5em auto 0;
  font-size: 18px;
  font-weight: 700;
  padding: .6em 2.6em;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: all .25s ease;
}
.buy-now-button:hover {
  background: #fff;
  color: #000;
  border-color: #000;
  box-shadow: 0 0 10px rgba(255,255,255,.85);
}

/* ───────── 4. ANIMATIONS ───────── */
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ───────── 5. TIGHTER HERO SPACING ───────── */
/* when one .hero follows another, reduce the default top‐margin */
.hero + .hero {
  margin-top: 1rem;  /* instead of inheriting full 1.25rem + extra */
}

/* give a little bottom-margin to the purchases panel itself */
#purchases-panel.hero {
  margin-bottom: 1rem;
}

/* Make the purchases panel a positioning context */
#purchases-panel {
  position: relative;
}

/* Gear button in the top-right of the purchases panel */
#purchases-settings.settings-btn {
  position: absolute;
  top: 12px;       /* tweak to taste */
  right: 18px;     /* tweak to taste */

  width: 36px;
  height: 36px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#purchases-settings.settings-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}

#purchases-settings.settings-btn:active {
  transform: translateY(0);
}

#purchases-settings.settings-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   6. RESPONSIVE — TABLET  (≤ 1024px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero,
  .store-column { max-width: 80%; }

  .plugin-card { width: 90%; }

  .hero h1 { font-size: 42px; }
  .hero h2 { font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   7. RESPONSIVE — MOBILE  (≤ 640px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* --- layout containers --- */
  .hero,
  .store-column {
    max-width: 95%;
    padding: 1.25em 1em;
    margin: .75rem auto;
  }

  .plugin-card {
    width: 100%;
    padding: 14px;
  }

  /* --- hero text --- */
  .hero h1 { font-size: 28px; }
  .hero h2 { font-size: 20px; }
  .hero p  { font-size: .88rem; }
  .hero-logo { max-width: 160px; }

  /* --- store hero --- */
  .store-hero h1 { font-size: 22px; }
  .store-hero p  { font-size: .85rem; }

  /* --- plugin cards --- */
  .plugin-card h3 { font-size: 18px; }
  .plugin-image { max-width: 110px; }
  .plugin-card summary { padding: 0 .5rem .6em; }
  .plugin-card .accordion-body { padding: 0 .5rem; }
  .align-left { padding: 0 .5rem; font-size: .88rem; }

  /* --- price row --- */
  .price-row { margin: .6em 0 .8em; }
  .price-amount { font-size: 1.8rem; }

  /* --- includes list --- */
  .includes-list { padding: 0 .75rem; }
  .includes-list li { font-size: .82rem; }

  /* --- category bar --- */
  .category-bar { gap: .4rem; margin: 1rem auto 1.25rem; }
  .category-btn { font-size: .75rem; padding: .4rem 1rem; }

  /* --- status badge --- */
  .status-badge {
    top: auto;
    bottom: 8px;
    right: 8px;
    padding: .5em .8em;
    font-size: .8rem;
  }
  .status-badge img { width: 1.8em; height: 1.8em; }

  /* --- youtube embeds --- */
  .youtube-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* --- purchases table scroll --- */
  #purchases-list { overflow-x: auto; }
  #purchases-list table { min-width: 600px; font-size: .8rem; }

  /* --- modal --- */
  .modal-content { padding: 24px 20px; }
  .modal-content h2 { font-size: 1.3rem; }
  .key-group .key-value { font-size: .95rem; }

  /* --- PayPal buttons --- */
  .paypal-button-container { max-width: 100%; }

  /* --- savings badge --- */
  .savings-badge { font-size: .75rem; padding: 5px 10px; }

  /* --- section dividers --- */
  .section-divider { margin: 1.25em 0 1em; }
  .section-divider .section-label { font-size: .65rem; letter-spacing: 2px; }

  /* --- bundle ribbon --- */
  .plugin-card.is-bundle::after { font-size: .55rem; padding: 3px 36px; top: 14px; right: -38px; }
}