/* ═══════════════════════════════════════════════════════
   Notes++ — Styles
   A Quotes Micro-CMS by Greyvalley Studios
   ═══════════════════════════════════════════════════════ */


/* ─── Variables ─── */

:root {
  --purple-deep: #2a2040;
  --purple-mid: #8b7bb5;
  --purple-light: #b8a9d4;
  --purple-pale: #e8e0f0;
  --purple-bg: #f8f6fa;
  --lavender: #d4c4e8;

  --text-dark: #2d2a33;
  --text-mid: #5a5660;
  --text-light: #8a8690;
  --text-white: #f0eef4;

  --divider: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 8px rgba(42, 32, 64, 0.08);
  --shadow-md: 0 4px 16px rgba(42, 32, 64, 0.12);
  --radius: 16px;
  --transition: 0.2s ease;
  --max-width: 840px;

  --deco-color: #a7b2e6;
}


/* ─── Reset & Base ─── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--purple-bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}


/* ─── Demo Banner ─── */

.demo-banner {
  background: var(--purple-deep);
  color: var(--text-white);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
}


/* ─── Header ─── */

.site-header {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--lavender) 50%, var(--purple-pale) 100%);
  padding: 28px 20px 24px;
  text-align: center;
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: inline-block;
  line-height: 1;
}

.logo-img {
  max-width: 250px;
  width: 100%;
  height: auto;
}


/* ─── Filter Bar ─── */

.filter-bar {
  padding: 20px 16px 4px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.filter-wrapper {
  display: flex;
  justify-content: center;
}

.category-select {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background-color: #fff;
  border: 1.5px solid var(--purple-light);
  border-radius: 24px;
  padding: 10px 40px 10px 20px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b7bb5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.category-select:focus {
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(139, 123, 181, 0.15);
}


/* ─── Cards Container ─── */

.cards-container {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px 24px;
  width: 100%;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}


/* ─── Quote Card ─── */

.quote-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.quote-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-capture {
  position: relative;
  padding: 28px 24px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.card-body {
  position: relative;
  z-index: 2;
  text-align: center;
}

.quote-text {
  font-family: 'Englebert', sans-serif;
  font-size: 24px;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: 16px;
  font-weight: 400;
}

.quote-author {
  font-family: 'Quicksand', 'Inter', sans-serif;
  font-size: 18px;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 20px;
}

.quote-divider {
  width: 40px;
  height: 1.5px;
  background-color: var(--divider);
  margin: 0 auto 14px;
}

.quote-brand {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-light);
  font-weight: 500;
}


/* ─── Decorations (Dandelions & Flowers) ─── */

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.deco svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* ─── Card Actions ─── */

.card-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.card-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-light);
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
}

.card-actions button:hover {
  color: var(--purple-mid);
  background: rgba(139, 123, 181, 0.1);
}

.card-actions button svg {
  width: 20px;
  height: 20px;
}

.btn-fav.active {
  color: #c45c6e;
}

.btn-fav.active svg {
  fill: #c45c6e;
  stroke: #c45c6e;
}


/* ─── Pagination ─── */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  width: 36px;
  height: 36px;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover {
  border-color: var(--purple-light);
  color: var(--purple-mid);
}

.page-btn.active {
  background: var(--purple-mid);
  color: #fff;
  border-color: var(--purple-mid);
}

.page-ellipsis {
  font-size: 14px;
  color: var(--text-light);
  width: 36px;
  text-align: center;
}

.page-arrow {
  font-size: 18px;
  padding: 0 4px;
}


/* ─── Share Overlay ─── */

.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-overlay-content {
  position: relative;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.share-hint {
  font-family: 'Quicksand', 'Inter', sans-serif;
  font-size: 15px;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0.9;
}

.share-preview {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.share-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ─── Loading & Empty States ─── */

.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 15px;
}


/* ─── Footer ─── */

.site-footer {
  background: var(--purple-deep);
  padding: 36px 24px;
  text-align: center;
}

.footer-brand {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--purple-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-light);
}


/* ─── Responsive — Scale UP from mobile ─── */

@media (min-width: 640px) {
  .site-header {
    padding: 40px 24px 36px;
  }

  .logo-img {
    max-width: 320px;
  }

  .filter-bar {
    padding: 24px 24px 8px;
  }

  .cards-container {
    padding: 16px 24px 32px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .card-capture {
    padding: 36px 28px 28px;
    min-height: 260px;
  }

  .quote-text {
    font-size: 24px;
  }

  .quote-author {
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 48px 24px 40px;
  }

  .logo-img {
    max-width: 380px;
  }
}
