/* Fonts & Base Styling */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #0b0b0b url("/static/images/back.png") no-repeat center center fixed;
  background-size: cover;
  color: #f9f9f9;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Typography - H Tags */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  opacity: 1;
  text-align: left;
  animation: slideFadeIn 1s ease forwards;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  margin-bottom: 1rem;
}

h2 {
  color: #ffffff !important;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

h3 {
  color: #ffd700;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

/* Header/Navigation Styling */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem 2rem;
  flex-wrap: wrap;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffd700;
}

.logo img {
  height: 80px;
}

nav a {
  margin-left: 1rem;
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.login-btn {
  background: #ffd700;
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Main Content */
main {
  padding: 2rem;
  position: relative;
  z-index: 5;
}

/* Glass Container Box */
.glass-box {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 960px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Musical Notes */
.floating-notes {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.note {
  position: absolute;
  color: #ffd700;
  font-size: 20px;
  opacity: 0.6;
  animation: floatUp 15s linear infinite;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffd700;
  border-color: #ffd700;
}

.btn-secondary:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-3px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.7);
  color: #aaa;
  position: relative;
  z-index: 10;
}

footer a {
  color: #ffd700;
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
}

/* Animations */
@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Elements */
input, textarea, select {
  width: 100%;
  border: 1px solid #3a3a3a;
  background: #0f0f0f;
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

label {
  color: #f4f4f4;
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
}

li {
  color: #f4f4f4;
  margin-bottom: 1rem;
  padding-left: 1rem;
  position: relative;
}

li:before {
  content: "→";
  color: #ffd700;
  position: absolute;
  left: 0;
}

/* Blockquotes */
blockquote {
  border-left: 3px solid #ffd700;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
}

cite {
  display: block;
  margin-top: 0.5rem;
  color: #ffd700;
  font-style: normal;
  font-size: 0.9rem;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: #b8b8b8;
}

small {
  color: #b8b8b8;
  font-size: 0.85rem;
}

/* Emotion Card Boxes */
.emotion-card-box {
  padding: 2rem 2rem 1.5rem 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  background-size: cover !important;
  background-position: center !important;
}

.emotion-card-box h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #ffd700;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-content p {
  margin-bottom: 1.5rem;
  color: #f4f4f4;
}

/* Wooden Audio Player */
.wood-player {
  width: 90%;
  max-width: 280px;
  margin: auto;
  height: 45px;
  background: linear-gradient(180deg, #8b6f47 0%, #5c4a2f 100%);
  border-radius: 22px;
  border: 2px solid #3a2f1f;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  filter: none;
}

.wood-player::-webkit-media-controls-panel {
  background: linear-gradient(180deg, #8b6f47 0%, #5c4a2f 100%);
  border-radius: 20px;
}

.wood-player::-webkit-media-controls-play-button,
.wood-player::-webkit-media-controls-current-time-display,
.wood-player::-webkit-media-controls-time-remaining-display {
  filter: brightness(1.2) sepia(0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  nav a {
    display: block;
    margin: 0.5rem 0;
  }

  main {
    padding: 1rem;
  }

  .glass-box {
    margin: 1rem;
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1.5rem;
  }
  
  .emotion-card-box {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .glass-box {
    padding: 1rem;
    margin: 0.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }
  
  .emotion-card-box {
    min-height: 260px;
    padding: 1.5rem;
  }
}

/* Prevent text overflow */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
