/*
Theme Name: ToolsSnap
Theme URI: https://toolssnap.shop
Author: ToolsSnap Team
Author URI: https://toolssnap.shop
Description: A high-performance, modern WordPress theme for group buy SEO, AI, Design, and Video tools platform. Includes custom post types for tools catalog, features, pricing plans, and FAQs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: toolssnap
Tags: custom-post-types, custom-menu, custom-logo, featured-images, translation-ready, theme-options
*/

/* CSS Variables & Theme Configuration */
:root {
  --navy: #0f172a;
  /* Footer background */
  --primary: #6366f1;
  /* Indigo */
  --highlight: #34d399;
  /* Mint green */
  --charcoal: #111827;
  /* Dark text */
  --text-muted: #6b7280;
  /* Grey text */
  --white: #ffffff;
  --light-grey: #f8fafc;
  /* Backgrounds */
  --border-color: #e2e8f0;

  /* Fonts */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-muted);
  background-color: var(--white);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--charcoal);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--navy);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.section-heading {
  text-align: center;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-transform: capitalize;
}

/* Navbar */
.navbar {
  background-color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.logo img,
.custom-logo,
.navbar .logo img {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain;
  display: block;
}

.navbar .nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar .nav-menu li a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navbar .nav-menu li a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #4f46e5;
  color: var(--white) !important;
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Cards (Standard) */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 3rem 0 2rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background-color: #e0e7ff;
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
  color: var(--text-muted);
}

/* Features Section */
.features-box {
  background-color: var(--light-grey);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.feature-item {
  text-align: center;
  flex: 1;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  background: var(--white);
  border-color: var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 250px;
  margin: 0 auto;
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  font-weight: 600;
  color: var(--charcoal);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--text-muted);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pricing-card.highlight {
  background: var(--highlight);
  border: none;
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  color: var(--charcoal);
}

.pricing-card.highlight p,
.pricing-card.highlight li,
.pricing-card.highlight .price-amount {
  color: var(--charcoal);
}

.pricing-card.highlight .btn-secondary {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2.5rem;
  padding: 0;
  line-height: 2;
}

.pricing-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tools Grid & Catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.catalog-card {
  background: var(--white);
  padding: 2rem 1.8rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.catalog-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-icon-box {
  transform: scale(1.08);
  background: var(--primary);
  color: var(--white);
}

.catalog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}

.catalog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.tool-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.tool-pill {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
  cursor: default;
}

.tool-pill:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
  transform: translateY(-1px);
}

/* FAQ */
.faq-section {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  padding: 4rem 0;
}

.faq-image {
  flex: 1;
}

.faq-list {
  flex: 2;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-btn:hover {
  background-color: var(--light-grey);
}

.faq-btn.active {
  color: var(--primary);
  border-bottom-color: transparent;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-grey);
  color: var(--primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

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

.faq-answer {
  display: none;
  padding: 0 1rem 1.5rem 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.faq-btn.active + .faq-answer,
.faq-answer.show {
  display: block;
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: #94a3b8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer a {
  color: #94a3b8;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .pricing-card.highlight {
    transform: scale(1);
  }

  .faq-section {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 0;
  }

  .hero-badge {
    margin: 0 auto 1.5rem auto;
  }

  .features-box {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Inner Pages Design System
   ========================================================================== */

.page-hero-banner {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 1.1rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.breadcrumb-nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.page-title-pro {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.page-lead-pro {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.stat-tile {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.08);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Policy & Legal Card */
.policy-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.policy-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.policy-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.policy-number-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.policy-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

/* Callout Box */
.callout-box {
  background: rgba(99, 102, 241, 0.04);
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
}

.callout-box.green {
  background: rgba(52, 211, 153, 0.08);
  border-left-color: #059669;
}

.callout-box.amber {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #d97706;
}

/* Pulse Badge */
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.15);
  color: #047857;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Comparison Box */
.comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.comparison-card {
  padding: 2rem;
  border-radius: 20px;
}

.comparison-card.retail {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.comparison-card.toolssnap {
  background: #f0fdf4;
  border: 2px solid #86efac;
  position: relative;
}

@media (max-width: 768px) {
  .comparison-box {
    grid-template-columns: 1fr;
  }
  .page-title-pro {
    font-size: 2.1rem;
  }
}
