/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
  font-style: normal;
}

body {
  width: 100%;
  min-height: 100vh;
  background: url("../assets/background.png") center/cover no-repeat, #121212;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

/* ========================================
   HEADER & FOOTER
   ======================================== */
header {
  width: 100%;
  padding: 18px 0;
  text-align: center;
}

header h1 {
  font-size: clamp(18px, 3.5vw, 28px);
  color: #e0e0e0;
  font-weight: 600;
  margin: 0;
}

footer {
  width: 100%;
  padding: 14px 0;
  text-align: center;
  color: #eeeeee;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

footer a {
  color: #e63946;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #eeeeee;
}

/* ========================================
   QUOTE CONTAINER
   ======================================== */
#quote-container {
  width: min(900px, 92vw);
  min-height: 500px;
  padding: 40px;
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px;
}

/* Quote content wrapper */
#quote-container > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* ========================================
   QUOTE TEXT STYLING
   ======================================== */
#quote {
  color: #ffffff;
  font-size: clamp(20px, 4vw, 34px);
  line-height: 1.45;
  text-align: center;
  transition: opacity 0.3s ease;
}

#author {
  color: #cccccc;
  font-size: clamp(16px, 2.5vw, 24px);
  text-align: center;
  font-style: italic;
  transition: opacity 0.3s ease;
}

/* Fade animation */
.fade-out {
  opacity: 0;
}

/* ========================================
   BUTTON STYLING
   ======================================== */
#new-quote {
  font-size: 1rem;
  font-weight: 500;
  background: linear-gradient(135deg, #5c0000, #7a1c1c);
  color: white;
  padding: 18px 50px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#new-quote:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #6a0000, #992424);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

#new-quote:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

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

/* Tablet view */
@media (max-width: 900px) {
  #quote-container {
    width: min(720px, 94vw);
    padding: 32px;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  body {
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #quote-container {
    width: calc(100% - 32px);
    padding: 20px;
    min-height: 360px;
    border-radius: 12px;
  }

  #quote-container > div {
    gap: 10px;
  }

  #quote {
    font-size: clamp(18px, 6vw, 30px);
  }

  #author {
    font-size: clamp(14px, 4vw, 20px);
  }

  #new-quote {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
  }
}

/* Small mobile view */
@media (max-width: 420px) {
  header h1 {
    font-size: 16px;
  }

  #quote-container {
    padding: 16px;
    min-height: 300px;
  }

  #quote {
    line-height: 1.35;
  }
}
