/* ==========================================================================
   EdCatalyst — Notes Page Styles
   (Layers on top of styles/main.css — shared variables/navbar/footer live there)
   ========================================================================== */

/* ---------------- Hero ---------------- */
.notes-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf2 0%, #ffe9d3 100%);
}

.notes-hero .blob-1 {
  width: 320px;
  height: 320px;
  background: var(--ec-gradient-1);
  top: -110px;
  right: -90px;
}

.notes-hero .blob-2 {
  width: 260px;
  height: 260px;
  background: var(--ec-gradient-3);
  bottom: -90px;
  left: -70px;
}

.notes-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0.8rem 0 0.5rem;
}

.notes-hero-sub {
  color: var(--ec-ink-soft);
  font-size: 1.02rem;
  margin: 0;
}

/* ---------------- Search ---------------- */
.notes-search-wrap {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.notes-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ec-ink-soft);
  font-size: 0.95rem;
}

.notes-search-input {
  width: 100%;
  border: 2px solid #f0e2d3;
  border-radius: 30px;
  padding: 0.7rem 1.2rem 0.7rem 2.7rem;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.notes-search-input:focus {
  outline: none;
  border-color: var(--ec-terracotta);
  box-shadow: 0 0 0 4px rgba(168, 60, 12, 0.1);
}

.notes-result-empty {
  color: var(--ec-ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}

/* ---------------- Topic cards ---------------- */
.topic-card {
  background: var(--ec-card-bg);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--ec-shadow-soft);
  border: 1px solid rgba(168, 60, 12, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.topic-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ec-shadow-strong);
}

.topic-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  background: var(--ec-gradient-1);
  transition: transform 0.3s ease;
}

.topic-card.tool-accent-2 .topic-icon { background: var(--ec-gradient-2); }
.topic-card.tool-accent-3 .topic-icon { background: var(--ec-gradient-3); }
.topic-card.tool-accent-4 .topic-icon { background: var(--ec-gradient-4); }

.topic-card:hover .topic-icon {
  transform: scale(1.1) rotate(-6deg);
}

.topic-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ec-ink);
  margin-bottom: 0.6rem;
}

.topic-desc {
  color: var(--ec-ink-soft);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1.3rem;
}

.topic-card .btn-tool {
  background: var(--ec-gradient-1);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 12px;
  padding: 0.6rem 1.3rem;
  border: none;
  align-self: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-card.tool-accent-2 .btn-tool { background: var(--ec-gradient-2); }
.topic-card.tool-accent-3 .btn-tool { background: var(--ec-gradient-3); }
.topic-card.tool-accent-4 .btn-tool { background: var(--ec-gradient-4); }

.topic-card .btn-tool:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ec-shadow-soft);
}

/* Hide non-matching cards during search (JS toggles this) */
.topic-card-wrap.search-hidden {
  display: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .notes-hero-title {
    font-size: 1.9rem;
  }
  .notes-search-wrap {
    max-width: 100%;
  }
}
