/* Traffic Guest Post - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --green-600: #16a34a;
  --purple-600: #9333ea;
  --red-600: #dc2626;
  --yellow-400: #facc15;
  --yellow-600: #ca8a04;
  --orange-600: #ea580c;
  --indigo-50: #eef2ff;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --slate-50: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex-col {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.flex-grow {
  flex-grow: 1;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gray-900);
}

.logo svg {
  color: var(--blue-600);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  padding: 0.25rem;
}

.mobile-menu-btn:hover {
  color: var(--gray-900);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem;
  border-top: 1px solid var(--gray-200);
  background: white;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--gray-600);
}

.mobile-menu a:hover {
  color: var(--gray-900);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-actions {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  .header .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-sm {
  height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-md {
  height: 2.75rem;
  padding: 0.5rem 2rem;
  font-size: 1.125rem;
}

.btn-lg {
  height: 3rem;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
}

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

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-outline {
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-900);
}

.btn-outline:hover {
  background: var(--gray-50);
}

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

.btn-white:hover {
  background: var(--gray-100);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  color: var(--gray-900);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: colors 0.2s;
}

.badge-blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 3rem 0 5rem;
  min-height: auto;
  background: linear-gradient(135deg, var(--slate-50), var(--blue-50));
}

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

.hero-badge {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero h1 .highlight {
  display: block;
  color: var(--blue-600);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 48rem;
  margin: 2rem auto 0;
}

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

.hero-stat .number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 0.25rem;
}

.hero-stat .label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 8rem;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

/* ===== SECTION SHARED ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.75rem;
  }
}

/* ===== FEATURES / WHY SECTION ===== */
.features-section {
  background: linear-gradient(135deg, var(--blue-50), var(--indigo-50));
}

.features-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

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

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

.feature-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.feature-icon {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* Icon Colors */
.icon-blue { color: var(--blue-600); }
.icon-green { color: var(--green-600); }
.icon-purple { color: var(--purple-600); }
.icon-red { color: var(--red-600); }
.icon-yellow { color: var(--yellow-600); }
.icon-indigo { color: var(--indigo-600); }
.icon-orange { color: var(--orange-600); }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: white;
}

.steps-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

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

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

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--blue-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: linear-gradient(135deg, var(--slate-50), var(--blue-50));
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

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

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

.testimonial-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 2rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.stars svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--yellow-400);
  fill: currentColor;
}

.testimonial-card blockquote {
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.author-info .name {
  font-weight: 600;
  color: var(--gray-900);
}

.author-info .role {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  background: white;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pricing-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-500);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
}

.pricing-tab.active {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-600);
}

.pricing-tab:hover:not(.active) {
  background: var(--gray-50);
}

/* Filter buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.filter-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-600);
  font-family: inherit;
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--gray-900);
  color: white;
  border-color: var(--gray-900);
}

.filter-btn:hover:not(.active) {
  background: var(--gray-50);
}

/* Sites Table */
.table-wrapper {
  overflow-x: auto;
  margin: 0 -1rem;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .table-wrapper {
    margin: 0;
    padding: 0;
  }
}

.sites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.sites-table thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}

.sites-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s;
}

.sites-table tbody tr:hover {
  background: var(--gray-50);
}

.sites-table tbody td {
  padding: 0.75rem 1rem;
}

.sites-table .site-name {
  font-weight: 600;
}

.sites-table .site-niche {
  color: var(--gray-600);
}

.sites-table .site-traffic {
  font-weight: 500;
}

.sites-table .site-dr {
  font-weight: 700;
}

.sites-table .site-price {
  font-weight: 600;
  color: var(--blue-600);
}

.table-note {
  text-align: center;
  margin-top: 1.5rem;
}

.table-note a {
  color: var(--blue-600);
  font-weight: 600;
}

.table-note a:hover {
  text-decoration: underline;
}

.table-note p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

/* Packages View */
.packages-content {
  display: none;
}

.packages-content.active {
  display: block;
}

.individual-content.active {
  display: block;
}

.individual-content {
  display: none;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: linear-gradient(135deg, var(--slate-50), var(--blue-50));
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 0 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  background: white;
  overflow: hidden;
}

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
  transition: all 0.2s;
}

.faq-trigger:hover {
  text-decoration: underline;
}

.faq-trigger svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--gray-500);
}

.faq-item.open .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ===== TOOLS SECTION ===== */
.tools-section {
  background: white;
}

.tools-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

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

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

.tool-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 2rem;
  overflow: hidden;
}

.tool-icon {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.tool-icon svg {
  width: 2rem;
  height: 2rem;
}

.tool-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.tool-card .partner-link {
  color: var(--blue-600);
  font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(to right, var(--blue-600), var(--indigo-700));
  color: white;
}

.cta-section .container {
  text-align: center;
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.8);
  margin-top: 2rem;
}

.cta-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-features svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
  }
  .cta-features {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .cta-section h2 {
    font-size: 2.75rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 2.5rem 0 4rem;
}

@media (min-width: 768px) {
  .footer {
    padding: 4rem 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--slate-50), var(--blue-50));
}

.legal-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-600);
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--blue-700);
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.legal-content .intro {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.legal-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.legal-section p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  color: var(--gray-600);
  line-height: 1.7;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--blue-600);
}

.legal-section a:hover {
  text-decoration: underline;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--slate-50), var(--blue-50));
  display: flex;
  flex-direction: column;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 2.5rem;
}

.auth-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 0.375rem;
}

.form-group input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-card .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.auth-footer a {
  color: var(--blue-600);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Smooth animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.5s ease-out;
}
