/* ═══════════════════════════════════════════════════════════════════
   ProDigitalTools.com — Main Stylesheet
   Theme: Dark Navy | Electric Cyan | Syne + DM Sans
═══════════════════════════════════════════════════════════════════ */

/* CSS Variables */
:root {
  --bg-primary:    #0A0E1A;
  --bg-secondary:  #111827;
  --bg-card:       #141D2E;
  --bg-card-hover: #1A2540;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(0, 212, 255, 0.3);

  --accent:        #00D4FF;
  --accent-dark:   #0099CC;
  --accent-glow:   rgba(0, 212, 255, 0.15);

  --text-primary:  #F0F4FF;
  --text-secondary:#8B9DC3;
  --text-muted:    #4A5568;

  --cat-pdf:       #FF6B6B;
  --cat-convert:   #4ECDC4;
  --cat-calc:      #45B7D1;
  --cat-ai:        #A855F7;
  --cat-seo:       #F59E0B;

  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-card:   0 4px 24px rgba(0,0,0,0.35);
  --shadow-glow:   0 0 30px rgba(0,212,255,0.12);
  --transition:    all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* Container */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════ AD BANNERS ═══════════════════ */
.ad-banner {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 8px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-footer { border-top: 1px solid var(--border); border-bottom: none; margin-top: 0; }

/* ═══════════════════ NAVBAR ═══════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px var(--accent));
}
.logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.logo-text strong {
  color: var(--accent);
  font-weight: 800;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.navbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  min-width: 180px;
}
.search-trigger:hover { border-color: var(--accent); color: var(--text-secondary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════ SEARCH MODAL ═══════════════════ */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-modal.active { display: flex; }
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.search-modal__box {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.search-modal__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.search-modal__input-wrap svg { color: var(--text-muted); flex-shrink: 0; }
.search-modal__input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
}
.search-modal__input-wrap input::placeholder { color: var(--text-muted); }
#closeSearch {
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
#closeSearch:hover { background: var(--bg-card); color: var(--text-primary); }
.search-results { max-height: 360px; overflow-y: auto; padding: 8px; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.search-result-item:hover { background: var(--bg-card); }
.search-result-item .icon { font-size: 18px; width: 32px; text-align: center; }
.search-result-item .info { display: flex; flex-direction: column; }
.search-result-item .info .name { font-size: 14px; font-weight: 500; }
.search-result-item .info .cat { font-size: 12px; color: var(--text-muted); }
.search-empty { padding: 32px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero__title .highlight {
  background: linear-gradient(135deg, var(--accent), #7B61FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.hero__search {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 540px;
  margin: 0 auto 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}
.hero__search:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.hero__search svg {
  margin-left: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.hero__search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 16px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-primary);
}
.hero__search input::placeholder { color: var(--text-muted); }
.hero__search-btn {
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 24px;
  margin: 4px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  white-space: nowrap;
}
.hero__search-btn:hover { background: #33DDFF; transform: scale(1.02); }

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__stat { text-align: center; }
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.hero__stat span { font-size: 13px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ═══════════════════ CATEGORY CARDS ═══════════════════ */
.section { padding: 60px 0; }
.section--alt { background: var(--bg-secondary); }
.section__header { margin-bottom: 40px; }
.section__label {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section__desc { color: var(--text-secondary); margin-top: 8px; font-size: 15px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.cat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cat-color);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px var(--cat-color);
}
.cat-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}
.cat-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cat-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.cat-card__count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cat-color);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ═══════════════════ TOOL CARDS GRID ═══════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}
.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.tool-card__icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-card__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.hot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 2px 6px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ═══════════════════ INLINE AD ═══════════════════ */
.ad-inline {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

/* ═══════════════════ FEATURED TOOLS SECTION ═══════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.featured-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--cat-color) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}
.featured-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.featured-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.featured-card__icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-card__meta .name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.featured-card__meta .category {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.featured-card__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.featured-card__action {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════ WHY US ═══════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.why-card__icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 280px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer__social a svg { width: 16px; height: 16px; }
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer__col ul li a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 13px; color: var(--text-muted); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; color: var(--text-muted); }
.footer__links a:hover { color: var(--accent); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .navbar__nav { gap: 2px; }
  .nav-link { padding: 6px 8px; font-size: 12px; }
}

@media (max-width: 768px) {
  .navbar__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }
  .navbar__nav.open { display: flex; }
  .nav-link { padding: 10px 16px; font-size: 14px; border-radius: var(--radius-sm); }
  .hamburger { display: flex; }
  .search-trigger { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero__stats { gap: 16px; }
  .stat-divider { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .categories-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero__title { letter-spacing: -1px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { justify-content: center; }
}

/* ═══════════════════ ANIMATIONS ═══════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ═══════════════════ UTILITY ═══════════════════ */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.fw-bold     { font-weight: 700; font-family: var(--font-display); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 24px;
  padding: 10px 20px;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.view-all:hover { background: var(--accent-glow); }
