/* ================================================
   MangoIL — Minecraft-themed stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* ---- CSS Variables ---- */
:root {
  --mc-green:    #5aab06;
  --mc-dark:     #1a1a2e;
  --mc-dirt:     #8b5e3c;
  --mc-sky:      #87ceeb;
  --mc-gold:     #f5c518;
  --mc-diamond:  #5ee7e7;
  --mc-silver:   #c0c0c0;
  --mc-purple:   #7b2fbf;
  --mc-orange:   #f5a623;
  --mc-red:      #c0392b;
  --mc-shadow:   4px 4px 0 #0008;
  --pixel-font: 'Press Start 2P', monospace;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--pixel-font);
  background: var(--mc-dark);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  image-rendering: pixelated;
}

a { color: var(--mc-green); text-decoration: none; }
a:hover { color: var(--mc-gold); }

main { flex: 1; }

/* ================================================
   NAVBAR
   ================================================ */
.mc-navbar {
  background: #111;
  border-bottom: 4px solid var(--mc-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mc-brand {
  font-family: var(--pixel-font);
  font-size: 1rem;
  color: var(--mc-gold) !important;
  text-shadow: 2px 2px 0 #8b6200;
}

.mc-nav-links a {
  font-family: var(--pixel-font);
  font-size: 0.65rem;
  margin-left: 20px;
  color: #fff;
  padding: 6px 10px;
  border: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.mc-nav-links a:hover {
  color: var(--mc-green);
  border-color: var(--mc-green);
}

/* ================================================
   BUTTONS
   ================================================ */
.mc-btn {
  display: inline-block;
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  image-rendering: pixelated;
  transition: transform 0.1s, filter 0.1s;
  text-decoration: none;
}

.mc-btn:hover { transform: translateY(-2px); filter: brightness(1.15); }
.mc-btn:active { transform: translateY(1px); filter: brightness(0.9); }

.mc-btn-primary {
  background: var(--mc-green);
  color: #fff;
  box-shadow: 0 4px 0 #2d5a00;
}

.mc-btn-secondary {
  background: #555;
  color: #fff;
  box-shadow: 0 4px 0 #222;
}

.mc-btn-buy {
  background: var(--mc-gold);
  color: #000;
  box-shadow: 0 4px 0 #9a7c00;
}

.mc-btn-free {
  background: var(--mc-green);
  color: #fff;
  box-shadow: 0 4px 0 #2d5a00;
}

/* ================================================
   LANDING HERO
   ================================================ */
.landing-hero {
  position: relative;
  min-height: 90vh;
  background: linear-gradient(to bottom, #87ceeb 0%, #c9e8f5 50%, #87ceeb 55%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sky pixel pattern overlay */
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 15px, rgba(255,255,255,0.04) 16px),
    repeating-linear-gradient(90deg, transparent, transparent 15px, rgba(255,255,255,0.04) 16px);
  pointer-events: none;
}

/* ---- Pixel Clouds ---- */
.pixel-clouds { position: absolute; top: 40px; width: 100%; pointer-events: none; }

.cloud {
  position: absolute;
  background: #fff;
  image-rendering: pixelated;
}

.cloud-1 { width: 120px; height: 32px; top: 0; left: 8%; box-shadow: 16px -16px 0 #fff, -16px -16px 0 #fff, 32px 0 #fff, -32px 0 #fff; }
.cloud-2 { width: 96px;  height: 24px; top: 20px; left: 40%; box-shadow: 16px -16px 0 #fff, -16px -16px 0 #fff; }
.cloud-3 { width: 80px;  height: 24px; top: 5px; right: 10%; box-shadow: 16px -16px 0 #fff, -16px -16px 0 #fff; }

/* ---- Pixel Sun ---- */
.pixel-sun {
  position: absolute;
  top: 30px;
  right: 15%;
  width: 64px;
  height: 64px;
  background: var(--mc-gold);
  box-shadow: 0 0 0 8px #f5c518aa, var(--mc-shadow);
  image-rendering: pixelated;
}

/* ---- Hero Content ---- */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px 160px;
}

.hero-title-he {
  font-family: Arial, sans-serif; /* Hebrew text needs non-pixel font for readability */
  font-size: 2rem;
  font-weight: 900;
  color: var(--mc-dark);
  text-shadow: 2px 2px 0 var(--mc-green);
  margin-bottom: 8px;
}

.hero-title-en {
  font-family: var(--pixel-font);
  font-size: 1rem;
  color: var(--mc-dark);
  text-shadow: 2px 2px 0 #00000044;
  margin-bottom: 16px;
}

.hero-subtitle-he {
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  color: #1a3e00;
  margin-bottom: 4px;
}

.hero-subtitle-en {
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  color: #333;
  margin-bottom: 32px;
}

/* ---- IP Badge ---- */
.ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111c;
  border: 3px solid var(--mc-green);
  padding: 10px 20px;
  margin-bottom: 28px;
  box-shadow: var(--mc-shadow);
}

.ip-label {
  font-size: 0.5rem;
  color: var(--mc-green);
  text-transform: uppercase;
}

.ip-address {
  font-size: 0.85rem;
  color: var(--mc-gold);
  letter-spacing: 1px;
}

.copy-btn {
  background: #333;
  border: 2px solid #555;
  color: #fff;
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.copy-btn:hover { background: #555; }

/* ---- Hero Actions ---- */
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ================================================
   MINECRAFT GROUND / LANDSCAPE
   ================================================ */
.mc-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
}

.mc-ground-grass {
  position: absolute;
  bottom: 80px;
  width: 100%;
  height: 24px;
  background: var(--mc-green);
  /* Rough pixel top edge */
  clip-path: polygon(0% 50%, 1% 0%, 2% 50%, 3% 0%, 4% 50%, 5% 0%, 6% 50%, 7% 0%, 8% 50%, 9% 0%,
    10% 50%, 11% 0%, 12% 50%, 13% 0%, 14% 50%, 15% 0%, 16% 50%, 17% 0%, 18% 50%, 19% 0%,
    20% 50%, 21% 0%, 22% 50%, 23% 0%, 24% 50%, 25% 0%, 26% 50%, 27% 0%, 28% 50%, 29% 0%,
    30% 50%, 31% 0%, 32% 50%, 33% 0%, 34% 50%, 35% 0%, 36% 50%, 37% 0%, 38% 50%, 39% 0%,
    40% 50%, 41% 0%, 42% 50%, 43% 0%, 44% 50%, 45% 0%, 46% 50%, 47% 0%, 48% 50%, 49% 0%,
    50% 50%, 51% 0%, 52% 50%, 53% 0%, 54% 50%, 55% 0%, 56% 50%, 57% 0%, 58% 50%, 59% 0%,
    60% 50%, 61% 0%, 62% 50%, 63% 0%, 64% 50%, 65% 0%, 66% 50%, 67% 0%, 68% 50%, 69% 0%,
    70% 50%, 71% 0%, 72% 50%, 73% 0%, 74% 50%, 75% 0%, 76% 50%, 77% 0%, 78% 50%, 79% 0%,
    80% 50%, 81% 0%, 82% 50%, 83% 0%, 84% 50%, 85% 0%, 86% 50%, 87% 0%, 88% 50%, 89% 0%,
    90% 50%, 91% 0%, 92% 50%, 93% 0%, 94% 50%, 95% 0%, 96% 50%, 97% 0%, 98% 50%, 99% 0%,
    100% 50%, 100% 100%, 0% 100%);
}

.mc-ground-dirt {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: var(--mc-dirt);
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 15px, rgba(0,0,0,0.1) 16px
  ), repeating-linear-gradient(
    90deg, transparent, transparent 15px, rgba(0,0,0,0.1) 16px
  );
}

/* ---- Pixel Trees ---- */
.mc-trees { position: absolute; bottom: 80px; width: 100%; }

.mc-tree {
  position: absolute;
  bottom: 0;
}

.mc-tree::before { /* trunk */
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 30px;
  background: #5c3a1e;
}

.mc-tree::after { /* leaves */
  content: '';
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: #2d7a0a;
  box-shadow: 0 -16px 0 #3d9a12;
}

.tree-1 { left: 5%; }
.tree-2 { left: 18%; }
.tree-3 { right: 12%; }
.tree-4 { right: 25%; }

/* ================================================
   INFO SECTION (How to Join)
   ================================================ */
.info-section {
  background: #111;
  padding: 60px 20px;
  border-top: 4px solid var(--mc-green);
}

.section-title {
  font-family: var(--pixel-font);
  font-size: 1rem;
  text-align: center;
  color: var(--mc-gold);
  margin-bottom: 36px;
  text-shadow: 2px 2px 0 #6b4800;
}

.mc-card {
  background: #1e1e1e;
  border: 3px solid #555;
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.2s;
}

.mc-card:hover { border-color: var(--mc-green); }

.mc-card-icon { font-size: 2rem; margin-bottom: 12px; }

.mc-card h3 {
  font-family: var(--pixel-font);
  font-size: 0.65rem;
  color: var(--mc-gold);
  margin-bottom: 10px;
}

.mc-card p { font-size: 0.55rem; line-height: 1.8; color: #ccc; }

/* ================================================
   STORE PAGE
   ================================================ */
.store-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 4px solid var(--mc-gold);
  text-align: center;
  padding: 50px 20px 30px;
}

.store-title {
  font-family: var(--pixel-font);
  font-size: 1.4rem;
  color: var(--mc-gold);
  text-shadow: 3px 3px 0 #6b4800;
  margin-bottom: 12px;
}

.store-subtitle {
  font-size: 0.65rem;
  color: #aaa;
  margin-bottom: 16px;
}

.craftingstore-notice {
  display: inline-block;
  background: #1e1e1e;
  border: 2px solid #555;
  padding: 10px 20px;
  font-size: 0.55rem;
  color: #aaa;
}

.craftingstore-notice a { color: var(--mc-gold); }

.store-container { padding: 40px 16px 60px; }

/* ---- Tabs ---- */
.mc-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 4px solid var(--mc-gold);
  list-style: none;
  margin-bottom: 0;
  padding: 0;
  flex-wrap: wrap;
}

.mc-tab {
  background: #1e1e1e;
  border: 3px solid #555;
  border-bottom: none;
  color: #aaa;
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mc-tab:hover { background: #333; color: #fff; }

.mc-tab.active {
  background: var(--mc-gold);
  border-color: var(--mc-gold);
  color: #000;
}

.store-tab-content {
  background: #16213e;
  border: 3px solid var(--mc-gold);
  border-top: none;
  padding: 24px;
}

/* ---- Product Cards ---- */
.product-card {
  background: #1e1e1e;
  border: 3px solid #444;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-4px); }

/* Rank card colors */
.rank-silver { border-color: var(--mc-silver); }
.rank-silver:hover { box-shadow: 0 0 16px var(--mc-silver); }
.rank-gold   { border-color: var(--mc-gold); }
.rank-gold:hover   { box-shadow: 0 0 16px var(--mc-gold); }
.rank-diamond { border-color: var(--mc-diamond); }
.rank-diamond:hover { box-shadow: 0 0 16px var(--mc-diamond); }

/* Key card colors */
.key-mango_admin { border-color: var(--mc-orange); }
.key-mango_admin:hover { box-shadow: 0 0 16px var(--mc-orange); }
.key-ender { border-color: var(--mc-purple); }
.key-ender:hover { box-shadow: 0 0 16px var(--mc-purple); }
.key-pro { border-color: var(--mc-green); }
.key-pro:hover { box-shadow: 0 0 16px var(--mc-green); }
.key-member { border-color: #aaa; }
.key-member:hover { box-shadow: 0 0 16px #aaa; }

.acc-card { border-color: #a78bfa; }
.acc-card:hover { box-shadow: 0 0 16px #a78bfa; }

.product-icon-wrap {
  background: #111;
  border: 2px solid #333;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.product-icon {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}

.product-name {
  font-family: var(--pixel-font);
  font-size: 0.65rem;
  margin-bottom: 8px;
  color: #fff;
}

.product-desc {
  font-size: 0.5rem;
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 10px;
  flex: 1;
}

.perks-list {
  list-style: none;
  text-align: left;
  margin-bottom: 16px;
  padding: 0;
}

.perks-list li {
  font-size: 0.45rem;
  color: #ccc;
  line-height: 2.2;
  padding-left: 4px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid #333;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  color: var(--mc-gold);
}

.price-free { color: var(--mc-green); }

/* ================================================
   FOOTER
   ================================================ */
.mc-footer {
  background: #0a0a0a;
  border-top: 4px solid #333;
  padding: 24px 20px;
  text-align: center;
}

.footer-inner { max-width: 800px; margin: 0 auto; }

.footer-disclaimer {
  font-size: 0.45rem;
  color: #888;
  line-height: 2.2;
  margin-bottom: 10px;
}

.footer-disclaimer strong { color: #bbb; }

.footer-copy {
  font-size: 0.4rem;
  color: #555;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .hero-title-he { font-size: 1.3rem; }
  .hero-title-en { font-size: 0.75rem; }
  .ip-address { font-size: 0.65rem; }
  .store-title { font-size: 1rem; }
  .mc-tab { font-size: 0.5rem; padding: 8px 12px; }
}
