/*
Theme Name: Social Birthday Bot
Theme URI: https://socialbirthdaybot.com
Author: Detroit Websites
Author URI: https://detroitwebsites.com
Description: Dark, gritty mobile-first theme for AI birthday message service
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: socialbirthdaybot
*/

/* ===================================
   CSS RESET & BASE
=================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4267B2; /* Facebook blue */
  --primary-dark: #365899;
  --primary-light: #5b7fc7;
  --secondary: #00D4FF; /* Electric cyan */
  --secondary-dark: #00b8e6;
  --success: #00C853;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --text-dark: #1c1e21;
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-elevated: #242424;
  --border: #333333;
  --shadow: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(66, 103, 178, 0.3);
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* ===================================
   MOBILE-FIRST LAYOUT
=================================== */
.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ===================================
   HEADER & NAVIGATION
=================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: var(--primary-light);
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.main-navigation a:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

/* Header CTA - Always visible */
.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-cta .btn-cta {
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--text);
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  
  .main-navigation {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 15px;
  }
  
  .main-navigation.toggled {
    display: block;
  }
  
  .main-navigation ul {
    list-style: none;
    flex-direction: column;
  }
  
  .main-navigation li {
    border-top: 1px solid var(--border);
    padding: 12px 0;
  }

  .main-navigation a {
    padding: 8px 0;
  }
}

/* ===================================
   BUTTONS & CTAs
=================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-cta {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow), var(--shadow-glow);
}

.btn-cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(66, 103, 178, 0.5);
  text-decoration: none;
  color: white;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--bg);
  text-decoration: none;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===================================
   HERO SECTION
=================================== */
.hero {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, var(--primary-dark) 100%);
  color: white;
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(66, 103, 178, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero {
    padding: 100px 0;
  }
}

.hero-content h1 {
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 48px;
  }
}

.hero-content p {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.9;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .hero-content p {
    font-size: 20px;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

.price-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-glow);
}

/* ===================================
   FEATURES SECTION
=================================== */
.features {
  padding: 80px 0;
  background: var(--bg);
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

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

.feature-card {
  background: var(--bg-card);
  padding: 35px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 20px;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ===================================
   PRICING SECTION
=================================== */
.pricing {
  padding: 80px 0;
  background: var(--bg-card);
  text-align: center;
}

.pricing-card {
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 50px 35px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.pricing-amount {
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0;
}

.pricing-amount .currency {
  font-size: 28px;
  vertical-align: super;
  color: var(--primary-light);
}

.pricing-period {
  color: var(--text-muted);
  font-size: 18px;
}

.pricing-features {
  list-style: none;
  margin: 35px 0;
  text-align: left;
}

.pricing-features li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.pricing-features li:before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
  margin-right: 10px;
}

/* ===================================
   HOW IT WORKS
=================================== */
.how-it-works {
  padding: 80px 0;
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

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

.step-card {
  text-align: center;
  padding: 30px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}

.step-card h3 {
  color: var(--text);
  margin-bottom: 10px;
}

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

/* ===================================
   TESTIMONIALS
=================================== */
.testimonials {
  padding: 80px 0;
  background: var(--bg-card);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

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

.testimonial-card {
  background: var(--bg-elevated);
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.testimonial-text {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary);
}

/* ===================================
   FAQ SECTION
=================================== */
.faq {
  padding: 80px 0;
  background: var(--bg);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-elevated);
}

.faq-answer {
  padding: 0 25px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================
   STICKY CTA BAR (Mobile)
=================================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  padding: 15px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

.sticky-cta-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.sticky-cta .btn-cta {
  padding: 10px 20px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ===================================
   FOOTER
=================================== */
.site-footer {
  background: #0a0a0a;
  color: var(--text-muted);
  padding: 50px 0 30px;
  margin-bottom: 70px; /* Space for sticky CTA on mobile */
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .site-footer {
    margin-bottom: 0;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

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

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* ===================================
   UTILITY CLASSES
=================================== */
.text-center {
  text-align: center;
}

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

.text-secondary {
  color: var(--secondary);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden {
  display: none;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none;
  }
}

/* ===================================
   WOOCOMMERCE OVERRIDES
=================================== */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-glow) !important;
}

.woocommerce-message,
.woocommerce-info {
  background: var(--bg-card) !important;
  border-color: var(--primary) !important;
  color: var(--text) !important;
}

.woocommerce-error {
  background: var(--bg-card) !important;
  border-color: #ff4444 !important;
  color: var(--text) !important;
}
