/* ============================================================
   STORE PAGE STYLES
   Depends on: main.css (hero-section, divider, mc-btn, discord-section,
               team-section, rules-section, fade-up, s-headline, etc.)
============================================================ */

/* ===== HERO STAT PILLS ===== */
.store-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.store-hero-stat {
  background: var(--night-panel);
  border: 3px solid #000;
  box-shadow: inset 2px 2px 0 var(--panel-hi), 4px 4px 0 #000;
  padding: 12px 24px;
}
.store-hero-stat span {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--accent-red);
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 0.8px;
  white-space: nowrap;
}
.store-hero-stat span i { color: var(--accent-aqua); margin-right: 6px; }

/* ===== DARK HEADLINE ON SANDY SECTION ===== */
.store-dark-headline {
  color: var(--text-dark) !important;
  text-shadow: 3px 3px 0 rgba(255,255,255,0.3) !important;
}
.store-dark-headline::after { background: var(--wood-brown) !important; }
.store-sub-dark { color: #4A3010 !important; }

/* ===== RANKS SECTION — Sandy ===== */
.store-ranks-section {
  background: linear-gradient(to bottom, var(--sand-bright), var(--sand-dark));
  padding: 80px 32px 100px;
  position: relative;
}

/* Notify bar */
.store-notify-bar {
  max-width: 800px;
  margin: 0 auto 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(8, 14, 28, 0.9);
  border: 3px solid rgba(227,74,47,0.4);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.4), 0 0 20px rgba(227,74,47,0.1);
}
.store-notify-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-sand);
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.store-notify-label i { color: var(--accent-red); margin-right: 6px; }
.store-notify-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-notify-form input {
  padding: 12px 16px;
  background: #1A1E2A;
  border: 3px solid #000;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-white);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.3);
  min-width: 200px;
  transition: border-color 0.2s;
}
.store-notify-form input:focus { outline: none; border-color: var(--accent-red); }
.store-notify-form input::placeholder { color: var(--text-muted); }
.store-notify-btn { white-space: nowrap; }

.store-section-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: -20px auto 48px;
  text-align: center;
  line-height: 1.6;
}

.store-ranks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.store-rank-card {
  background: rgba(8, 14, 28, 0.93);
  border: 4px solid #000;
  box-shadow:
    inset 3px 3px 0 var(--panel-hi),
    inset -3px -3px 0 var(--panel-sh),
    7px 7px 0 rgba(0,0,0,0.5);
  padding: 32px;
  flex: 1 1 360px;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
}
.fade-up.store-rank-card { opacity: 0; transform: translateY(28px); }
.store-rank-card.in-view { opacity: 1; transform: translateY(0); }
.store-rank-card:hover { transform: translateY(-6px); box-shadow: 0 0 28px rgba(227,74,47,0.25), inset 3px 3px 0 var(--panel-hi), inset -3px -3px 0 var(--panel-sh), 9px 9px 0 rgba(0,0,0,0.5); }
.store-rank-card.featured { border-color: var(--accent-red); }
.store-rank-card.featured.in-view { transform: scale(1.02); }
.store-rank-card.featured:hover { transform: translateY(-6px) scale(1.02); }

.store-featured-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent-red);
  padding: 6px 16px;
  font-family: var(--font-pixel); font-size: 7px;
  color: white; text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.5px; border: 2px solid #000;
  white-space: nowrap;
}
.store-featured-badge-small {
  position: absolute; top: -10px; right: 20px;
  background: var(--accent-red);
  padding: 4px 12px;
  font-family: var(--font-pixel); font-size: 6px;
  color: white; text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.5px; border: 2px solid #000;
}

