/*
Theme Name: SaaSListr
Theme URI: https://saaslistr.com
Author: SaaSListr Team
Author URI: https://saaslistr.com
Description: A modern, dark-themed WordPress theme for SaaS directory submission services. Features responsive design, custom page templates, and built-in SEO optimization.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saaslistr
Tags: dark, modern, saas, business, one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== SaaSListr WordPress Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(220, 20%, 4%);
  --fg: hsl(210, 20%, 98%);
  --card: hsl(220, 20%, 7%);
  --card-50: hsla(220, 20%, 7%, 0.5);
  --primary: hsl(142, 76%, 50%);
  --primary-fg: hsl(220, 20%, 4%);
  --primary-10: hsla(142, 76%, 50%, 0.1);
  --primary-20: hsla(142, 76%, 50%, 0.2);
  --primary-30: hsla(142, 76%, 50%, 0.3);
  --secondary: hsl(220, 14%, 12%);
  --secondary-50: hsla(220, 14%, 12%, 0.5);
  --muted: hsl(215, 14%, 55%);
  --border: hsl(220, 14%, 18%);
  --border-50: hsla(220, 14%, 18%, 0.5);
  --fg-80: hsla(210, 20%, 98%, 0.8);
  --radius: 0.75rem;
  --gradient-primary: linear-gradient(135deg, hsl(142, 76%, 50%), hsl(160, 76%, 45%));
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, hsla(142, 76%, 50%, 0.15), transparent);
  --shadow-card: 0 4px 24px hsla(0, 0%, 0%, 0.4);
  --shadow-card-hover: 0 8px 40px hsla(0, 0%, 0%, 0.5);
  --shadow-glow: 0 0 40px hsla(142, 76%, 50%, 0.2);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Container */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Gradient BG */
.hero-gradient { background: var(--gradient-hero); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid var(--border-50);
  background: hsla(220, 20%, 4%, 0.8);
  backdrop-filter: blur(16px);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; }
.navbar-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-fg); font-weight: 800; font-size: 18px;
}
.navbar-title { font-size: 1.25rem; font-weight: 700; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s;
}
.navbar-links a:hover, .navbar-links a.active { color: var(--primary); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; border-radius: 8px; font-weight: 600;
  font-size: 0.875rem; transition: all 0.2s; cursor: pointer;
  border: none; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 12px var(--primary-30);
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.02); }
.btn-primary-lg { padding: 0.875rem 2rem; font-size: 1.125rem; }
.btn-outline {
  border: 1px solid var(--border); background: transparent;
  color: var(--fg); padding: 0.875rem 2rem; font-size: 1.125rem;
}
.btn-outline:hover { background: var(--secondary); }
.btn-full { width: 100%; }

/* Mobile nav */
.navbar-mobile-btn { display: none; background: none; border: none; color: var(--fg); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .navbar-links { 
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .navbar-links.show { display: flex; }
  .navbar-links a { 
    padding: 1rem;
    width: 100%;
    text-align: center;
  }
  .navbar-cta { display: none; }
  .navbar-mobile-btn { display: block; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  padding-top: 64px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.02;
  background-image: linear-gradient(var(--fg) 1px, transparent 1px),
                     linear-gradient(90deg, var(--fg) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 10; text-align: center; padding: 6rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); background: var(--secondary-50);
  padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem;
  color: var(--muted); margin-bottom: 2rem; backdrop-filter: blur(4px);
}
.hero-badge .icon { color: var(--primary); }
.hero h1 {
  max-width: 900px; margin: 0 auto;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
}
.hero p {
  max-width: 640px; margin: 1.5rem auto 0;
  font-size: 1.125rem; color: var(--muted);
}
.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; margin-top: 5rem;
}
.hero-stat-value { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
.hero-stat-label { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.text-center { text-align: center; }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; border-top: 1px solid var(--border-50); }
.section-header { max-width: 640px; margin: 0 auto 4rem; text-align: center; }
.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
.section-header p { margin-top: 1rem; font-size: 1.125rem; color: var(--muted); }

/* ===== FEATURES ===== */
.features-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr);
}
.feature-card {
  border: 1px solid var(--border); background: var(--card-50);
  border-radius: 12px; padding: 1.5rem; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--primary-30); background: var(--card); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--primary-10); display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--primary); font-size: 1.25rem;
}
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ===== PRICING ===== */
.pricing-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
.pricing-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 16px; border: 1px solid var(--border);
  background: var(--card); padding: 2rem; transition: all 0.3s;
  box-shadow: var(--shadow-card);
}
.pricing-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--primary-30); transform: scale(1.05); z-index: 10;
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.pricing-card.popular:hover {
  box-shadow: 0 0 60px var(--primary-30), var(--shadow-card-hover);
}
.popular-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-fg);
  padding: 0.375rem 1rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
  box-shadow: 0 4px 12px var(--primary-30);
}
.pricing-highlight { font-size: 0.75rem; font-weight: 500; color: var(--primary); margin-bottom: 0.5rem; }
.pricing-card h3 { font-size: 1.5rem; font-weight: 700; }
.pricing-price { font-size: 3rem; font-weight: 800; margin-top: 1rem; }
.pricing-period { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.pricing-desc { font-size: 0.875rem; color: var(--muted); margin: 1.5rem 0; }
.pricing-features { flex: 1; margin-bottom: 2rem; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.875rem; color: var(--fg-80); margin-bottom: 0.75rem;
}
.check-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-10); display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary); font-size: 0.75rem;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.popular { transform: scale(1); }
}

