/* GEO FollowAIGC Platform Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: var(--gray-800);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.navbar-brand {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand span { color: var(--primary); }
.navbar-brand .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.navbar-nav a {
  color: var(--gray-600);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all .15s;
  font-size: 14px;
}
.navbar-nav a:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius); font-weight: 500; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover { background: var(--gray-50); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero Section */
.hero {
  padding: 80px 32px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.hero h1 { font-size: 48px; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; letter-spacing: -1px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: var(--gray-500); max-width: 600px; margin: 0 auto 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; }

/* Sections */
.section { padding: 80px 32px; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 32px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.section-title p { color: var(--gray-500); font-size: 16px; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 900px; margin: 0 auto; }

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--gray-200);
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-title { font-size: 18px; font-weight: 600; color: var(--gray-900); }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--gray-900); }
.feature-card p { color: var(--gray-500); font-size: 14px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pricing-card {
  padding: 32px;
  border-radius: 12px;
  border: 2px solid var(--gray-200);
  text-align: center;
  transition: all .2s;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.pricing-card:hover { border-color: var(--primary); }
.pricing-card .plan-name { font-size: 14px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.pricing-card .price { font-size: 36px; font-weight: 700; margin: 16px 0; color: var(--gray-900); }
.pricing-card .price small { font-size: 14px; color: var(--gray-400); font-weight: 400; }
.pricing-card ul { list-style: none; margin-bottom: 24px; }
.pricing-card li { padding: 8px 0; color: var(--gray-600); font-size: 14px; border-bottom: 1px solid var(--gray-100); }
.pricing-card li:last-child { border-bottom: none; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.stat-card .label { color: var(--gray-500); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--gray-900); }
.stat-card .sub { color: var(--gray-400); font-size: 13px; margin-top: 4px; }
.stat-card.primary { border-left: 4px solid var(--primary); }
.stat-card.success { border-left: 4px solid var(--success); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--gray-700); font-size: 14px; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 14px; transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 12px; font-weight: 600; font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--gray-200); }
.table td { padding: 12px; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.table tr:hover td { background: var(--gray-50); }

/* Tags */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-green { background: #d1fae5; color: #065f46; }
.tag-yellow { background: #fef3c7; color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }

/* Auth */
.auth-wrapper { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--gray-50); }
.auth-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 40px; width: 100%; max-width: 420px; border: 1px solid var(--gray-200); }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; text-align: center; }
.auth-card .subtitle { color: var(--gray-500); text-align: center; margin-bottom: 32px; }
.auth-card .btn { width: 100%; justify-content: center; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--gray-500); font-size: 14px; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--gray-400); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

/* Toast */
.toast {
  position: fixed; top: 80px; right: 24px; background: var(--gray-900); color: #fff;
  padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: 14px; z-index: 1000; animation: slideIn .3s;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Result snippet */
.result-snippet {
  background: var(--gray-100); border-radius: 6px; padding: 12px; font-size: 13px;
  color: var(--gray-600); border-left: 3px solid var(--primary); margin-top: 8px;
}
.result-snippet.mentioned { border-left-color: var(--success); background: #f0fdf4; }

/* Progress */
.progress { height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width .3s; }

/* Dashboard Layout */
.dashboard-grid { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.sidebar {
  background: #fff;
  border-right: 1px solid var(--gray-200);
  padding: 24px;
}
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  color: var(--gray-600); font-size: 14px; font-weight: 500;
  transition: all .15s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--gray-100); color: var(--primary); text-decoration: none;
}
.main-content { padding: 32px; background: var(--gray-50); }

/* Footer */
.footer {
  background: var(--gray-900); color: var(--gray-400);
  padding: 48px 32px; text-align: center;
}
.footer a { color: var(--gray-300); }
.footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 40px 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
