/* Profile Page Styles */
.profile-container {
    width: 100%;
  }
  
  .profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
  }
  
  .profile-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .profile-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
  }
  
  .profile-tab i {
    margin-right: 0.5rem;
  }
  
  .profile-tab-content {
    display: none;
  }
  
  .profile-tab-content.active {
    display: block;
  }
  
  /* Profile Info Tab */
  .profile-header {
    display: flex;
    margin-bottom: 2rem;
    align-items: center;
  }
  
  .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
    border: 4px solid var(--primary-light);
  }
  
  .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .profile-details {
    flex: 1;
  }
  
  .profile-details h2 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
  }
  
  .profile-joined {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }
  
  .profile-stats {
    display: flex;
    gap: 1.5rem;
  }
  
  .profile-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .profile-bio {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }
  
  .profile-bio h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }
  
  .profile-bio p {
    margin-bottom: 0;
    white-space: pre-line; /* Respects line breaks in bio */
  }
  
  .profile-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .profile-info-item {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .profile-info-item i {
    color: var(--primary-color);
  }
  
  /* Profile Memes Tab */
  #profile-memes-grid {
    margin: 1rem 0 2rem;
  }
  
  .loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-light);
  }
  
  .loading-indicator i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  /* Edit Profile Tab */
  .avatar-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
  }
  
  .avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .avatar-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .char-count {
    display: block;
    text-align: right;
    color: var(--text-lighter);
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .profile-header {
      flex-direction: column;
      text-align: center;
    }
    
    .profile-avatar {
      margin-right: 0;
      margin-bottom: 1rem;
    }
    
    .profile-stats {
      justify-content: center;
    }
    
    .profile-tabs {
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
    }
    
    .profile-tab {
      padding: 0.75rem 1rem;
    }
    
    .avatar-upload {
      flex-direction: column;
    }
  }
  
  /* Username validation styles */
  #edit-username-status.valid {
    color: var(--success-color);
  }
  
  #edit-username-status.invalid {
    color: var(--danger-color);
  }
  
  #edit-username-status.checking {
    color: var(--info-color);
  }