/* GBStatusSaver - White + Green Minimal Theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #25D366;
  --green-dark: #128C7E;
  --green-light: #DCF8C6;
  --green-hover: #1DA851;
  --text: #2C2C2C;
  --text-light: #666;
  --bg: #FFFFFF;
  --bg-soft: #F7FAF8;
  --border: #E5E7EB;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(37,211,102,0.15);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-dark);
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}
.logo-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}
.lang-switcher {
  position: relative;
}
.lang-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn:hover { background: var(--green-light); }
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.lang-menu a:hover { background: var(--green-light); color: var(--green-dark); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: 60px 20px 40px;
  text-align: center;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 .accent { color: var(--green-dark); }
.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.badge {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Download Button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s, background 0.15s;
}
.btn-download:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}
.btn-download:active { transform: translateY(0); }

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section {
  margin-bottom: 48px;
}
.section h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green-light);
  display: inline-block;
}
.section h3 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin: 20px 0 10px;
}
.section p {
  margin-bottom: 14px;
  color: var(--text);
}

/* Info card */
.info-card {
  background: var(--bg-soft);
  border-left: 4px solid var(--green);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 20px 0;
}

/* Spec table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table th, table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table th {
  background: var(--green);
  color: white;
  font-weight: 600;
}
table tr:last-child td { border-bottom: none; }
table tr:nth-child(even) td { background: var(--bg-soft); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.feature-card h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* Steps */
.steps { counter-reset: step; margin: 20px 0; }
.step {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 20px 20px 70px;
  margin-bottom: 14px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step h4 { color: var(--green-dark); margin-bottom: 6px; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}
.faq-q {
  padding: 16px 20px;
  background: var(--bg-soft);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q:hover { background: var(--green-light); }
.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green-dark);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
  color: var(--text-light);
}
.faq-item.open .faq-a {
  padding: 16px 20px;
  max-height: 500px;
}

/* Screenshots Gallery */
.screenshots-gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshots-gallery::-webkit-scrollbar { height: 8px; }
.screenshots-gallery::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 4px; }
.screenshots-gallery::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
.screenshot {
  flex: 0 0 auto;
  width: 280px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.screenshot:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Google Play Button (official style) */
.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.btn-google-play:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-google-play:active { transform: translateY(0); }
.btn-google-play svg { flex-shrink: 0; }
.gp-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-align: left;
}
.gp-small {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.gp-big {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}
[dir="rtl"] .gp-text { align-items: flex-end; text-align: right; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  padding: 50px 20px;
  text-align: center;
  border-radius: var(--radius);
  margin: 40px 0;
}
.cta-section h2 {
  color: white;
  border-bottom: none;
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.cta-section p { margin-bottom: 24px; opacity: 0.95; }
.cta-section .btn-download {
  background: white;
  color: var(--green-dark);
}
.cta-section .btn-download:hover {
  background: #f0f0f0;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.25s;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-icon {
  width: 72px;
  height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.modal h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 10px;
}
.modal p { color: var(--text-light); margin-bottom: 22px; }
.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.modal-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 110px;
}
.modal-btn-yes {
  background: var(--green);
  color: white;
}
.modal-btn-yes:hover { background: var(--green-hover); }
.modal-btn-no {
  background: #f0f0f0;
  color: var(--text);
}
.modal-btn-no:hover { background: #e0e0e0; }

/* Footer */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer h4 {
  color: white;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.footer a {
  color: #ccc;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1000px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* RTL support for Arabic */
[dir="rtl"] .step { padding: 20px 70px 20px 20px; }
[dir="rtl"] .step::before { left: auto; right: 18px; }
[dir="rtl"] .info-card { border-left: none; border-right: 4px solid var(--green); }
[dir="rtl"] .lang-menu { right: auto; left: 0; }

/* Responsive */
@media (max-width: 700px) {
  .hero { padding: 40px 16px 30px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .tagline { font-size: 1rem; }
  .section h2 { font-size: 1.5rem; }
  .container { padding: 30px 16px; }
  .btn-download { padding: 14px 28px; font-size: 1.05rem; }
  table { font-size: 0.9rem; }
  table th, table td { padding: 10px; }
  .modal { padding: 24px 20px; }
  .modal-buttons { flex-direction: column; }
  .modal-btn { width: 100%; }
  .screenshot { width: 220px; }
  .logo-icon-img { width: 32px; height: 32px; }
}
