/*
Theme Name: MailGenie Dark
Description: Branded dark theme for MailGenie Email Outreach & CRM
Version: 1.0.0
Author: MailGenie
License: Proprietary
Text Domain: mailgenie-dark
*/

:root {
  --mg-primary: #7c3aed;
  --mg-primary-dark: #6d28d9;
  --mg-bg-dark: #0f172a;
  --mg-bg-hero: #1e3a5f;
  --mg-bg-card: rgba(15, 23, 42, 0.6);
  --mg-text: #e2e8f0;
  --mg-text-muted: #94a3b8;
  --mg-border: rgba(255, 255, 255, 0.1);
  --mg-accent: #a78bfa;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', -apple-system, sans-serif; background: var(--mg-bg-dark); color: var(--mg-text); }
body { margin: 0; padding: 0; overflow-x: hidden; line-height: 1.6; }

/* NAV */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--mg-border);
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-logo-icon { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.nav-logo img, .footer-logo img { display: block; object-fit: contain; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--mg-text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 1.5rem; align-items: center; }
.nav-login { color: var(--mg-text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-login:hover { color: #fff; }
.nav-cta {
  background: var(--mg-primary);
  color: #fff;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid var(--mg-primary-dark);
}
.nav-cta:hover { background: var(--mg-primary-dark); transform: translateY(-1px); }

/* HERO */
.mg-hero {
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #7c3aed 100%);
  border-radius: 0 0 24px 24px;
}
.mg-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.mg-hero p { font-size: 1.25rem; color: #e0f2fe; margin: 0 auto 3rem; max-width: 700px; line-height: 1.6; }
.mg-btn-primary {
  display: inline-block;
  background: #fff;
  color: #0f172a;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.mg-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); background: #f8fafc; }
.mg-btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.95rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
  margin-left: 1rem;
}
.mg-btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* FEATURE GRID */
.mg-features { max-width: 1200px; margin: 4rem auto; padding: 0 2rem; }
.mg-features h2 { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.feature-card {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); background: rgba(30, 41, 59, 0.8); }
.feature-icon { width: 48px; height: 48px; margin-bottom: 1.5rem; color: var(--mg-primary); }
.feature-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.feature-card h3 { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 1rem; margin-top: 0; }
.feature-card p { font-size: 1rem; color: var(--mg-text-muted); margin: 0; line-height: 1.6; }

/* STANDARD PAGES */
.page-container {
  padding: 10rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}
.page-container h1 { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 2rem; }
.page-container h2 { font-size: 2rem; color: #fff; margin: 2rem 0 1rem; }
.page-container p { font-size: 1.1rem; color: var(--mg-text-muted); margin-bottom: 1.5rem; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--mg-border); padding: 4rem 2rem 2rem;
  margin-top: 4rem; background: rgba(15,23,42,0.8);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.4rem; margin-bottom: 1.5rem; }
.footer-col h4 { color: #fff; font-weight: 600; margin-bottom: 1.5rem; font-size: 1rem; }
.footer-col a { display: block; color: var(--mg-text-muted); text-decoration: none; margin-bottom: 0.8rem; font-size: 0.95rem; transition: color 0.2s;}
.footer-col a:hover { color: var(--mg-primary); }
.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--mg-border);
  display: flex; justify-content: space-between; align-items: center; color: var(--mg-text-muted); font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-links, .nav-login, .mg-btn-secondary { display: none; }
  .mg-hero { padding: 8rem 1.5rem 4rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* mg-subpage-enhancements-20261024 */
body.wp-theme-mailgenie-dark {
  background: var(--mg-bg-dark, #0f172a) !important;
  color: var(--mg-text, #e2e8f0) !important;
}
.page-container {
  padding: 8.5rem 2rem 4rem !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}
.page-header {
  text-align: center;
  padding: 3rem 2rem;
  margin-bottom: 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #7c3aed 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.page-header h1 {
  margin: 0 !important;
  font-size: clamp(2.25rem, 4vw, 3.25rem) !important;
  color: #ffffff !important;
}
.page-content > h2.wp-block-heading {
  text-align: center;
  font-size: 1.85rem;
  color: #ffffff !important;
  margin: 0 0 0.75rem !important;
}
.page-content > p.wp-block-paragraph {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem !important;
  color: #cbd5e1 !important;
}
.page-content > ul.wp-block-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 2rem 0 3rem !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.page-content > ul.wp-block-list > li {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.page-content > ul.wp-block-list > li::before {
  content: "✦";
  color: #38bdf8;
  font-size: 1.05rem;
}
.page-content h3.wp-block-heading {
  font-size: 1.5rem;
  color: #ffffff !important;
  margin: 2.25rem 0 0.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.page-content .wp-block-button {
  margin: 1.25rem 0 2rem;
}
.page-content .wp-block-button__link {
  display: inline-block;
  background: linear-gradient(135deg, #0ea5e9, #7c3aed) !important;
  color: #ffffff !important;
  padding: 0.8rem 1.75rem !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}
