@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;600;700&display=swap');

:root {
  /* Colors */
  --primary: #000000;
  --secondary: #182230;
  --tertiary: #007bff;
  --neutral: #ffffff;
  --surface: #f8f9fa;
  --on-surface: #000000;
  --error: #dc3545;
  --border: #e5e7eb;
  --accent-lime: #befc4a;
  
  /* Rounded */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;
  
  /* Spacing */
  --s-xs: 2px;
  --s-sm: 10px;
  --s-md: 20px;
  --s-lg: 40px;
  --s-xl: 64px;
  --gutter: 24px;
  --section: 80px;
  
  /* Font */
  --font: 'Roboto', system-ui, sans-serif;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--on-surface);
  background: var(--neutral);
}

/* Typography */
.headline-display {
  font-size: 56px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -1.6px;
  color: var(--primary);
}

.headline-lg {
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.1px;
  color: var(--primary);
}

.headline-md {
  font-size: 28px;
  font-weight: 400;
  line-height: 46px;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.headline-sm {
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: var(--primary);
}

.body-lg {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.body-md {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.body-sm {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.label-lg {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.label-md {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.label-sm {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.02em;
}

.nav-link {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--secondary);
  text-decoration: none;
}

.pill-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.04em;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--neutral);
  border: none;
  border-radius: var(--r-md);
  padding: 12px 24px;
  height: 53px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--secondary);
  border: none;
  border-radius: var(--r-sm);
  padding: 12px 24px;
  height: 53px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-link {
  background: transparent;
  color: var(--secondary);
  border: none;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--primary);
}

/* Card */
.card {
  background: var(--neutral);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--secondary);
}

/* Input */
.input {
  background: var(--neutral);
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  height: 53px;
  font-size: 16px;
  font-family: var(--font);
  width: 100%;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Chip */
.chip {
  background: var(--neutral);
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.chip:hover,
.chip.active {
  background: var(--primary);
  color: var(--neutral);
  border-color: var(--primary);
}

/* Pill */
.pill {
  background: var(--neutral);
  color: var(--on-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-block;
}

.pill.featured {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: var(--primary);
}

.pill.india {
  background: var(--surface);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

/* Navbar */
.navbar {
  background: var(--neutral);
  border-bottom: 1px solid var(--border);
  padding: var(--s-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  gap: var(--s-lg);
  align-items: center;
  list-style: none;
}

.navbar-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: var(--s-xl) 0 var(--s-lg);
}

.hero-title {
  margin-bottom: var(--s-md);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: var(--s-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  display: flex;
  gap: var(--s-sm);
  max-width: 700px;
  margin: 0 auto var(--s-lg);
}

.search-box .input {
  flex: 1;
}

.search-box .btn-primary {
  background: var(--accent-lime);
  color: var(--primary);
}

.search-box .btn-primary:hover {
  background: var(--primary);
  color: var(--neutral);
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--s-sm);
  justify-content: center;
  margin-bottom: var(--s-lg);
}

.tab {
  background: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: var(--primary);
  color: var(--neutral);
  border-color: var(--primary);
}

/* Category chips */
.category-chips {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--s-lg);
}

/* Tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gutter);
  margin-bottom: var(--s-lg);
}

.tool-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: var(--s-md);
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.tool-logo-placeholder {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-lime) 0%, #a0e030 100%);
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-md);
}

.tool-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--s-xs);
  color: var(--primary);
}

.tool-tagline {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: var(--s-md);
  line-height: 21px;
}

.tool-meta {
  display: flex;
  gap: var(--s-xs);
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--s-lg) 0;
  margin-top: var(--section);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-lg);
  margin-bottom: var(--s-lg);
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--s-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--s-sm);
}

.footer-section a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--s-md);
  border-top: 1px solid var(--border);
  color: var(--secondary);
  font-size: 14px;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--gutter);
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: var(--s-md);
}

.blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--s-sm);
  color: var(--primary);
}

.blog-excerpt {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: var(--s-sm);
  line-height: 21px;
}

.blog-meta {
  font-size: 12px;
  color: var(--secondary);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gutter);
  margin-top: var(--s-lg);
}

.pricing-card {
  position: relative;
}

.pricing-card.recommended {
  border: 2px solid var(--accent-lime);
}

.pricing-card.recommended::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-lime);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--s-sm);
}

.pricing-price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--s-md);
  color: var(--primary);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--s-md);
}

.pricing-features li {
  padding: var(--s-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Form */
.form-group {
  margin-bottom: var(--s-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s-sm);
  font-size: 14px;
}

.form-select {
  background: var(--neutral);
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  height: 53px;
  font-size: 16px;
  font-family: var(--font);
  width: 100%;
}

.form-textarea {
  background: var(--neutral);
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font);
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Admin */
.admin-lock {
  text-align: center;
  padding: var(--section) 0;
}

.admin-tabs {
  display: flex;
  gap: var(--s-sm);
  margin-bottom: var(--s-lg);
  border-bottom: 2px solid var(--border);
}

.admin-tab {
  background: transparent;
  border: none;
  padding: var(--s-md) var(--s-lg);
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--accent-lime);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s-lg);
}

.admin-table th {
  text-align: left;
  padding: var(--s-md);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 14px;
}

.admin-table td {
  padding: var(--s-md);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin-table tr:hover {
  background: var(--surface);
}

.admin-actions {
  display: flex;
  gap: var(--s-sm);
}

.btn-small {
  padding: 6px 12px;
  height: auto;
  font-size: 12px;
}

/* Tool detail */
.tool-detail-header {
  display: flex;
  gap: var(--s-lg);
  align-items: start;
  margin-bottom: var(--s-lg);
}

.tool-detail-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: var(--s-md);
}

.tool-detail-info {
  flex: 1;
}

.tool-detail-name {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: var(--s-sm);
}

.tool-detail-tagline {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: var(--s-md);
}

.tool-detail-description {
  font-size: 16px;
  line-height: 28px;
  margin-bottom: var(--s-lg);
  color: var(--secondary);
}

/* Blog post */
.blog-post-header {
  text-align: center;
  margin-bottom: var(--s-lg);
}

.blog-post-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: var(--s-lg);
}

.blog-post-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: var(--s-md);
}

