/* =========================================================
   MODERN ADSENSE-FRIENDLY UI
   Theme: Emerald Premium
   Mobile-First • Glassmorphism • Dark Mode
   ========================================================= */

/* ================= ROOT VARIABLES ================= */
:root {
  --primary: #10b981;
  --primary-soft: rgba(16, 185, 129, 0.12);
  --link: #059669;

  --background: #ffffff;
  --surface: #f8fafc;

  --text-main: #0f172a;
  --text-muted: #64748b;

  --border: #e2e8f0;

  --radius: 14px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ================= LINKS ================= */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ================= HEADINGS ================= */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  color: var(--text-main);
}

.heading {
  color: var(--primary);
}

/* ================= LAYOUT ================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

/* ================= CARDS ================= */
.card,
.hover {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: var(--transition);
}

.hover p {
  color: var(--text-muted);
}

.hover:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.hover:hover p {
  color: var(--text-main);
}

.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* ================= GLASSMORPHISM ================= */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
}

/* ================= BUTTONS ================= */
button,
.btn {
  appearance: none;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

button:hover,
.btn:hover {
  opacity: 0.9;
}

button:active,
.btn:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

/* ================= VIDEO / CHAT ================= */
.video-call,
.chat {
  background: var(--primary);
  color: #ffffff;
  padding: 14px;
  border-radius: var(--radius);
}

/* ================= ADSENSE SAFE AREA ================= */
.ad-slot {
  margin: 16px 0;
  padding: 12px;
  text-align: center;
  background: transparent;
}

.ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* ================= ANIMATIONS ================= */
.animate-popin {
  animation: popinMessage 0.35s ease-out forwards;
  opacity: 0;
}

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes popinMessage {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE FIRST ================= */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================= DARK MODE ================= */
.dark {
  --background: #020617;
  --surface: #020617;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --primary-soft: rgba(16, 185, 129, 0.18);
}

.dark .glass {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ================= UTILITIES ================= */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.rounded { border-radius: var(--radius); }
.shadow {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
