/* Clean Light Theme - White background + mobile-first polish */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --text: #1f2937;
  --muted: #667085;
  --border: #e5e7eb;
  --primary: #0f766e;
  --primary-600: #0d9488;
  --primary-50: #ecfeff;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-content {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.25);
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-50);
}

.search-box {
  width: 100%;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  outline: none;
  font-size: 0.88rem;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Main */
.container {
  max-width: 1220px;
  margin: 1.2rem auto 2rem;
  padding: 0 1rem;
}

.hero {
  background: linear-gradient(130deg, #ffffff 0%, #f0fdfa 100%);
  border: 1px solid #dff6f3;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 0.55rem;
  color: #0f172a;
}

.hero p {
  color: var(--muted);
  max-width: 780px;
  font-size: 0.95rem;
}

.section-title {
  margin: 1.5rem 0 0.85rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: #0f172a;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeIn 0.45s ease both;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #cfe9e6;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.category-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.icon-bg-1 { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.icon-bg-2 { background: linear-gradient(135deg, #f97316, #ea580c); }
.icon-bg-3 { background: linear-gradient(135deg, #22c55e, #16a34a); }
.icon-bg-4 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.icon-bg-5 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.icon-bg-6 { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.category-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #0f172a;
}

.tools-list {
  list-style: none;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.tool-item {
  list-style: none;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #334155;
  font-size: 0.85rem;
  border: 1px solid #e9eef5;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  transition: all var(--transition);
}

.tool-link:hover {
  background: #f0fdfa;
  color: var(--primary);
  border-color: #bde7e2;
  transform: translateX(2px);
}

/* Quick access */
.quick-access {
  margin-top: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.quick-title {
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
  color: #0f172a;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #e9eef5;
  border-radius: 10px;
  padding: 0.52rem 0.6rem;
  color: #334155;
  text-decoration: none;
  background: #fff;
  transition: all var(--transition);
}

.quick-item:hover {
  border-color: #bde7e2;
  background: #f0fdfa;
  color: var(--primary);
}

.quick-icon {
  font-size: 0.95rem;
}

.stats-bar {
  text-align: center;
  margin: 1.3rem 0 0.5rem;
  color: #475569;
  font-size: clamp(0.84rem, 1.5vw, 0.95rem);
}

/* Footer */
.footer {
  margin-top: 1.8rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 0.75rem;
}

.footer-content {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.footer-section h3 {
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  color: #0f172a;
}

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

.footer-section ul li {
  margin-bottom: 0.3rem;
}

.footer-section ul li a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
}

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

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  margin-top: 0.9rem;
  padding: 0.7rem;
  color: #64748b;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.7rem;
  }

  .logo {
    justify-self: start;
    width: 100%;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
    max-width: none;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    margin-top: 0.9rem;
  }

  .hero {
    padding: 1rem;
  }

  .tools-list {
    grid-template-columns: 1fr;
  }

  .quick-access {
    padding: 1rem;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0.55rem 0.7rem;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .nav-link {
    font-size: 0.82rem;
    padding: 0.3rem 0.5rem;
  }

  .search-box input {
    padding: 0.55rem 0.75rem;
  }

  .section-title {
    margin-top: 1.1rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
