/* =========================================================
   Alina Flux – Ultra Style Pink Premium v2.4 (Clean SaaS Featured)
   Drop-in replacement for styles.css
   (keeps your existing class names + your clickable-card patch)
   + Featured Latest card (clean premium colors)
   + Better visual hierarchy
   + Arrow buttons (Open →)
   + Fix for "No tool found" (hidden utility)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

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

/* Theme */
:root {
  --bg: #ffffff;
  --bg-soft: #fff6fb;
  --surface: #ffffff;

  --text: #151821;
  --muted: #6b7280;

  --border: rgba(21, 24, 33, 0.08);
  --border-strong: rgba(255, 62, 165, 0.28);

  --pink: #ff3ea5;
  --pink-2: #ff6bc2;
  --pink-soft: rgba(255, 62, 165, 0.12);

  --radius: 20px;

  --shadow-soft: 0 8px 24px rgba(21, 24, 33, 0.06);
  --shadow-pink: 0 18px 45px rgba(255, 62, 165, 0.14);
  --shadow-btn: 0 12px 28px rgba(255, 62, 165, 0.22);
}

/* Page */
html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;

  /* Keep your premium background (unchanged) */
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(255, 62, 165, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--bg-soft) 100%);

  padding: 24px 18px 40px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 22px;
}

.logo {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

/* Generic Card */
.card,
.tool-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* =========================================================
   Premium Featured Latest Tool Card (CLEAN COLORS)
   - No pink fill background (looks more premium)
   - Pink only for badge + button (better contrast)
   ========================================================= */

.latest-section .card {
  position: relative;
  overflow: hidden;

  max-width: 720px;
  margin: 0 auto 26px;
  text-align: center;
  padding: 28px 24px;

  border-radius: 26px;

  /* CLEAN WHITE SURFACE (fix ugly colors) */
  background: #ffffff;

  /* crisp featured ring */
  border: 1.5px solid rgba(255, 62, 165, 0.22);

  /* premium shadow (less pink, more SaaS) */
  box-shadow:
    0 22px 60px rgba(21, 24, 33, 0.10),
    0 8px 20px rgba(21, 24, 33, 0.05);

  transition: transform 0.18s ease,
              box-shadow 0.18s ease,
              border-color 0.18s ease;
}

/* remove pink glow aura (this was causing ugly look) */
.latest-section .card::before {
  display: none;
}

.latest-section .card > * {
  position: relative;
  z-index: 1;
}

/* Latest title */
.latest-section .card h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Featured badge (clean + modern, not flashy) */
.latest-section .card h2::before {
  content: "🔥 ";
}

.latest-section .card h2::after {
  content: "FEATURED";
  margin-left: 10px;
  padding: 4px 9px;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;

  border-radius: 999px;

  background: rgba(255, 62, 165, 0.10);
  color: var(--pink);
  border: 1px solid rgba(255, 62, 165, 0.25);

  box-shadow: none;
}

/* Latest tool text (cleaner) */
#latest-tool {
  font-size: 15px;          /* slightly bigger */
  font-weight: 500;
  color: rgba(21, 24, 33, 0.65);
  margin-bottom: 14px;
}

/* Make tool name stronger */
.latest-name {
  font-weight: 800;
  color: var(--text);
}

/* Make code slightly softer */
.latest-code {
  font-weight: 600;
  color: rgba(21, 24, 33, 0.55);
}

.latest-sep {
  color: rgba(21, 24, 33, 0.35);
}


/* Strong emphasis if JS wraps tool name in <strong> */
#latest-tool strong {
  font-weight: 900;
  color: var(--text);
}

/* Button inside Latest (kept strong CTA) */
.latest-section .btn {
  margin-top: 6px;
  padding: 13px 26px;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(255, 62, 165, 0.28);
}

/* Hover elevate (premium) */
.latest-section .card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 62, 165, 0.40);
  box-shadow:
    0 30px 80px rgba(21, 24, 33, 0.14),
    0 12px 26px rgba(255, 62, 165, 0.12);
}

