/* ========== index.css ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00A04A;
  --primary-dark: #00803D;
  --primary-glow: rgba(0, 160, 74, 0.4);
  --accent-gold: #F5B342;
  --glass-bg: rgba(20, 25, 30, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --card-radius: 32px;
  --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --hover-lift: translateY(-6px);
}

html {
  scroll-behavior: smooth;
}

/* Imaginile pornesc invizibile — JS le arată simultan când s-au încărcat */
.background       { opacity: 0; transition: opacity 0.6s ease; }
.game-preview     { opacity: 0; transition: opacity 0.6s ease; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated background */
.background {
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: url('../image/bg.png') center/cover no-repeat;
  filter: blur(10px) brightness(0.45);
  z-index: -3;
  animation: slowZoom 24s infinite alternate ease-in-out;
  will-change: transform;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .background { animation: none; }
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(0,0,0,0.5), rgba(0,0,0,0.75));
  backdrop-filter: blur(10px);
  z-index: -2;
}

.content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Glass cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 2rem 2rem;
  transition: var(--transition-smooth);
  box-shadow: 0 18px 35px -12px rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
  transform: var(--hover-lift);
  border-color: rgba(0, 160, 74, 0.5);
  box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.5);
  background: rgba(28, 34, 40, 0.6);
}

.hero {
  text-align: center;
  padding: 2.5rem 2rem;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFFFFF, #C0FFD0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.3rem);
  opacity: 0.92;
  font-weight: 400;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 2rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
  border: 1px solid transparent;
}

/* Google Play button - original green */
.btn-google {
  background: var(--primary);
  box-shadow: 0 6px 16px rgba(0, 160, 74, 0.35);
  color: white;
}
.btn-google:hover {
  background: var(--primary-dark);
  transform: scale(1.02) translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 160, 74, 0.5);
}

/* App Store button - dark with green accent (folosit DOAR cu .btn, nu cu .btn-store) */
.btn.btn-apple {
  background: #1c1c1e;
  border: 1px solid rgba(0, 160, 74, 0.6);
  color: var(--white);
}
.btn.btn-apple:hover {
  background: #2c2c2e;
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Rating buttons */
.btn-rate-google {
  background: rgba(0, 160, 74, 0.2);
  border: 1px solid var(--primary);
  color: white;
}
.btn-rate-google:hover {
  background: var(--primary);
  border-color: var(--primary-glow);
}

.btn-rate-apple {
  background: rgba(245, 179, 66, 0.2);
  border: 1px solid var(--accent-gold);
  color: white;
}
.btn-rate-apple:hover {
  background: var(--accent-gold);
  color: #1e1e1e;
}

.btn-idea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-idea:hover {
  background: rgba(0, 160, 74, 0.3);
  border-color: var(--primary);
}

.btn-outline-green {
  background: rgba(0, 160, 74, 0.1);
  border: 1px solid var(--primary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
}
.btn-outline-green:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}

.badge-new {
  background: var(--primary);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.2rem 0.8rem;
  border-radius: 40px;
  margin-left: 8px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 160, 74, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 160, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 160, 74, 0); }
}

.preview-wrapper {
  text-align: center;
  margin-bottom: 1.2rem;
}
.game-preview {
  max-width: 100%;
  width: 460px;
  border-radius: 28px;
  box-shadow: 0 20px 30px -8px black;
  cursor: pointer;
  transition: transform 0.25s;
  border: 1px solid rgba(0, 160, 74, 0.4);
}
.game-preview:hover {
  transform: scale(1.02);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.8rem;
  margin: 1.8rem 0 0.5rem;
}
.feature-item {
  background: rgba(255,255,255,0.05);
  border-radius: 28px;
  padding: 1rem;
  text-align: center;
}
.feature-item i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.feature-item h4 {
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.info-text {
  text-align: center;
}
.info-text p {
  max-width: 680px;
  margin: 0.8rem auto;
}

.feedback-form {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.form-row input, .form-row textarea {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.8rem 1rem;
  border-radius: 28px;
  color: white;
  font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 160, 74, 0.3);
}
.submit-feedback {
  background: var(--primary);
  justify-content: center;
  border: none;
}
.submit-feedback:hover {
  background: var(--primary-dark);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.social-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 60px;
  font-size: 1.5rem;
  transition: all 0.25s;
  color: white;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--primary);
  transform: translateY(-5px);
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.footer-links a, .email-contact a {
  color: #ddd;
  text-decoration: none;
}
.footer-links a:hover, .email-contact a:hover {
  color: var(--primary);
}

/* ── HERO ── */
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #00e676);
  color: #052b15;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 40px;
  margin-bottom: 1.2rem;
  animation: pulse 1.8s infinite;
}
.hero-sub {
  font-size: .9rem;
  opacity: .65;
  margin-top: .5rem;
}

