/* =========================================================
   Universal Tool Styles – PromptPilot (Updated 2025‑06‑28)
   Fixes: overlapping buttons on mobile, improved spacing
   Author: PromptPilot
   ========================================================= */

/* ---------- CSS Reset (minimal) ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Root Variables ---------- */
:root {
  --primary: #0d6efd;
  --primary-dark: #084298;
  --secondary: #6c757d;
  --bg: #0f172a;          /* dark navy */
  --bg-light: #1e293b;
  --text: #f8fafc;
  --radius: 0.5rem;
  --transition: all 0.2s ease-in-out;
  --button-gap: 0.75rem;  /* consistent spacing */
}

/* ---------- Global Styles ---------- */
body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: #000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #A9A9A9;
}

/* ---------- Button Styles ---------- */
.button,
.tool-button {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--transition);
}

.button:hover,
.tool-button:hover {
  background: var(--primary-dark);
}

/* Locked tools (visual cue) */
.locked {
  position: relative;
}

.locked::before {
  content: "\1F512";  /* 🔒 */
  position: absolute;
  left: 0.5rem;
}

.pro-badge {
  background: #ffc107;
  color: #0f172a;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* ---------- Layout Containers ---------- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

.button-container {
  display: flex;
  flex-wrap: wrap;         /* KEY: allow wrapping on small screens */
  justify-content: center;
  gap: var(--button-gap);  /* uniform spacing */
  padding: 1.25rem;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 767px) {
  .button,
  .tool-button {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    min-width: 120px;      /* makes wrapping predictable */
  }
}

@media (max-width: 480px) {
  .button,
  .tool-button {
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}

/* ---------- Dark‑Light Themes (optional) ---------- */
body.light {
  --bg: #ffffff;
  --bg-light: #f1f5f9;
  --text: #0f172a;
}

body.pride {
  /* Pride theme example */
  --primary: #e1306c;
  --primary-dark: #c01f55;
  background: linear-gradient(135deg, #ff0000 0%, #ff7f00 16%, #ffff00 32%, #00ff00 48%, #0000ff 64%, #4b0082 80%, #8b00ff 100%);
}

/* ---------- End of universal_tool.css ---------- */
