/**
 * Profile Page Styles - Glass 3D Design
 */

/* Profile Container - Full Width */
.profile-container {
  max-width: 100%;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   PROFILE HEADER - FULL WIDTH GLASS CARD
   ═══════════════════════════════════════════════════════════════════ */
.profile-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  width: 100%;
}

.profile-header.glass-card-3d {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    4px 4px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.profile-header.glass-card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316, #ea580c, #f97316);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.profile-header-main {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .profile-header {
    padding: var(--space-6);
  }
  
  .profile-header-main {
    flex-direction: column;
    text-align: center;
  }
}

/* Avatar - 3D Style */
.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    6px 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.1);
}

.btn-avatar-change {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border: 3px solid var(--color-bg-card);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 2px 2px 8px rgba(249, 115, 22, 0.4);
}

.btn-avatar-change:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.5);
}

.btn-avatar-change svg {
  width: 16px;
  height: 16px;
}

/* Profile Info */
.profile-info {
  flex: 1;
}

.profile-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.profile-email {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.profile-status .status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.profile-member {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bio Section */
.profile-bio-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .profile-bio-section {
    grid-template-columns: 1fr;
  }
}

.profile-bio,
.profile-passions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bio-label,
.passions-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.bio-label svg,
.passions-label svg {
  color: var(--color-primary);
}

.bio-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s ease;
}

.bio-textarea::placeholder {
  color: var(--color-text-muted);
}

.bio-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Passions Tags */
.passions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.passion-tag {
  --passion-color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.passion-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--passion-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.passion-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--passion-color), color-mix(in srgb, var(--passion-color) 70%, #000));
  border-radius: var(--radius-full);
  color: white;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--passion-color) 50%, transparent);
}

.passion-icon svg {
  width: 14px;
  height: 14px;
}

.passion-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  margin-left: var(--space-1);
}

.passion-tag:hover .passion-remove {
  opacity: 1;
}

.passion-remove:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.passion-empty {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   PASSIONS MODAL
   ═══════════════════════════════════════════════════════════════════ */
.passions-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.passions-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.passions-modal {
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: rgba(var(--color-surface-rgb, 15, 23, 42), 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.passions-modal-overlay.active .passions-modal {
  transform: scale(1) translateY(0);
}

.passions-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.passions-modal .modal-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.passions-modal .modal-title svg {
  color: #ec4899;
}

.passions-modal .modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.passions-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.passions-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.passions-hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  text-align: center;
}

.passion-category {
  margin-bottom: var(--space-6);
}

.passion-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.passion-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.passion-option {
  --passion-color: #f97316;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.passion-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--passion-color);
}

.passion-option.selected {
  background: color-mix(in srgb, var(--passion-color) 20%, transparent);
  border-color: var(--passion-color);
  box-shadow: 0 0 15px color-mix(in srgb, var(--passion-color) 30%, transparent);
}

.passion-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--passion-color), color-mix(in srgb, var(--passion-color) 70%, #000));
  border-radius: var(--radius-full);
  color: white;
}

.passion-option-icon svg {
  width: 14px;
  height: 14px;
}

.passion-option-name {
  font-weight: 500;
}

.passion-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--passion-color);
  border-radius: var(--radius-full);
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.passion-option.selected .passion-check {
  opacity: 1;
  transform: scale(1);
}

.passions-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.passions-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.passions-modal .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  border: none;
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.passions-modal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.4);
}

.btn-add-passion {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-passion:hover {
  background: rgba(251, 146, 60, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   PROFILE SECTIONS GRID - 2 COLUMNS
   ═══════════════════════════════════════════════════════════════════ */
.profile-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .profile-sections-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile Section Cards */
.profile-section.glass-card-3d {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    4px 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.profile-section.glass-card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.6;
}

.profile-section.glass-card-3d:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-section.glass-card-3d:hover::before {
  opacity: 1;
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

/* Profile Form - Glass Style */
.profile-form .form-group {
  margin-bottom: var(--space-4);
}

.profile-form .form-group:last-child {
  margin-bottom: 0;
}

.profile-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .profile-form .form-row {
    grid-template-columns: 1fr;
  }
}

.profile-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.profile-form .form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: all 0.2s ease;
}

.profile-form .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.06);
}

.profile-form .form-control::placeholder {
  color: var(--color-text-muted);
}

/* Preferences List - Glass Style */
.preferences-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.preference-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preference-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.preference-info {
  flex: 1;
}

.preference-label {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.preference-desc {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Profile Stats - 3D Style */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  text-align: center;
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Profile Actions */
.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
}

.profile-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.profile-actions .btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

/* Danger Zone */
.danger-zone {
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.03) !important;
}

.danger-zone::before {
  background: linear-gradient(90deg, transparent, #ef4444, transparent) !important;
}

.danger-zone:hover {
  border-color: rgba(239, 68, 68, 0.6) !important;
}

.danger-zone .section-title {
  color: #ef4444;
}

.danger-zone .section-title svg {
  color: #ef4444;
}

.danger-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.danger-item:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
}

@media (max-width: 640px) {
  .danger-item {
    flex-direction: column;
    align-items: flex-start;
  }

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

.danger-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.danger-title {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.danger-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Danger Buttons */
.btn-outline-danger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  background: transparent;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Profile Card (Simple View) */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.profile-avatar-large {
  position: relative;
  margin-bottom: var(--space-4);
}

.profile-avatar-large img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--color-border);
}

.btn-edit-avatar {
  position: absolute;
  bottom: var(--space-1);
  right: var(--space-1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border: 3px solid var(--color-surface);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-edit-avatar:hover {
  background-color: var(--color-primary-hover);
}

.profile-info-card h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.profile-info-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.profile-info-card .profile-member {
  margin-top: var(--space-3);
}

/* Skeleton */
.skeleton-header .profile-avatar {
  background-color: var(--color-skeleton);
}

.skeleton-block {
  height: 200px;
  background-color: var(--color-skeleton);
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════════════════════════════
   MINI PASSION BADGES - For comments and public profiles
   ═══════════════════════════════════════════════════════════════════ */
.passion-badges-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: var(--space-2);
}

.passion-badge-mini {
  --passion-color: #f97316;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--passion-color), color-mix(in srgb, var(--passion-color) 70%, #000));
  border-radius: var(--radius-full);
  color: white;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--passion-color) 40%, transparent);
  transition: transform 0.2s ease;
}

.passion-badge-mini svg {
  width: 12px;
  height: 12px;
}

.passion-badge-mini:hover {
  transform: scale(1.15);
}

.passion-badge-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
}

