/* Profile Page Styles */

.profile-container {
  min-height: calc(100vh - 70px);
  padding: 40px 20px;
  background: var(--bg-primary);
}

/* Profile Header */
.profile-header {
  margin-bottom: 40px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  flex-wrap: wrap;
}

.avatar-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  background: var(--bg-secondary);
  display: block;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

.avatar-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}

.avatar-upload-btn i {
  font-size: 1.5rem;
}

.avatar-info {
  flex: 1;
  min-width: 200px;
}

.profile-username {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.profile-email {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.profile-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.profile-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.profile-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Profile Sections */
.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-section {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}

.profile-section:hover {
  box-shadow: 0 4px 20px var(--shadow);
}

.section-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--accent-color);
}

.section-content {
  padding: 30px;
}

/* Profile Form */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-input {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-input:disabled {
  background: var(--bg-secondary);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Settings List */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-item {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.setting-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.setting-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Navbar Profile Picture */
.nav-profile {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.nav-profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
}

.nav-profile-picture:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

.nav-profile-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
}

.nav-profile-placeholder:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success/Error Messages */
.message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.message-success {
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid rgba(72, 187, 120, 0.3);
  color: #48bb78;
}

.message-error {
  background: rgba(245, 101, 101, 0.1);
  border: 1px solid rgba(245, 101, 101, 0.3);
  color: #f56565;
}

.message i {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
  }

  .avatar-info {
    width: 100%;
  }

  .profile-stats {
    justify-content: center;
  }

  .section-content {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-profile {
    margin-left: 10px;
  }
}
