/* DeenRoutine Shared Styles */
/* Global variables, header, footer, buttons, and common components */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #0891b2;
  --color-primary-dark: #0e7490;
  --color-primary-light: #f0fdfa;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-ramadan: #7c3aed;
  --color-ramadan-dark: #5b21b6;
  --color-green: #10b981;
  --color-dark: #0f172a;
  --color-gold: #fbbf24;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER / NAV ===== */
.site-header {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
}
.logo img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.logo-text {
  font-weight: 700;
  font-size: 22px;
}
.header-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.header-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.locale-switcher {
  display: flex;
  gap: 2px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 2px;
}
.locale-btn {
  background: transparent;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: inherit;
}
.locale-btn.active {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.locale-btn:hover:not(.active) {
  color: var(--color-text);
}

.header-cta {
  background: var(--color-primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--color-primary-dark); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--color-text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 20px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-nav a:hover { color: var(--color-primary); }
.mobile-locale-switcher {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}
.mobile-locale-switcher .locale-btn {
  padding: 8px 16px;
  font-size: 14px;
}
.mobile-cta {
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: white !important;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  margin-top: 8px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--color-primary);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.25);
}
.btn-secondary {
  background: white;
  color: var(--color-ramadan);
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  border: 2px solid var(--color-ramadan);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover {
  background: var(--color-ramadan);
  color: white;
}

.microtrust {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ===== SECTION COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}
.section-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PRICING CARDS ===== */
.plan-card {
  background: var(--color-bg-alt);
  border-radius: 20px;
  padding: 36px 28px;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.plan-card.featured {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border-color: var(--color-primary);
}
.plan-card.hub {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: white;
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.plan-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.plan-price {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.plan-card.hub .plan-price { color: var(--color-gold); }
.plan-period {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 28px;
}
.plan-card.hub .plan-period { color: rgba(255,255,255,0.7); }
.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.plan-features li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text-light);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.plan-card.hub .plan-features li {
  color: rgba(255,255,255,0.8);
  border-bottom-color: rgba(255,255,255,0.1);
}
.plan-features li:last-child { border-bottom: none; }
.check-icon {
  width: 20px;
  height: 20px;
  background: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon svg { width: 12px; height: 12px; }
.plan-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.plan-btn-primary {
  background: var(--color-primary);
  color: white;
}
.plan-btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(8,145,178,0.25);
}
.plan-btn-outline {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.plan-btn-outline:hover {
  background: var(--color-primary);
  color: white;
}
.plan-btn-hub {
  background: var(--color-gold);
  color: var(--color-dark);
}
.plan-btn-hub:hover { background: #f59e0b; }
.price-note {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  text-align: center;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-dark);
  color: #94a3b8;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  text-align: center;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header-nav { gap: 16px; }
  .header-nav a { font-size: 14px; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-cta { display: none; }
  .mobile-menu-btn { display: block; }

  .section-title { font-size: 32px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
  .section-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