.blog-post-meta {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: var(--s-lg);
}

.blog-post-content {
  font-size: 16px;
  line-height: 28px;
  color: var(--secondary);
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin: var(--s-lg) 0 var(--s-md);
  color: var(--primary);
}

.blog-post-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: var(--s-md) 0 var(--s-sm);
  color: var(--primary);
}

.blog-post-content p {
  margin-bottom: var(--s-md);
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: var(--s-md);
  padding-left: var(--s-lg);
}

.blog-post-content li {
  margin-bottom: var(--s-sm);
}

/* Filters */
.filters {
  display: flex;
  gap: var(--s-md);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--s-lg);
  padding: var(--s-md);
  background: var(--surface);
  border-radius: var(--r-md);
}

.filter-group {
  display: flex;
  gap: var(--s-sm);
  align-items: center;
}

.filter-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary);
}

/* Alert */
.alert {
  padding: var(--s-md);
  border-radius: var(--r-md);
  margin-bottom: var(--s-md);
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Utility */
.text-center {
  text-align: center;
}

.mb-sm {
  margin-bottom: var(--s-sm);
}

.mb-md {
  margin-bottom: var(--s-md);
}

.mb-lg {
  margin-bottom: var(--s-lg);
}

.mt-lg {
  margin-top: var(--s-lg);
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.gap-sm {
  gap: var(--s-sm);
}

.gap-md {
  gap: var(--s-md);
}

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

.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .headline-display {
    font-size: 36px;
    line-height: 40px;
  }
  
  .navbar-nav {
    gap: var(--s-md);
  }
  
  .tool-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .tool-detail-header {
    flex-direction: column;
  }
  
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
}


/* Newsletter Section */
.newsletter-section {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  margin-bottom: var(--s-lg);
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: var(--s-sm);
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form .input {
  flex: 1;
  min-width: 250px;
}

.newsletter-form .btn-primary {
  background: var(--accent-lime);
  color: var(--primary);
  border: none;
  white-space: nowrap;
}

.newsletter-form .btn-primary:hover {
  background: var(--primary);
  color: var(--neutral);
}

.newsletter-message {
  margin-top: var(--s-md);
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--r-sm);
  font-size: 14px;
}

.newsletter-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.newsletter-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.newsletter-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Quill Editor Overrides */
#quillEditor {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

#quillEditor .ql-toolbar {
  border-top-left-radius: var(--r-md);
  border-top-right-radius: var(--r-md);
  background: var(--surface);
}

#quillEditor .ql-container {
  border-bottom-left-radius: var(--r-md);
  border-bottom-right-radius: var(--r-md);
  font-family: var(--font);
  font-size: 16px;
}

/* Blog post content - support Quill HTML */
.blog-post-content h2,
.blog-post-content .ql-size-large {
  font-size: 28px;
  font-weight: 600;
  margin: var(--s-lg) 0 var(--s-md);
  color: var(--primary);
}

.blog-post-content h3,
.blog-post-content .ql-size-medium {
  font-size: 20px;
  font-weight: 600;
  margin: var(--s-md) 0 var(--s-sm);
  color: var(--primary);
}

.blog-post-content strong {
  font-weight: 600;
}

.blog-post-content em {
  font-style: italic;
}

.blog-post-content a {
  color: var(--tertiary);
  text-decoration: underline;
}

.blog-post-content a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .newsletter-section {
    padding: var(--s-md);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .input {
    min-width: 100%;
  }
}