.store-rank-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.store-rank-header i { font-size: 2rem; color: var(--accent-red); }
.store-rank-header h3 { font-family: var(--font-pixel); font-size: 14px; color: var(--text-sand); text-shadow: 2px 2px 0 #000; letter-spacing: 1px; }
.store-rank-card.store-rank-crabplus .store-rank-header i { color: var(--accent-gold); }

.store-rank-price { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid rgba(255,255,255,0.1); }
.store-price { font-family: var(--font-pixel); font-size: 20px; color: var(--accent-aqua); text-shadow: 2px 2px 0 #000; }
.store-price-period { font-family: var(--font-pixel); font-size: 7px; color: var(--text-muted); margin-left: 4px; }

.store-rank-features { list-style: none; padding: 0; margin: 0 0 28px 0; }
.store-rank-features li { font-family: var(--font-body); font-size: 0.85rem; color: #9ABEDC; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.store-rank-features li i { color: var(--accent-red); width: 18px; font-size: 0.8rem; }
.store-rank-features li strong { color: var(--text-sand); font-family: var(--font-pixel); font-size: 7px; letter-spacing: 0.5px; }
.store-rank-features .feature-desc { color: var(--text-muted); font-size: 0.8rem; }

.store-btn-disabled {
  background: #333 !important;
  color: #666 !important;
  cursor: not-allowed !important;
  box-shadow: 2px 2px 0 #000 !important;
  pointer-events: none;
}

/* ===== TOKENS — Stone (uses main.css team-section bg via class) ===== */
.store-tokens-section {
  background: linear-gradient(to bottom, #2E2E2E, #1A1A1A);
  padding: 80px 32px 100px;
  position: relative;
}
.store-tokens-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0,0,0,0.08) 20px, rgba(0,0,0,0.08) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(0,0,0,0.05) 20px, rgba(0,0,0,0.05) 21px);
  pointer-events: none;
}
.store-tokens-section .s-center,
.store-tokens-section .s-headline,
.store-tokens-section .store-section-sub { position: relative; z-index: 1; }

.store-tokens-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 32px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.store-token-card {
  background: rgba(8, 14, 28, 0.93);
  border: 4px solid #000;
  box-shadow: inset 3px 3px 0 var(--panel-hi), inset -3px -3px 0 var(--panel-sh), 7px 7px 0 rgba(0,0,0,0.5);
  padding: 32px 28px;
  flex: 1 1 240px;
  max-width: 320px;
  text-align: center;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; position: relative;
  transition: transform 0.2s;
}
.fade-up.store-token-card { opacity: 0; transform: translateY(28px); }
.store-token-card.in-view { opacity: 1; transform: translateY(0); }
.store-token-card:hover { transform: translateY(-5px); }
.store-token-card.featured { border-color: rgba(255,215,0,0.4); }

.store-token-icon { font-size: 2.5rem; color: var(--accent-gold); display: flex; align-items: center; gap: 6px; }
.store-token-plus { font-size: 1rem; color: var(--accent-red); }
.store-token-amount { font-family: var(--font-pixel); font-size: 13px; color: var(--text-sand); text-shadow: 2px 2px 0 #000; letter-spacing: 0.5px; }
.store-token-price { font-family: var(--font-pixel); font-size: 18px; color: var(--accent-aqua); text-shadow: 2px 2px 0 #000; }
.store-token-desc { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.store-tokens-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ===== WHAT CAN YOU BUY — Ocean (uses main.css discord-section bg via class) ===== */
.store-shop-section {
  padding: 80px 32px;
}
.store-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}
.store-shop-item {
  background: rgba(8, 14, 28, 0.9);
  border: 4px solid #000;
  box-shadow: inset 3px 3px 0 var(--panel-hi), inset -3px -3px 0 var(--panel-sh), 5px 5px 0 rgba(0,0,0,0.4);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.2s;
}
.fade-up.store-shop-item { opacity: 0; transform: translateY(28px); }
.store-shop-item.in-view { opacity: 1; transform: translateY(0); }
.store-shop-item:hover { transform: translateY(-5px); }
.store-shop-item i { font-size: 2.5rem; color: var(--accent-aqua); margin-bottom: 16px; display: block; }
.store-shop-item h3 { font-family: var(--font-pixel); font-size: 10px; color: var(--text-sand); text-shadow: 2px 2px 0 #000; margin-bottom: 12px; letter-spacing: 0.8px; }
.store-shop-item p { font-family: var(--font-body); font-size: 0.95rem; color: #9ABEDC; line-height: 1.6; }

/* ===== PROMISE — Forest (uses main.css rules-section bg via class) ===== */
.store-promise-section { padding: 80px 32px; }
.store-promise-card {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
.store-promise-card i { font-size: 3rem; color: var(--accent-red); margin-bottom: 20px; display: inline-block; filter: drop-shadow(0 0 10px rgba(227,74,47,0.3)); }
.store-promise-title { font-family: var(--font-pixel); font-size: clamp(13px, 2.2vw, 18px); color: var(--text-sand); text-shadow: 3px 3px 0 #000; margin-bottom: 24px; letter-spacing: 1.5px; }
.store-promise-text { font-family: var(--font-body); font-size: 1.1rem; color: #9ABEDC; line-height: 1.8; max-width: 720px; margin: 0 auto 32px; }
.store-promise-text strong { color: var(--accent-red); }
.store-promise-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.store-promise-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(92,201,30,0.12); border: 2px solid rgba(92,201,30,0.3); padding: 8px 18px; font-family: var(--font-pixel); font-size: 8px; color: #B8F075; text-shadow: 1px 1px 0 #000; }
.store-promise-badge i { color: var(--accent-green); }

/* ===== SUPPORT — Stone (uses main.css team-section bg via class) ===== */
.store-support-section { padding: 80px 32px; }
.store-support-content { text-align: center; max-width: 700px; margin: 0 auto; position: relative; }
.store-support-content i { font-size: 2.8rem; color: var(--accent-red); margin-bottom: 20px; display: inline-block; }
.store-support-content h2 { font-family: var(--font-pixel); font-size: clamp(12px, 2vw, 16px); color: var(--text-sand); text-shadow: 3px 3px 0 #000; margin-bottom: 16px; letter-spacing: 1px; line-height: 1.8; }
.store-support-content p { font-family: var(--font-body); font-size: 1rem; color: #9ABEDC; line-height: 1.7; margin-bottom: 28px; }
.store-support-note { font-size: 0.85rem !important; color: var(--text-muted) !important; margin-top: 16px !important; margin-bottom: 0 !important; }

/* ===== ACTIVE NAV ===== */
header nav ul li a.active { color: var(--text-sand) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .store-ranks-section,
  .store-tokens-section,
  .store-shop-section,
  .store-promise-section,
  .store-support-section { padding: 60px 24px 70px; }
  .store-ranks-grid { flex-direction: column; align-items: center; }
  .store-rank-card { max-width: 100%; }
  .store-rank-card.featured.in-view { transform: none; }
  .store-notify-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .store-hero-stats { flex-direction: column; align-items: center; }
  .store-tokens-grid { flex-direction: column; align-items: center; }
  .store-token-card { max-width: 100%; }
}
