/* public/css/custom.css - Minimal overrides for TailwindCSS */

/* ─── Site logo ──────────────────────────────────────────────────────────── */
.site-logo {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 4px;
}
.dark .site-logo {
  filter: invert(1) hue-rotate(180deg);
}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased}textarea,input[type="text"],input[type="number"]{transition:border-color .15s ease,box-shadow .15s ease}textarea:focus,input[type="text"]:focus,input[type="number"]:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.15)}textarea[readonly]{background-color:#f8fafc;cursor:default}.dark textarea[readonly]{background-color:#1e293b}details>summary{-webkit-user-select:none;user-select:none}details[open]>summary{margin-bottom:0}details>summary span{display:inline-block;transition:transform .2s ease}details[open]>summary span{transform:rotate(180deg)}.tool-card{transition:transform .15s ease,box-shadow .15s ease}.tool-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(0,0,0,.1)}.dark .tool-card:hover{box-shadow:0 10px 25px rgba(0,0,0,.3)}#mobile-menu{max-height:0;overflow:hidden;transition:max-height .3s ease}#mobile-menu.active{max-height:600px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.12);
}

/* ─── Inline code styling ────────────────────────────────────────────────── */
code {
  background-color: #f1f5f9;
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  font-size: 0.875em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* ─── Toast notification ─────────────────────────────────────────────────── */
#ts-toast {
  pointer-events: none;
  opacity: 1;
}

/* ─── Scrollbar (Webkit) — subtle ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── Sticky sidebar ad layout ──────────────────────────────────────────── */
.ad-sidebar-container {
  position: relative;
  width: 320px;
  flex-shrink: 0;
  margin-left: 2rem;
}

.ad-sidebar-sticky {
  position: sticky;
  top: 1.5rem;
  transition: all 0.3s ease;
}

/* Container with sidebar */
.content-with-sidebar {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}

.content-main {
  flex: 1;
  min-width: 0;
  max-width: 1000px;
}

/* AdSense-friendly ad wrappers: clear label + reserved slot space */
.ad-label {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.ad-slot-shell {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.ad-slot-generic {
  min-height: 120px;
}

.ad-slot-banner {
  min-height: 100px;
}

.ad-slot-leaderboard {
  min-height: 90px;
}

.ad-slot-sidebar {
  min-height: 600px;
}

@media (max-width: 767px) {
  .ad-slot-banner {
    min-height: 50px;
  }

  .ad-slot-leaderboard {
    min-height: 50px;
  }
}

/* Responsive: hide sidebar on mobile/tablet */
@media (max-width: 1023px) {
  .ad-sidebar-container {
    display: none !important;
  }
}

/* ─── Print styles ───────────────────────────────────────────────────────── */
@media print {
  header, footer, .ad-slot, .ad-leaderboard, .ad-banner, .ad-sidebar-container, button { display: none !important; }
  body { background: white; }
}
