/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   BODY
========================= */

body {
  font-family: Georgia, serif;
  background: #080808;
  color: #f5f1e8;
  line-height: 1.6;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;

  background:
    linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.88)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee")
    center/cover;

  display: flex;
  flex-direction: column;
}

.small-hero {
  min-height: 55vh;
}

/* =========================
   NAVBAR
========================= */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 25px 8%;
}

nav h2 {
  color: #d4af37;
  letter-spacing: 1px;
  font-size: 1.5rem;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-link {
  text-decoration: none;

  background: rgba(212,175,55,.15);

  border: 1px solid #d4af37;

  color: #d4af37;

  padding: 10px 18px;

  border-radius: 20px;

  transition: .3s;
}

.nav-link:hover {
  background: #d4af37;
  color: #111;
}

#themeBtn {
  background: #d4af37;
  color: #111;

  border: none;

  padding: 10px 18px;

  border-radius: 20px;

  cursor: pointer;

  font-weight: bold;
}

/* =========================
   HERO CONTENT
========================= */

.hero-content {
  flex: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 8%;

  max-width: 850px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);

  color: #fff;

  margin-bottom: 20px;

  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: 30px;
}

.btn {
  width: fit-content;

  background: #d4af37;

  color: #111;

  padding: 14px 28px;

  text-decoration: none;

  border-radius: 30px;

  font-weight: bold;

  transition: .3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* =========================
   MAIN
========================= */

main {
  padding: 60px 8%;
}

/* =========================
   DAILY
========================= */

.daily {
  background:
    linear-gradient(
      135deg,
      #161616,
      #2a230f
    );

  border: 1px solid #d4af37;

  padding: 40px;

  border-radius: 25px;

  text-align: center;

  margin-bottom: 70px;

  box-shadow:
    0 0 30px rgba(212,175,55,.08);
}

.daily h2 {
  color: #d4af37;
  margin-bottom: 18px;
  font-size: 2rem;
}

.daily .verse {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

/* =========================
   BUTTONS
========================= */

.random-btn {
  margin-top: 20px;

  background: #d4af37;

  color: #111;

  border: none;

  padding: 12px 22px;

  border-radius: 30px;

  cursor: pointer;

  font-weight: bold;

  transition: .3s;
}

.random-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

/* =========================
   PORTAL SECTION
========================= */

.portal-section {
  margin-bottom: 80px;
}

.portal-section h2 {
  text-align: center;

  color: #d4af37;

  margin-bottom: 35px;

  font-size: 2.5rem;
}

.portal-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 25px;
}

.portal-card {
  background:
    linear-gradient(
      135deg,
      #111,
      #211a08
    );

  border: 1px solid #d4af37;

  border-radius: 22px;

  padding: 30px;

  text-decoration: none;

  color: #f5f1e8;

  transition: .3s;

  min-height: 220px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 0 25px rgba(212,175,55,.18),
    0 0 50px rgba(212,175,55,.08);
}

.portal-card h3 {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.portal-card p {
  color: #ddd;
  line-height: 1.7;
}

/* =========================
   TOPICS
========================= */

.topics h2 {
  text-align: center;

  color: #d4af37;

  margin-bottom: 20px;

  font-size: 2.2rem;
}

#searchInput {
  width: 100%;
  max-width: 500px;

  display: block;

  margin: 0 auto 35px auto;

  padding: 15px;

  border-radius: 15px;

  border: 1px solid #444;

  background: #111;

  color: white;

  font-size: 1rem;
}

.accordion {
  max-width: 950px;
  margin: auto;
}

.topic {
  margin-bottom: 18px;

  border-radius: 18px;

  overflow: hidden;

  background: #141414;

  border: 1px solid #333;
}

.topic-btn {
  width: 100%;

  padding: 22px;

  background: #181818;

  color: #f5f1e8;

  font-size: 1.15rem;

  text-align: left;

  border: none;

  cursor: pointer;

  font-weight: bold;

  transition: .3s;
}

.topic-btn:hover {
  background: #2a230f;
  color: #d4af37;
}

.topic-content {
  display: none;

  padding: 22px;

  background: #101010;
}

.topic.active .topic-content {
  display: block;
}

/* =========================
   VERSE CARDS
========================= */

.verse-card {
  background: #1c1c1c;

  border-left: 4px solid #d4af37;

  padding: 22px;

  margin-bottom: 18px;

  border-radius: 14px;
}

.verse-card h3 {
  color: #d4af37;
  margin-bottom: 10px;
}

.verse-card p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.verse-card small {
  color: #cfc6ad;
}

/* =========================
   MUSIC PAGE
========================= */

.song-card {
  background:
    linear-gradient(
      135deg,
      #111,
      #211a08
    );

  border: 1px solid #d4af37;
}

.song-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  margin-bottom: 20px;
}

