/*
Theme Name: MissTricker Tools Theme
Author: Miss Tricker
Description: Pink • White • Cyan Tools Theme (Full Homepage Conversion)
Version: 1.0
*/

:root {
  --pink: #ff4f9a;
  --pink-soft: #ffe3f0;
  --cyan: #3ed6ff;
  --cyan-soft: #d5f5ff;
  --bg: #fdfbff;
  --card-bg: #ffffff;
  --text-main: #1b1230;
  --text-muted: #7a7394;
  --border-subtle: #f0e7ff;
  --shadow-soft: 0 12px 30px rgba(27, 18, 48, 0.08);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #ffe6f5 0, #fdfbff 45%, #e2fbff 100%);
  color: var(--text-main);
  min-height: 100vh;
}

.app-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-tag {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 79, 154, 0.08);
  border: 1px solid rgba(255, 79, 154, 0.18);
  font-size: 0.75rem;
  color: var(--pink);
}

.primary-btn {
  border-radius: var(--radius-pill);
  border: none;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 79, 154, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 79, 154, 0.45);
}

.primary-btn span.icon {
  font-size: 1.1rem;
}

/* LAYOUT */
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: flex-start;
}

/* HERO / SEARCH */
.hero-card {
  background: linear-gradient(135deg, #ffffffee, #fff7ff);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 100%;
  background: radial-gradient(circle, rgba(62, 214, 255, 0.28), transparent 65%);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 68%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(213, 245, 255, 0.8);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: #0c7b9a;
  margin-bottom: 0.45rem;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
}

.hero-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.hero-badge {
  align-self: flex-start;
  background: rgba(255, 79, 154, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.9rem;
  border: 1px dashed rgba(255, 79, 154, 0.45);
  font-size: 0.78rem;
  color: var(--pink);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-badge span.label {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.08em;
}

.hero-badge span.value {
  font-weight: 600;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.search-input-wrap {
  flex: 1 1 auto;
  background: #fff;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  gap: 0.45rem;
  box-shadow: 0 6px 16px rgba(216, 186, 255, 0.25);
}

.search-icon {
  font-size: 1rem;
  opacity: 0.6;
}

.search-input-wrap input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.85rem;
  background: transparent;
  color: var(--text-main);
}

.search-input-wrap input::placeholder {
  color: #b4a9d1;
}

.chip {
  font-size: 0.7rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(122, 115, 148, 0.35);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

/* TOOLS LIST */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.section-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.section-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tool-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(240, 231, 255, 0.9);
  box-shadow: 0 6px 18px rgba(184, 150, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(184, 150, 255, 0.25);
  border-color: rgba(255, 79, 154, 0.6);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.1rem;
}

.tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--pink-soft), var(--cyan-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.tool-title-group {
  flex: 1;
}

.tool-title-group h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.tool-title-group span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tool-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 79, 154, 0.08);
  color: var(--pink);
  white-space: nowrap;
}

.tool-body {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tool-footer span.left {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
}

.tool-footer a {
  text-decoration: none;
  color: var(--pink);
  font-weight: 500;
  font-size: 0.7rem;
}

/* SIDEBAR */
.sidebar-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-xl);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(244, 233, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.category-pill {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  border: 1px solid rgba(122, 115, 148, 0.18);
  background: #faf6ff;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.category-pill.active,
.category-pill:hover {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  border-color: transparent;
  color: #fff;
}

.sidebar-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.sidebar-highlight {
  border-radius: var(--radius-lg);
  padding: 0.7rem 0.8rem;
  background: linear-gradient(135deg, rgba(255, 79, 154, 0.08), rgba(62, 214, 255, 0.18));
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.sidebar-highlight strong {
  font-size: 0.78rem;
}

.mini-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.8);
  color: var(--pink);
  white-space: nowrap;
}

/* FOOTER */
.footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    padding: 1.25rem 1.1rem 1.1rem;
  }

  .hero-top {
    flex-direction: column;
  }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-btn {
    width: 100%;
    justify-content: center;
  }
}
