/* ─── CAIOz New-Morphic Base ───────────────────────────────────────── */
body {
  background: #0f172a;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  margin: 0;
}
.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}

/* Logo */
.logo-container {
  text-align: center;
  margin-bottom: 24px;
}
.logo-container img {
  max-width: 160px;
  height: auto;
}

/* Header */
header {
  text-align: center;
  padding: 20px 0;
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
}
header p {
  margin: 8px 0 0;
  color: #cbd5e1;
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
  border-radius: 12px;
  max-width: 800px;
  margin: 20px auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.promo-text {
  color: #fff;
  text-align: center;
  font-size: 1rem;
}
.promo-cta a {
  background: #facc15;
  color: #1f2937;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 30px auto;
}
.controls select,
.controls input,
.controls button {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.controls input {
  flex: 1 1 200px;
}
.controls button {
  cursor: pointer;
}

/* Grid & List Views */
#toolContainer.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 20px;
}
#toolContainer.list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card Base */
a.card {
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
a.card:hover {
  transform: translateY(-4px);
}
.card-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #ffffff;
}
.card p {
  flex: 1;
  color: #cbd5e1;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.badge {
  background: #3b82f6;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* Inline Like + View Details */
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 8px;
}
.thumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 1rem;
}
.thumb-count {
  font-size: 0.9rem;
  color: #facc15;
}
.view-details-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  background: #facc15;
  color: #1f2937;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
}

/* Sections (Detail Pages) */
.section {
  background: #1e293b;
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.6);
}
.section h2 {
  margin-top: 0;
  color: #f0f9ff;
  font-size: 1.5rem;
}
.section p {
  line-height: 1.6;
}
ul { padding-left: 24px; margin: 0; }
li { margin-bottom: 8px; line-height: 1.6; }

/* Footer */
footer {
  text-align: center;
  margin: 40px auto;
  color: #cbd5e1;
  font-size: 0.9rem;
}
footer a {
  color: inherit;
  text-decoration: none;
}

/* 🔥 Glow on Hover (Desktop) */
a.card:hover,
.view-details-btn:hover,
.section:hover {
  box-shadow: 0 0 12px 4px rgba(255,85,0,0.6),
              0 0 24px 6px rgba(255,136,0,0.4);
  transition: box-shadow 0.3s ease-in-out;
}

/* 🌐 Simulated Glow on Touch (Mobile) */
@media (hover: none) {
  a.card:active,
  .view-details-btn:active {
    box-shadow: 0 0 8px 2px rgba(255,85,0,0.5),
                0 0 16px 4px rgba(255,136,0,0.3);
  }
}
