/**
 * User Profile & Engagement Styles
 * Modern, responsive styling for profiles, dashboards, and engagement features
 */

/* Profile Card */
.profile-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.profile-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-photo-container {
  position: relative;
  flex-shrink: 0;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand, #1e90ff);
}

.profile-photo-container .verification-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: white;
  border-radius: 50%;
  padding: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: #102542;
  margin: 0 0 0.5rem 0;
}

.profile-bio {
  color: #6b7a99;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.profile-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-stars {
  color: #f5c150;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rating-text {
  color: #6b7a99;
  font-size: 0.9rem;
}

.profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.skill-tag {
  background: #eef5ff;
  color: var(--brand, #1e90ff);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a5b79;
  font-size: 0.9rem;
}

.detail-icon {
  font-size: 1.1rem;
}

/* Profile Photo Upload */
.profile-photo-upload {
  margin-bottom: 2rem;
}

.profile-photo-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand, #1e90ff);
  display: none;
  margin-bottom: 1rem;
}

.profile-photo-input {
  display: none;
}

.photo-upload-label {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--brand, #1e90ff);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.photo-upload-label:hover {
  background: #1873cc;
}

/* Profile Form */
.profile-form {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e6ecf8;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #102542;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Verification Status */
.verification-status {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.verification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8fbff;
  border-radius: 8px;
}

.verification-item.verified {
  background: #e8f5e9;
}

.verification-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.verification-status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.verification-status-badge.verified {
  background: #45b26b;
  color: white;
}

.verification-status-badge.pending {
  background: #fff3e0;
  color: #f57c00;
}

.verification-status-badge.unverified {
  background: #e0e0e0;
  color: #666;
}

.verify-btn {
  padding: 0.5rem 1rem;
  background: var(--brand, #1e90ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.verify-btn:hover {
  background: #1873cc;
}

.verify-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.otp-container {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fbff;
  border-radius: 8px;
}

.otp-container.active {
  display: block;
}

.otp-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d4dcee;
  border-radius: 8px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Notification Center */
.notification-toggle {
  position: relative;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.notification-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

#notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #ff6b6b;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

#notification-panel {
  position: fixed;
  top: 80px;
  right: 2rem;
  width: 400px;
  max-width: calc(100vw - 4rem);
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#notification-panel.active {
  display: flex;
}

.notification-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e6ecf8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #102542;
}

.mark-all-read-btn {
  padding: 0.5rem 1rem;
  background: var(--brand, #1e90ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.notification-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-left: 3px solid transparent;
}

.notification-item:hover {
  background: #f8fbff;
}

.notification-item.unread {
  background: #eef5ff;
  border-left-color: var(--brand, #1e90ff);
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #102542;
  margin-bottom: 0.25rem;
}

.notification-message {
  color: #6b7a99;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.notification-time {
  font-size: 0.75rem;
  color: #888;
}

.notification-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.notification-link {
  color: var(--brand, #1e90ff);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.notification-delete {
  background: none;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.notification-delete:hover {
  background: #ff6b6b;
  color: white;
}

.notification-empty {
  padding: 3rem;
  text-align: center;
  color: #888;
}

/* Saved Searches */
.saved-searches-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.saved-search-item {
  padding: 1.5rem;
  border: 1px solid #e6ecf8;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.saved-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.saved-search-header h4 {
  margin: 0;
  color: #102542;
}

.saved-search-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6b7a99;
  cursor: pointer;
}

.delete-search-btn {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.delete-search-btn:hover {
  background: #ff6b6b;
  color: white;
}

.saved-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-tag {
  background: #f0f4f8;
  color: #4a5b79;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.view-search-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--brand, #1e90ff);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.saved-searches-empty {
  padding: 3rem;
  text-align: center;
  color: #888;
}

.saved-searches-empty .hint {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Draft Saved Indicator */
.draft-saved-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #45b26b;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.draft-saved-indicator.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Posting Progress Bar */
.posting-progress {
  margin-bottom: 2rem;
}

.progress-bar-container {
  height: 8px;
  background: #e6ecf8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand, #1e90ff);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b7a99;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.progress-step.active {
  color: var(--brand, #1e90ff);
  font-weight: 600;
}

.progress-step.completed {
  color: #45b26b;
}

/* Smart Suggestions */
.smart-suggestions {
  background: #f0f7ff;
  border: 1px solid #c8dcff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.smart-suggestions h4 {
  margin: 0 0 0.75rem 0;
  color: #102542;
  font-size: 0.9rem;
}

.suggestion-item {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: white;
  border: 1px solid #c8dcff;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--brand, #1e90ff);
  cursor: pointer;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.suggestion-item:hover {
  background: var(--brand, #1e90ff);
  color: white;
}

/* Dashboard Enhancements */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #102542;
  margin: 0;
}

.dashboard-card-count {
  background: var(--brand, #1e90ff);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid #e6ecf8;
  border-radius: 12px;
  text-decoration: none;
  color: #102542;
  transition: all 0.2s ease;
}

.quick-action-btn:hover {
  border-color: var(--brand, #1e90ff);
  background: #f0f7ff;
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: 2rem;
}

.quick-action-label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  #notification-panel {
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: none;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