.song-header h3 {
  color: #d4af37;
  font-size: 1.8rem;
}

.chord-box {
  background: #080808;

  border: 1px solid #333;

  border-radius: 15px;

  padding: 20px;

  overflow-x: auto;
}

.chord-box pre {
  color: #f5f1e8;

  font-size: 1rem;

  line-height: 1.9;

  white-space: pre-wrap;

  font-family: "Courier New", monospace;
}

/* =========================
   SUGGESTION FORM
========================= */

.suggestion-section {
  max-width: 1000px;

  margin-left: auto;
  margin-right: auto;

  position: relative;
}

.suggestion-form {
  width: 100%;
  max-width: 700px;

  margin: 35px auto 0 auto;

  display: flex;
  flex-direction: column;

  gap: 18px;
}

.suggestion-form input,
.suggestion-form textarea {
  width: 100%;

  padding: 16px 18px;

  border-radius: 16px;

  border: 1px solid rgba(212,175,55,.55);

  background:
    linear-gradient(
      135deg,
      rgba(20,20,20,.95),
      rgba(35,28,12,.92)
    );

  color: #f5f1e8;

  font-size: 1rem;

  font-family: Georgia, serif;

  outline: none;

  transition: .3s;
}

.suggestion-form textarea {
  min-height: 170px;

  resize: vertical;
}

.suggestion-form input:focus,
.suggestion-form textarea:focus {
  border-color: #d4af37;

  box-shadow:
    0 0 18px rgba(212,175,55,.18),
    0 0 40px rgba(212,175,55,.08);
}

.suggestion-form input::placeholder,
.suggestion-form textarea::placeholder {
  color: #aaa;
}

.suggestion-form button {
  width: fit-content;

  align-self: center;

  padding: 14px 38px;
}

/* =========================
   FOOTER
========================= */

footer {
  text-align: center;

  padding: 30px;

  background: #050505;

  color: #d4af37;
}

/* =========================
   LIGHT MODE
========================= */

body.light {
  background: #f7f2e8;
  color: #1b1b1b;
}

body.light .topic,
body.light .topic-content,
body.light .verse-card,
body.light .topic-btn,
body.light .song-card {
  background: #fffaf0;
  color: #111;
}

body.light .daily,
body.light .portal-card {
  background: #fffaf0;
}

body.light .portal-card p {
  color: #333;
}

body.light .chord-box {
  background: white;
}

body.light .chord-box pre {
  color: #111;
}

body.light #searchInput {
  background: white;
  color: black;
}

body.light .suggestion-form input,
body.light .suggestion-form textarea {
  background: white;
  color: #111;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  nav {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .nav-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero-content {
    text-align: center;
    align-items: center;
    padding-top: 50px;
  }

  .hero-content h1 {
    font-size: 2.7rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .daily {
    padding: 28px 20px;
  }

  .daily .verse {
    font-size: 1.1rem;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: auto;
  }

  .topics h2,
  .portal-section h2 {
    font-size: 2rem;
  }

  .topic-btn {
    font-size: 1rem;
    padding: 18px;
  }

  .song-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .song-header button {
    width: 100%;
  }

  .chord-box pre {
    font-size: .85rem;
  }

  .suggestion-form button {
    width: 100%;
  }

  footer {
    font-size: .9rem;
    padding: 25px 15px;
  }
}
/* =========================
   WATERMARK
========================= */

body::after {
  content: "dtb.extraxtz";

  position: fixed;

  bottom: 18px;
  right: 22px;

  font-size: .85rem;

  letter-spacing: 1px;

  color: rgba(212,175,55,.22);

  font-family: Georgia, serif;

  pointer-events: none;

  z-index: 9999;

  user-select: none;

  text-shadow:
    0 0 10px rgba(212,175,55,.08);

  transition: .3s;
}

body.light::after {
  color: rgba(120,90,20,.18);
}

@media (max-width: 768px) {

  body::after {
    font-size: .72rem;
    bottom: 12px;
    right: 14px;
  }
}
