/* AITechStackReview — Global Styles */
/* Design System: Bright Modern SaaS */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F4F6F9;
  --accent-blue: #2563EB;
  --accent-purple: #7C3AED;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --success: #10B981;
  --danger: #EF4444;
  --border: #E5E7EB;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --content-width: 800px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-purple); }

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

/* ===== NAVIGATION ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
}
.navbar-logo span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.navbar-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--accent-blue); }

/* Dropdown */
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 200;
  list-style: none;
}
.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.dropdown-menu a:hover {
  background: var(--bg-secondary);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--accent-blue);
  color: white;
}
.btn-primary:hover {
  background: #1d4ed8;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.btn-large {
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
}
.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}
.btn-outline:hover {
  background: var(--accent-blue);
  color: white;
}
.btn-gradient {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
}
.btn-gradient:hover {
  opacity: 0.9;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.content-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--bg-secondary);
}

/* ===== HERO ===== */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero-gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2rem;
}
.hero-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Star Ratings */
.stars {
  color: #FBBF24;
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.stars-large {
  font-size: 1.5rem;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-blue {
  background: rgba(37,99,235,0.1);
  color: var(--accent-blue);
}
.badge-purple {
  background: rgba(124,58,237,0.1);
  color: var(--accent-purple);
}
.badge-green {
  background: rgba(16,185,129,0.1);
  color: var(--success);
}

/* ===== CARDS ===== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Tool Card (legacy) */
.tool-card {
  text-align: center;
  padding: 2rem 1.5rem;
}
.tool-card-logo {
  width: 64px;
  height: 64px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
}
.tool-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.tool-card .stars {
  margin-bottom: 0.75rem;
  display: block;
}
.tool-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Featured Tools Tile Grid */
.featured-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .featured-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .featured-tools-grid {
    grid-template-columns: 1fr;
  }
}
.ft-tile {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ft-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.ft-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.ft-tile-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.ft-tile-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.badge-editors-choice {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-blue);
}
.badge-marketing {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
}
.badge-voice {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.badge-free {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
}
.ft-tile-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
}
.ft-tile-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.ft-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 1px;
}
.ft-rating-num {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ft-tile-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.5rem;
}
.ft-tile-btn {
  margin-top: auto;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* ===== DISCLOSURE ===== */
.disclosure {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: #92400E;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== VERDICT BOX ===== */
.verdict-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.verdict-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}
.verdict-box dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem;
}
.verdict-box dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.verdict-box dd {
  font-size: 0.95rem;
}

/* ===== RATING TABLE ===== */
.rating-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.rating-table th,
.rating-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.rating-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rating-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--accent-blue);
}

/* ===== PROS / CONS ===== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pros-card, .cons-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.pros-card h3 { color: var(--success); margin-top: 0; }
.cons-card h3 { color: var(--danger); margin-top: 0; }
.pros-card ul, .cons-card ul {
  list-style: none;
  padding: 0;
}
.pros-card li, .cons-card li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}
.pros-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.cons-card li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
}
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--danger); font-weight: 700; }

/* ===== PRICING CARDS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), var(--shadow-lg);
}
.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  margin: 0.75rem 0;
}
.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  text-align: left;
}
.pricing-card li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ===== CTA SECTION ===== */
.cta-box {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
  color: white;
}
.cta-box h2 {
  color: white;
  margin-top: 0;
  font-size: 1.5rem;
}
.cta-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.cta-box .btn {
  background: white;
  color: var(--accent-blue);
  font-weight: 700;
}
.cta-box .btn:hover {
  background: #F0F4FF;
  color: var(--accent-blue);
}

/* ===== AUTHOR BIO ===== */
.author-bio {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 3rem;
  border: 1px solid var(--border);
}
.author-bio h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.author-bio p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}
.footer a:hover { color: white; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== FAQ SCHEMA SECTION ===== */
.faq-section { margin: 2rem 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.faq-item p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== CATEGORY HUBS ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s;
}
.category-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--text-dark);
}
.category-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.category-card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}
.category-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== REVIEW ARTICLE ===== */
.review-article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.review-article h2 {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.review-article ul, .review-article ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.review-article li {
  margin-bottom: 0.4rem;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}
.blog-tile {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-tile:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.blog-tile-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-tile-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  width: fit-content;
}
.blog-tile-badge.cat-tools { background: rgba(37,99,235,0.1); color: var(--accent-blue); }
.blog-tile-badge.cat-writing { background: rgba(124,58,237,0.1); color: var(--accent-purple); }
.blog-tile-badge.cat-voice { background: rgba(16,185,129,0.1); color: var(--success); }
.blog-tile-badge.cat-productivity { background: rgba(245,158,11,0.1); color: #D97706; }
.blog-tile-badge.cat-business { background: rgba(239,68,68,0.1); color: var(--danger); }
.blog-tile-badge.cat-images { background: rgba(6,182,212,0.1); color: #0891B2; }
.blog-tile h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.4;
}
.blog-tile h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-tile h3 a:hover {
  color: var(--accent-blue);
}
.blog-tile-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.blog-tile-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}
.blog-tile .btn {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ===== MOBILE MENU ===== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.25rem; }
  h2 { font-size: 1.4rem; }

  .mobile-toggle { display: block; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .navbar-links.active { display: flex; }
  .navbar-links li { padding: 0.5rem 0; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .dropdown:hover .dropdown-menu { display: block; }

  .pros-cons { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .verdict-box dl { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.5rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