/* =========================================================
   Tool Cards
   ========================================================= */

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pink);
  border-color: var(--border-strong);
  cursor: pointer;
}

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

.code {
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;

  background: #f5f6f8;
  color: #111827;

  border: 1px solid rgba(21, 24, 33, 0.08);
}

.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink);
  border: 1px solid rgba(255, 62, 165, 0.16);
  white-space: nowrap;
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}

.description {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  text-decoration: none;
  cursor: pointer;

  padding: 12px 22px;
  border-radius: 14px;

  font-weight: 800;
  font-size: 14px;

  border: none;
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
  color: #ffffff;

  box-shadow: var(--shadow-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 62, 165, 0.30);
  filter: saturate(1.05);
}

.btn:hover::after {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(-1px);
}

/* =========================================================
   Search
   ========================================================= */

.search-section {
  margin-bottom: 18px;
}

#searchInput {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(21, 24, 33, 0.10);
  background: rgba(255, 255, 255, 0.98);

  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);

  outline: none;
  box-shadow: 0 10px 24px rgba(21, 24, 33, 0.04);

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#searchInput::placeholder {
  color: rgba(107, 114, 128, 0.75);
}

#searchInput:focus {
  border-color: rgba(255, 62, 165, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 62, 165, 0.14),
              0 16px 34px rgba(255, 62, 165, 0.10);
}

#searchInput.glow-on {
  border-color: rgba(255, 79, 163, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(255, 62, 165, 0.12),
              0 16px 34px rgba(255, 79, 163, 0.12) !important;
}

/* =========================================================
   Footer + Utility
   ========================================================= */

#no-results {
  text-align: center;
  color: var(--muted);
  padding: 14px 0 6px;
}

.footer {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted);
}

.footer a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* Desktop */
@media (min-width: 768px) {
  body {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 20px 50px;
  }

  .logo {
    font-size: 40px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .btn,
  #searchInput {
    transition: none !important;
  }
}

/* =========================================================
   Clickable Card Patch (Preserved)
   ========================================================= */

.tool-card.tool-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}

.tool-card.tool-card-link:visited {
  color: inherit !important;
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tool-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-title {
  margin: 0 0 6px;
}

.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  text-decoration: none;
  padding: 10px 14px;
  border-radius: 14px;

  font-weight: 800;
  font-size: 14px;

  background: linear-gradient(135deg, #ff4fa3, #ff77c8);
  color: #fff;

  box-shadow: 0 10px 20px rgba(255, 79, 163, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cta::after {
  content: "→";
  font-size: 16px;
  transition: transform 0.15s ease;
}

.tool-card:hover .cta {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(255, 79, 163, 0.26);
  filter: saturate(1.05);
}

.tool-card:hover .cta::after {
  transform: translateX(3px);
}

.footer {
  padding-bottom: 40px;
}


/* ===============================
   Privacy Page Improvements
================================ */

.privacy-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.privacy-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(21, 24, 33, 0.08);
  padding: 28px 30px;
  box-shadow: 0 18px 40px rgba(21, 24, 33, 0.06);
}

.privacy-card p {
  margin-bottom: 14px;
  color: rgba(21, 24, 33, 0.80);
  line-height: 1.7;
}

.privacy-title {
  text-align: center;
  margin-bottom: 28px;
  font-size: 34px;
  font-weight: 900;
}

.back-home {
  display: block;
  text-align: center;
  margin-top: 26px;
  font-weight: 700;
  text-decoration: none;
  color: var(--pink);
}

.back-home:hover {
  text-decoration: underline;
}



/* Subtitle with side lines */
.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  position: relative;
}

/* Left & Right Lines */
.subtitle::before,
.subtitle::after {
  content: "";
  flex: 1;
  height: 2px;
  max-width: 120px;
  background: linear-gradient(
    to right,
    transparent,
    var(--pink),
    transparent
  );
  border-radius: 4px;
}
