/* ==========================================================================
   SEOTOOLSFIX - Global Stylesheet
   Theme: Green (#22c55e / #16a34a)
   Author: GPT-5 Rebuild
   ========================================================================== */

/* Root Variables */
:root {
  --primary: #22c55e;
  --secondary: #16a34a;
  --light: #f9fafb;
  --dark: #1f2937;
  --text: #374151;
  --muted: #6b7280;
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

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

.btn.ghost:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  color: #fff;
  font-weight: 500;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: #d1f2c0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-actions input {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  opacity: 0.9;
}

.hero-search {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 420px;
  margin: 1.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.hero-search input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-size: 1rem;
}

.hero-search button {
  background: var(--primary);
  color: #fff;
  padding: 0 1.2rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-search button:hover {
  background: var(--secondary);
}

/* Gemini API search suggestions */
.search-suggestions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 6px);
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 200;
}

.search-suggestions li {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: var(--transition);
}

.search-suggestions li:hover {
  background: #f3f4f6;
}

/* ==========================================================================
   Tools Grid
   ========================================================================== */
.tools-section {
  padding: 2rem 0;
}

.category-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.tool-category {
  margin-bottom: 3rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
}

/* ==========================================================================
   Tool Card
   ========================================================================== */
.tool-card {
  background: #fff;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: var(--transition);
  width: 100%;
  max-width: 220px;
  border: 2px solid transparent;
}

.tool-card img {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.6rem;
}

.tool-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.tool-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tool-card a {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition);
}

.tool-card a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Hover lift */
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25);
  transform: translateY(-4px) scale(1.03);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-nav a {
  color: #d1d5db;
  margin: 0 0.6rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   Reveal Animations
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.1rem;
  }
  .tools-grid {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .tool-card {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .hero-search {
    flex-direction: column;
  }
  .hero-search input,
  .hero-search button {
    border-radius: 0;
  }
  .hero-search button {
    border-top: 1px solid #eee;
  }
}

/* ==========================================================================
   Accessibility / Focus
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

button:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}