/* ===== FAQ ===== */
.faq-list { max-width: 768px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; background: none; border: none; color: var(--fg);
  font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question .arrow { transition: transform 0.3s; font-size: 1.25rem; color: var(--muted); }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s;
  color: var(--muted); font-size: 0.875rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 1.25rem; }

/* ===== BLOG ===== */
.blog-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr);
}
.blog-card {
  display: flex; flex-direction: column; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card);
  overflow: hidden; transition: all 0.3s;
  box-shadow: var(--shadow-card);
}
.blog-card:hover { border-color: var(--primary-30); transform: translateY(-4px); }
.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.blog-tag {
  font-size: 0.75rem; font-weight: 500; color: var(--primary);
  background: var(--primary-10); padding: 0.25rem 0.5rem; border-radius: 4px;
}
.blog-read-time { font-size: 0.75rem; color: var(--muted); }
.blog-card h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; transition: color 0.2s; }
.blog-card:hover h2 { color: var(--primary); }
.blog-card p { font-size: 0.875rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--muted);
}
.blog-card-footer .read-more { color: var(--primary); font-weight: 500; font-size: 0.875rem; }
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Newsletter */
.newsletter {
  max-width: 640px; margin: 5rem auto 0; text-align: center;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--card); padding: 2rem;
}
.newsletter h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.newsletter p { color: var(--muted); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 400px; margin: 0 auto; }
.newsletter-input {
  flex: 1; height: 48px; padding: 0 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--fg); font-size: 0.875rem; outline: none;
}
.newsletter-input:focus { box-shadow: 0 0 0 2px var(--primary); }

/* ===== CONTACT ===== */
.contact-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; gap: 3rem; grid-template-columns: 1fr 1fr;
}
.contact-form-card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 16px; padding: 2rem;
}
.contact-form-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-input, .form-textarea {
  width: 100%; padding: 0.625rem 1rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--fg); font-size: 0.875rem; font-family: inherit; outline: none;
}
.form-input:focus, .form-textarea:focus { box-shadow: 0 0 0 2px var(--primary); }
.form-textarea { resize: vertical; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.contact-method { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--primary-10); display: flex;
  align-items: center; justify-content: center;
  color: var(--primary); font-size: 1.25rem; flex-shrink: 0;
}
.contact-method h3 { font-weight: 600; }
.contact-method p { font-size: 0.875rem; color: var(--muted); }
.contact-method .value { font-size: 0.875rem; font-weight: 500; color: var(--primary); margin-top: 0.25rem; }
.contact-cta {
  border: 1px solid var(--border); background: var(--card-50);
  border-radius: 12px; padding: 1.5rem; margin-top: 2rem;
}
.contact-cta h3 { font-weight: 600; margin-bottom: 0.5rem; }
.contact-cta p { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== ABOUT ===== */
.about-story { max-width: 768px; margin: 0 auto; }
.about-story h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; }
.about-story p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.values-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr);
}
.value-card {
  border: 1px solid var(--border); background: var(--card-50);
  border-radius: 12px; padding: 1.5rem;
}
.value-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border-50); padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; }
.footer-col h4 { font-weight: 600; margin-bottom: 1rem; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border-50); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.875rem; color: var(--muted);
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a:hover { color: var(--fg); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== PAGE HERO ===== */
.page-hero { position: relative; padding: 8rem 0 6rem; }
.page-hero .hero-bg { position: absolute; inset: 0; opacity: 0.5; }
.page-hero-content { position: relative; z-index: 10; max-width: 640px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
.page-hero p { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted); }
.section-note { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 3rem; }

/* WordPress Core Compatibility */
.alignleft { float: left; margin: 0.5rem 1rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
.sticky {}
.bypostauthor {}
.gallery-caption {}
