/* Profile Page */
.profile-page {
  min-height: calc(100vh - 64px);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 3rem 1rem;
}

.profile-header {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-avatar-image,
.profile-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(247, 147, 26, 0.3);
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.2);
}

.profile-avatar-placeholder {
  background: linear-gradient(135deg, #f7931a 0%, #ffab40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #0f172a;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.profile-email {
  color: #94a3b8;
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f7931a;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
}

.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.profile-trigger img,
.profile-trigger-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-trigger-placeholder {
  background: linear-gradient(135deg, #f7931a 0%, #ffab40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 1000;
}

.user-profile-dropdown.is-open .profile-dropdown-menu,
.user-profile-dropdown.nav-dropdown.is-open .profile-dropdown-menu {
  display: block;
}

.profile-dropdown-item {
  display: block;
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.profile-dropdown-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.profile-dropdown-item.logout {
  color: #f87171;
}

.profile-dropdown-item.logout:hover {
  color: #fff;
  background: rgba(248, 113, 113, 0.2);
}

/* Desktop adjustments */
@media (min-width: 768px) {
  .profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1000;
  }
  
  .user-profile-dropdown.is-open .profile-dropdown-menu,
  .user-profile-dropdown.nav-dropdown.is-open .profile-dropdown-menu {
    display: block;
  }
}

/* Mobile styles for profile dropdown */
@media (max-width: 767px) {
  .profile-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    margin-bottom: 1rem;
    border-radius: 10px 10px 0 0;
  }

  .user-profile-dropdown {
    order: -1;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .user-profile-dropdown .profile-trigger {
    width: 56px;
    height: 56px;
  }

  .user-profile-dropdown .profile-trigger img,
  .user-profile-dropdown .profile-trigger-placeholder {
    width: 48px;
    height: 48px;
  }
}

/* Profile Edit Section */
.profile-edit-section {
  max-width: 800px;
  margin: 2rem auto 0;
}

.profile-edit-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.profile-edit-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  display: block;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #f7931a;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

.form-input::placeholder {
  color: #64748b;
}

.form-help {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.5rem 0 0;
}

.form-actions {
  margin-top: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #f7931a 0%, #ffab40 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(247, 147, 26, 0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(247, 147, 26, 0.5);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Responsive styles for profile page */
@media (max-width: 768px) {
  .profile-page {
    padding: 2rem 1rem;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .profile-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .profile-edit-section {
    margin: 1.5rem auto 0;
  }
  
  .profile-edit-card {
    padding: 2rem;
  }
  
  .profile-edit-title {
    font-size: 1.25rem;
  }
}