/* ── DOWNLOAD CARD ── */
.download-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.download-image-wrap {
  display: flex;
  justify-content: center;
}
.download-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.download-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}
.download-sub {
  opacity: .75;
  font-size: .92rem;
}
.download-buttons {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

/* Store buttons */
.btn-store {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.4rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--white);
  font-family: inherit;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-store span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.btn-store span small {
  font-size: .7rem;
  opacity: .75;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.btn-store span strong,
.btn-store span {
  font-size: 1.05rem;
  font-weight: 700;
}
.btn-store-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.btn-android {
  background: linear-gradient(135deg, #1a7a3c, var(--primary));
  box-shadow: 0 8px 24px rgba(0,160,74,.35);
}
.btn-android:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0,160,74,.5);
}
.btn-store.btn-apple {
  background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
  border-color: rgba(0,160,74,.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  color: var(--white);
}
.btn-store.btn-apple:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}
.platform-note {
  font-size: .78rem;
  opacity: .5;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 720px) {
  .download-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .download-buttons { align-items: stretch; }
  .btn-store { justify-content: center; }
  .platform-note { justify-content: center; }
  .game-preview { width: 100%; max-width: 320px; }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 28px;
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 45px;
  color: white;
  cursor: pointer;
}
.close-modal:hover {
  color: var(--primary);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 12, 18, 0.9);
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 1100;
  border-top: 1px solid rgba(0, 160, 74, 0.4);
}
.cookie-btns button {
  background: rgba(255,255,255,0.15);
  border: none;
  padding: 6px 20px;
  border-radius: 60px;
  color: white;
  margin-left: 10px;
  cursor: pointer;
}
.cookie-btns button:first-child {
  background: var(--primary);
}

/* Chat widget */
.fsmo-chat-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
}
.fsmo-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 60px;
  background: var(--primary);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.fsmo-chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  background: rgba(20, 25, 35, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(0, 160, 74, 0.5);
  overflow: hidden;
}
.fsmo-chat-header {
  background: #111;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.fsmo-chat-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#fsmoChatMessages {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.4);
  border-radius: 20px;
  padding: 8px;
}
.fsmo-chat-body input, .fsmo-chat-body textarea {
  width: 100%;
  background: #222;
  border: 1px solid #555;
  border-radius: 20px;
  padding: 8px 12px;
  color: white;
}
.fsmo-chat-body button {
  background: var(--primary);
  border: none;
  border-radius: 40px;
  padding: 10px;
  font-weight: bold;
  width: 100%;
}

/* ── MOBILE ── */
@media (max-width: 700px) {
  .content {
    padding: 0.85rem 0.85rem 5rem; /* bottom mare ca chat-ul să nu acopere content */
    gap: 1.2rem;
  }
  .glass-card {
    padding: 1.25rem 1.1rem;
    border-radius: 20px;
  }

  /* Hero mai compact */
  .hero { padding: 1.8rem 1rem; }
  h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .tagline { font-size: 1rem; }
  .hero-sub { font-size: 0.8rem; }

  /* Download — stivuit vertical */
  .download-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }
  .download-image-wrap { order: -1; }
  .game-preview { width: 100%; max-width: 290px; border-radius: 18px; }
  .download-title { font-size: 1.4rem; }
  .download-buttons { gap: 0.7rem; }
  .btn-store { padding: 0.85rem 1.2rem; border-radius: 14px; justify-content: center; }
  .btn-store-icon { font-size: 1.5rem; }
  .btn-store span { font-size: 0.95rem; }
  .platform-note { justify-content: center; }

  /* Features */
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
  .feature-item { padding: 0.85rem 0.6rem; border-radius: 16px; }
  .feature-item i { font-size: 1.7rem; }
  .feature-item h4 { font-size: 0.88rem; }
  .feature-item p  { font-size: 0.75rem; }

  /* Butoane rating */
  .button-group { gap: 0.7rem; }
  .btn { padding: 0.7rem 1.1rem; font-size: 0.88rem; }

  /* Formular feedback */
  .feedback-form { max-width: 100%; }
  .form-row input,
  .form-row textarea {
    font-size: 16px; /* previne zoom pe iOS */
    border-radius: 16px;
  }

  /* Social */
  .social-links { gap: 1rem; }
  .social-icon { width: 48px; height: 48px; font-size: 1.3rem; }
}

/* Extra-small (sub 380px — telefoane vechi/mici) */
@media (max-width: 380px) {
  .feature-grid { grid-template-columns: 1fr; }
  .btn-store { flex-direction: column; gap: 4px; text-align: center; }
}
/* ── CHANGELOG CATEGORIES ── */
.changelog-category {
  margin-bottom: 2rem;
}
.changelog-category:last-child {
  margin-bottom: 0;
}
.changelog-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 160, 74, 0.12);
  border: 1px solid rgba(0, 160, 74, 0.3);
  border-radius: 40px;
  padding: .3rem .9rem;
  margin-bottom: 1.1rem;
}