:root {
  --primary: #000000;     /* soft indigo */
  --secondary: #c7576d;   /* blush pink */
  --background: #f9fafc;  /* clean light */
  --card: #ffffff;
  --text: #2e2e2e;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #5ba3b081; /* darker walnut brown */

  /* subtle paper texture */
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px;
  background-position: 0 0, 10px 10px;

  margin: 0;
  padding: 40px 20px;
  color: var(--text);
  text-align: center;
}

/* ===== PASSWORD SCREEN ===== */
#password-screen {
  margin-top: 20vh;
}

#password-screen input {
  padding: 10px;
  width: 220px;
  border-radius: 6px;
  border: 1px solid #aaa;
}

#password-screen button {
  margin-left: 10px;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  background-color: #6b4f3f;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

#password-screen button:hover {
  background-color: #5a4032;
}

#error-message {
  color: red;
  margin-top: 10px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary), #7a7ee6);
  color: white;
  padding: 40px 25px;
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto 50px auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.hero .icon {
  font-size: 60px;
  margin-bottom: 10px;
}

.hero h1 {
  margin: 10px 0 5px;
  font-size: 2.2rem; /* slightly smaller */
  letter-spacing: 0.5px;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0.9;
}

.hero .tagline {
  margin-top: 15px;
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark Mode Toggle */
#darkModeToggle {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  background-color: var(--secondary);
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* ===== SEARCH BAR ===== */
.search-container {
  text-align: center;
  margin-bottom: 15px;
}

.search-container input {
  padding: 0.6rem 1rem;
  width: 50%;
  max-width: 400px;
  border-radius: 10px;
  border: 1px solid #aaa;
  font-size: 1rem;
}

/* ===== TAGS ===== */
.tags-container {
  text-align: center;
  margin-bottom: 20px;
}

.tag {
  padding: 0.4rem 1rem;
  margin: 0.3rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: #ccc;
  font-weight: 600;
  transition: 0.2s;
}

.tag:hover {
  background-color: var(--secondary);
  color: white;
}

/* ===== SECTION HEADERS ===== */
h2 {
  color: var(--primary);
  margin-top: 50px;
  margin-bottom: 15px;
}

/* ===== COLLAPSIBLE SECTIONS ===== */
.collapsible {
  cursor: pointer;
  background-color: #bfa27f;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: 0.3s;
}

.collapsible:hover {
  background-color: #a88760;
}

/* ===== CARDS / LISTS ===== */
ul.resource-list {
  background-color: var(--card);
  padding: 25px 35px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: left;
  list-style: none;
}

li {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* ===== LINKS ===== */
a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ===== COPY BUTTON ===== */
.copy-btn {
  margin-left: 10px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #aaa;
  background-color: #eee;
  transition: 0.2s;
}

.copy-btn:hover {
  background-color: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

/* ===== DARK MODE STYLING ===== */
body.dark-mode {
  background-color: #1c1c1c;
  color: #eee;
}

body.dark-mode a {
  color: #80c0ff;
}

body.dark-mode .card, body.dark-mode ul.resource-list {
  background-color: #2a2a2a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  ul.resource-list {
    padding: 20px;
  }

  .search-container input {
    width: 80%;
  }
}















/* ===============================
   ✨ GLOBAL SMOOTHNESS & POLISH
================================ */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  animation: pageFade 0.8s ease-in-out;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===============================
   💎 HERO – PREMIUM DEPTH
================================ */

.hero {
  background-size: 200% 200%;
  animation: heroFloat 1s ease-out, gradientShift 10s ease infinite;
}

@keyframes heroFloat {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===============================
   🪪 LINKTREE-STYLE LIST ITEMS
================================ */

ul.resource-list li {
  position: relative;
  border-radius: 14px;
  padding: 14px 16px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

ul.resource-list li:hover {
  background-color: rgba(0,0,0,0.035);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}

ul.resource-list li:active {
  transform: scale(0.98);
}

/* ===============================
   💠 CARD = GLASSY PREMIUM
================================ */

ul.resource-list {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.45);
}

/* ===============================
   🔽 COLLAPSIBLE FEELS SMOOTHER
================================ */

.collapsible {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.collapsible:active {
  transform: scale(0.98);
}

/* ===============================
   ✨ BUTTON MICRO-INTERACTIONS
================================ */

button,
.tag,
.copy-btn,
#darkModeToggle {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

button:hover,
.tag:hover,
.copy-btn:hover,
#darkModeToggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  filter: brightness(1.05);
}

button:active,
.tag:active,
.copy-btn:active {
  transform: scale(0.97);
}

/* ===============================
   🔒 PASSWORD SCREEN = REAL CARD
================================ */

#password-screen {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 42px 36px;
  border-radius: 22px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.18);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  animation: passwordPop 0.8s ease;
}

@keyframes passwordPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===============================
   🌙 DARK MODE PREMIUM FIXES
================================ */

body.dark-mode ul.resource-list {
  border-color: rgba(255,255,255,0.08);
}

body.dark-mode ul.resource-list li:hover {
  background-color: rgba(255,255,255,0.06);
}

body.dark-mode #password-screen {
  background: rgba(40,40,40,0.85);
}
/* Dark mode: make section headings white */
body.dark-mode h2 {
  color: #ffffff;
}
