/* ============================================================
   GLOBAL STYLES
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

/* Smooth page transitions */
html {
  scroll-behavior: smooth;
}

/* Utility buttons */
.btn {
  display: inline-block;
  background: #6c63ff;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #5848d6;
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.logout-btn {
  background: #ff4b5c;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
}

.logout-btn:hover {
  background: #e04352;
}

/* ============================================================
   HERO SECTION (Profile Page Top)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #8f94fb, #4e54c8);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

.hero-btn {
  background: white;
  color: #4e54c8;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.hero-btn:hover {
  background: #e0e0e0;
}

/* ============================================================
   LOGIN / REGISTER FORMS
   ============================================================ */
.container {
  max-width: 400px;
  background: white;
  margin: 80px auto;
  padding: 40px 35px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.6s ease;
  text-align: center;
}

.container h2 {
  margin-bottom: 25px;
  color: #333;
  font-weight: 700;
  font-size: 1.5rem;
}

.form-group {
  text-align: left;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 12px;
  transition: border 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 6px rgba(108, 99, 255, 0.4);
  outline: none;
}

.redirect {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #555;
}

.redirect a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 500;
}

.redirect a:hover {
  text-decoration: underline;
}

/* ============================================================
   PROFILE PAGE CONTENT
   ============================================================ */
.profile-page {
  max-width: 1000px;
  margin: 60px auto;
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.7s ease;
}

.profile-page section {
  margin-bottom: 50px;
}

.profile-page h2 {
  font-size: 1.8rem;
  color: #4e54c8;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.profile-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid #4e54c8;
  object-fit: cover;
  transition: transform 0.4s;
}

.profile-photo:hover {
  transform: scale(1.05);
}

.details p {
  margin-bottom: 10px;
}

/* ============================================================
   HOBBIES
   ============================================================ */
.hobby-grid {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.hobby-card {
  background: #f4f5ff;
  border-radius: 15px;
  text-align: center;
  padding: 20px;
  width: 160px;
  transition: all 0.3s;
}

.hobby-card span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.hobby-card:hover {
  transform: translateY(-6px);
  background: #e6e7ff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   SONGS TABLE
   ============================================================ */
.songs table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.songs th {
  background: #6c63ff;
  color: white;
  padding: 12px;
  text-align: left;
}

.songs td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.songs tr:hover td {
  background: #f7f6ff;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact p {
  margin: 10px 0;
}

.contact a {
  color: #4e54c8;
  text-decoration: none;
  font-weight: 500;
}

.contact a:hover {
  text-decoration: underline;
}

/* ============================================================
   QUICK NOTE
   ============================================================ */
.note {
  background: #f5f6fa;
  padding: 15px 20px;
  border-left: 4px solid #4e54c8;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  background: linear-gradient(90deg, #4e54c8, #8f94fb);
  color: white;
  padding: 25px 10px;
  border-radius: 20px 20px 0 0;
  margin-top: 60px;
}

.footer a {
  color: #ffdf5c;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   ANIMATIONS & RESPONSIVENESS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Layout */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .profile-info {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    margin-bottom: 15px;
  }

  .hobby-grid {
    justify-content: center;
  }

  .container {
    width: 90%;
  }

  .profile-page {
    width: 90%;
    padding: 30px;
  }
}
