/* ==========================================
   ZeeSharp – Main Stylesheet
   ========================================== */

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

:root {
  --blue: #1a73e8;
  --blue-dark: #1558b0;
  --blue-light: #e8f0fe;
  --text: #202124;
  --text-secondary: #5f6368;
  --border: #dadce0;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --shadow-sm: 0 1px 3px rgba(60,64,67,.15), 0 1px 2px rgba(60,64,67,.06);
  --shadow-md: 0 2px 6px rgba(60,64,67,.2), 0 1px 4px rgba(60,64,67,.1);
  --shadow-lg: 0 8px 24px rgba(60,64,67,.2);
  --radius: 8px;
  --radius-lg: 24px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ==========================================
   NAV
   ========================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.nav-logo span.brand-dot { color: var(--blue); }

/* Dropdown */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav-dropdown-btn:hover {
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.nav-dropdown-btn .chevron {
  transition: transform var(--transition);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.nav-dropdown-wrap.open .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.nav-dropdown-wrap.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu .menu-section {
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-menu .menu-section:last-child { border-bottom: none; }
.nav-dropdown-menu .menu-label {
  padding: 6px 16px 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.875rem;
  color: var(--text);
  transition: background var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); }
.nav-dropdown-menu a .menu-icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: 20px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }

.btn-primary {
  padding: 9px 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 72px 24px 48px;
  text-align: center;
}

.hero-wordmark {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}
.hero-wordmark .c1 { color: #4285F4; }
.hero-wordmark .c2 { color: #EA4335; }
.hero-wordmark .c3 { color: #FBBC05; }
.hero-wordmark .c4 { color: #4285F4; }
.hero-wordmark .c5 { color: #34A853; }
.hero-wordmark .c6 { color: #EA4335; }
.hero-wordmark .c7 { color: #FBBC05; }
.hero-wordmark .c8 { color: #4285F4; }

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* Search Bar */
.search-wrap {
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.search-bar:hover,
.search-bar:focus-within {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.search-icon {
  color: var(--text-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  font-family: inherit;
}
.search-input::placeholder { color: #9aa0a6; }

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 50%;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--blue-light); }

.search-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.search-action-btn {
  padding: 9px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.search-action-btn:hover {
  box-shadow: var(--shadow-sm);
  border-color: #c6c6c6;
}

/* ==========================================
   TOOLS SECTION
   ========================================== */

.tools-section {
  padding: 48px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.view-all-link {
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 500;
  transition: color var(--transition);
}
.view-all-link:hover { color: var(--blue-dark); }

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.tab-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #c0d3f8;
  transform: translateY(-2px);
}
.tool-card:hover::before { transform: scaleX(1); }

.tool-card.coming-soon { opacity: 0.6; cursor: default; }
.tool-card.coming-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }
.tool-card.coming-soon:hover::before { transform: scaleX(0); }

.tool-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
  transition: background var(--transition);
}
.tool-card:hover .tool-icon-wrap { background: #d2e3fc; }

.tool-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.tool-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tool-badge {
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-new { background: #e6f4ea; color: #137333; }
.badge-soon { background: #fce8e6; color: #c5221f; }
.badge-hot { background: #fef3e2; color: #b06000; }
.badge-sub { background: var(--blue-light); color: var(--blue); }

/* ==========================================
   SUBDOMAIN BANNER
   ========================================== */

.subdomain-section {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.subdomain-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.subdomain-section p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.subdomain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.subdomain-chip {
  padding: 8px 18px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  font-size: 0.875rem;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}
.subdomain-chip:hover { background: rgba(255,255,255,0.25); border-color: #fff; }

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand .footer-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--blue); }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .navbar { padding: 0 16px; }
  .nav-link { display: none; }
  .hero { padding: 48px 16px 32px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Skeleton pulse */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ==========================================
   SEARCH SUGGESTIONS DROPDOWN
   ========================================== */

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 100;
}

.search-container { position: relative; width: 100%; max-width: 600px; }

.search-suggestions.visible { display: block; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 0.9rem;
  color: var(--text);
}
.suggestion-item:hover { background: var(--bg-alt); }
.suggestion-item .sug-icon { color: var(--text-secondary); font-size: 0.85rem; }

/* ==========================================
   SCROLL TO TOP
   ========================================== */

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 200;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--blue-dark); }


/* ==========================================
   POPULAR TOOLS SECTION (below hero)
   ========================================== */

.popular-section {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 44px;
}

.popular-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.popular-fire { font-size: 1rem; line-height: 1; }
.popular-sub  { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--border); }

/* Grid */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 920px) { .popular-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 660px) { .popular-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px) { .popular-grid { grid-template-columns: repeat(2, 1fr); } }

/* Card */
.pop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: box-shadow .18s, border-color .18s, transform .18s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.pop-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26,115,232,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .18s;
}
.pop-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 22px rgba(26,115,232,.14);
  transform: translateY(-3px);
}
.pop-card:hover::after { opacity: 1; }

/* Rank badge */
.pop-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.pop-r1 { background: #fff3cd; color: #856404; }
.pop-r2 { background: #e9ecef; color: #495057; }
.pop-r3 { background: #fde8d8; color: #7c3d12; }
.pop-rn { background: var(--bg-alt); color: var(--text-secondary); }

/* Icon */
.pop-icon {
  font-size: 2.1rem;
  margin-bottom: 8px;
  line-height: 1;
  transition: transform .18s;
  position: relative;
  z-index: 1;
}
.pop-card:hover .pop-icon { transform: scale(1.14); }

/* Name */
.pop-name {
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

/* Category chip */
.pop-cat {
  font-size: .63rem;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* Usage bar */
.pop-bar-wrap {
  width: 80%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.pop-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
}

/* Skeleton loader */
.pop-skeleton {
  height: 130px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: pop-shimmer 1.4s ease infinite;
  border-color: transparent !important;
  pointer-events: none;
  cursor: default;
}
@keyframes pop-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* View-more link */
.popular-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  padding: 7px 18px;
  border: 1.5px solid var(--blue-light);
  border-radius: 20px;
  background: var(--blue-light);
  transition: all .15s;
}
.popular-more:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
