/* =========================
   GOOGLE FONT
========================= */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* =========================
   RESET
========================= */

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

/* =========================
   BODY
========================= */

body {
  font-family: "Poppins", sans-serif;

  min-height: 100vh;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 18px 20px;

  color: white;

  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(168, 148, 202, 0.916),
      transparent 22%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(216, 221, 180, 0.845),
      transparent 25%
    ),
    radial-gradient(
      circle at bottom,
      rgba(219, 190, 204, 0.956),
      transparent 28%
    ),
    #0f172a;
}

/* =========================
   MAIN CARD
========================= */

.quote-card {
  width: 100%;

  max-width: 820px;

  background: rgba(6, 14, 30, 0.78);

  border-radius: 32px;

  padding: 32px 36px;

  backdrop-filter: blur(22px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(59, 130, 246, 0.08);

  transition: all 0.4s ease;

  transform: scale(0.8);
  transform-origin: top center;
}

/* =========================
   HEADER
========================= */

.quote-header {
  text-align: center;
  margin-bottom: 28px;
}

.quote-header h1 {
  font-size: 3rem;

  font-weight: 700;

  margin-bottom: 10px;

  letter-spacing: -2px;
}

.quote-header p {
  color: #94a3b8;

  font-size: 1.05rem;
}

/* =========================
   MOOD BADGE
========================= */

.mood-badge {
  display: inline-block;

  padding: 10px 18px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.06);

  color: #e2e8f0;

  font-size: 0.95rem;

  margin-bottom: 25px;
}

/* =========================
   QUOTE CONTENT
========================= */

.quote-content {
  text-align: center;
  margin-bottom: 24px;
}

.quote-text {
  font-size: 1.85rem;

  line-height: 1.45;

  font-weight: 500;

  max-width: 620px;

  margin: 0 auto 28px;

  letter-spacing: -1.5px;

  transition: opacity 0.4s ease;
}

.quote-author {
  color: #94a3b8;

  font-size: 1.1rem;

  font-weight: 400;

  transition: opacity 0.4s ease;
}

/* =========================
   CATEGORY BUTTONS
========================= */

.category-buttons {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 15px;

  margin-bottom: 35px;
}

.category-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 12px 22px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.06);

  color: #f8fafc;

  font-size: 0.95rem;

  cursor: pointer;

  transition: all 0.3s ease;
}

/* =========================
   ACTION BUTTONS
========================= */

.action-buttons {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 18px;

  margin-bottom: 26px;
}

/* =========================
   PRIMARY BUTTON
========================= */

.primary-btn {
  border: none;

  padding: 14px 28px;

  border-radius: 14px;

  background: #f8fafc;

  color: #020617;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-3px);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.18),
    0 0 20px rgba(255, 255, 255, 0.25);
}

/* =========================
   SECONDARY BUTTONS
========================= */

.secondary-btn {
  border: none;

  padding: 14px 24px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.06);

  color: #f8fafc;

  font-size: 1rem;

  font-weight: 500;

  cursor: pointer;

  transition: all 0.3s ease;
}

/* =========================
   BUTTON HOVER
========================= */

.secondary-btn:hover,
.category-btn:hover {
  background: rgba(255, 255, 255, 0.14);

  transform: translateY(-3px);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(96, 165, 250, 0.18);
}

/* =========================
   FAVORITES SECTION
========================= */

.favorites-section h2 {
  margin-bottom: 20px;

  font-size: 1.8rem;
}

#favoritesList {
  list-style: none;

  display: flex;

  flex-direction: column;

  gap: 18px;
}

#favoritesList li {
  background: rgba(255, 255, 255, 0.05);

  padding: 20px;

  border-radius: 18px;

  line-height: 1.6;

  color: #f8fafc;

  transition: all 0.3s ease;
}

#favoritesList li:hover {
  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.08);
}

/* =========================
   LIGHT THEME
========================= */

.light-theme {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(61, 97, 76, 0.916),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(63, 30, 52, 0.845),
      transparent 25%
    ),
    radial-gradient(circle at bottom, rgba(52, 53, 37, 0.956), transparent 28%),
    #000000c3;

  color: #090000;
}

.light-theme .quote-card {
  background: rgba(234, 232, 225, 0.843);

  border: 1px solid rgba(233, 47, 84, 0.4);

  box-shadow: 0 10px 40px rgba(208, 109, 96, 0.822);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(158, 103, 103, 0.7);
}

.light-theme .quote-header p,
.light-theme .quote-author {
  color: #000000;
}

.light-theme .mood-badge {
  background: rgba(15, 23, 42, 0.05);

  color: #1e293b;
}

.light-theme .secondary-btn,
.light-theme .category-btn {
  background: rgba(2, 14, 42, 0.05);

  color: #030a1b;
}

.light-theme .secondary-btn:hover,
.light-theme .category-btn:hover {
  background: rgba(15, 23, 42, 0.09);
}

.light-theme #favoritesList li {
  background: rgba(15, 23, 42, 0.04);

  color: #0f172a;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .quote-card {
    padding: 40px 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .quote-header h1 {
    font-size: 2.8rem;
  }

  .quote-text {
    font-size: 1.5rem;
    padding: 0 16px;
  }

  .action-buttons {
    gap: 14px;
    padding: 0 16px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}

/* ==================
   CLEAR-BUTTON
=================== */

.clear-btn {
  margin-bottom: 18px;

  border: none;

  padding: 10px 18px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.08);

  color: #f87171;

  cursor: pointer;

  transition: 0.3s ease;
}

.clear-btn:hover {
  background: rgba(248, 113, 113, 0.14);

  transform: translateY(-2px);
}
