
/* ============================================================================
   Layout: Profile Container
============================================================================ */

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0 auto;
    max-width: 800px;
  }
  
  
  /* ============================================================================
     Cards: Profile Card
  ============================================================================ */
  
  .profile-card {
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--section-shadow);
    padding: 2rem;
  }
  
  
  /* ============================================================================
     Profile Header & Avatar
  ============================================================================ */
  
  .profile-header {
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .profile-avatar-container {
    flex-shrink: 0;
    position: relative;
  }
  
  .profile-avatar {
    border: 3px solid var(--glass-border);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    height: 100px;
    transition: all 0.3s ease;
    width: 100px;
  }
  
  .profile-avatar:hover {
    border-color: var(--totk-light-green);
    transform: scale(1.05);
  }
  
  .profile-status {
    align-items: center;
    border: 3px solid var(--bg-secondary);
    border-radius: 50%;
    bottom: 5px;
    display: flex;
    height: 20px;
    justify-content: center;
    position: absolute;
    right: 5px;
    width: 20px;
  }
  
  .profile-status.online {
    background: #4CAF50;
  }
  
  .profile-status.online .status-dot {
    animation: pulse 2s infinite;
    background: white;
    border-radius: 50%;
    height: 8px;
    width: 8px;
  }
  
  
  /* ============================================================================
     Profile Info & Actions
  ============================================================================ */
  
  .profile-info {
    flex: 1;
  }
  
  .profile-name {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0 0 0.5rem 0;
  }
  
  .profile-discriminator,
  .profile-email {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
  }
  
  .profile-email {
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  .profile-stats {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 1rem;
  }
  
  .profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .profile-action-btn {
    align-items: center;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.5rem;
    justify-content: center;
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .profile-action-btn i {
    font-size: 1rem;
  }
  
  .profile-action-btn.primary {
    background: var(--totk-light-green);
    box-shadow: 0 4px 12px rgba(0, 163, 218, 0.3);
    color: white;
  }
  
  .profile-action-btn.primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(0, 163, 218, 0.4);
    transform: translateY(-2px);
  }
  
  .profile-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
  }
  
  .profile-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--totk-light-green);
    transform: translateY(-2px);
  }
  
  
  /* ============================================================================
     Buttons: Profile Dropdown
  ============================================================================ */
  
  .profile-button {
    align-items: center;
    background: rgba(0, 163, 218, 0.1);
    border: 1px solid var(--totk-light-green);
    border-radius: 0.5rem;
    color: var(--totk-light-green);
    display: flex;
    font-weight: 500;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .profile-button:hover {
    background: var(--totk-light-green);
    color: white;
    transform: translateY(-1px);
  }
  
  .profile-button i {
    font-size: 1rem;
  }
  
  
  
  /* ============================================================================
     Profile Characters: Container & Header
  ============================================================================ */
  
  .profile-characters-section {
    backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--section-shadow);
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .profile-characters-header {
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .profile-characters-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
  }
  
  .profile-characters-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  .profile-characters-count span {
    color: var(--totk-light-green);
    font-weight: 600;
  }
  
  .profile-characters-container {
    min-height: 200px;
    position: relative;
  }
  
  
  /* ============================================================================
     Characters: Loading State
  ============================================================================ */
  
  .profile-characters-loading {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding: 2rem;
  }
  
  .profile-characters-loading .loading-spinner {
    animation: spin 1s linear infinite;
    border: 3px solid var(--glass-border);
    border-radius: 50%;
    border-top: 3px solid var(--totk-light-green);
    height: 40px;
    width: 40px;
  }
  
  .profile-characters-loading p {
    font-size: 0.9rem;
    margin: 0;
  }
  
  
  /* ============================================================================
     Characters: Grid & Card
  ============================================================================ */
  
  .profile-characters-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .profile-character-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
  }
  
  .profile-character-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--totk-light-green);
    transform: translateY(-2px);
  }
  
  
  /* ============================================================================
     Character Info
  ============================================================================ */
  
  .profile-character-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .profile-character-avatar {
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    flex-shrink: 0;
    height: 48px;
    width: 48px;
  }
  
  .profile-character-info {
    flex: 1;
    min-width: 0;
  }
  
  .profile-character-name {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .profile-character-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
  }
  
  .profile-character-village {
    align-items: center;
    color: var(--totk-light-green);
    display: flex;
    font-size: 0.85rem;
    gap: 0.25rem;
    margin-top: 0.25rem;
  }
  
  .profile-character-village i {
    font-size: 0.75rem;
    opacity: 0.8;
  }
  
  
  /* ============================================================================
     Character Stats & Status
  ============================================================================ */
  
  .profile-character-stats {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.75rem;
  }
  
  .profile-character-stat {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    text-align: center;
  }
  
  .profile-character-stat-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
  }
  
  .profile-character-stat-value {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .profile-character-status {
    align-items: center;
    border-radius: 0.5rem;
    display: flex;
    font-size: 0.8rem;
    font-weight: 500;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem;
  }
  
  .profile-character-status.blighted {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
  }
  
  .profile-character-status.ko {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
  }
  
  .profile-character-status.online {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
  }
  
  
  /* ============================================================================
     No Characters Message
  ============================================================================ */
  
  .profile-no-characters {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
  }
  
  .profile-no-characters i {
    color: var(--text-secondary);
    font-size: 3rem;
    opacity: 0.5;
  }
  
  .profile-no-characters h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
  }
  
  .profile-no-characters p {
    font-size: 0.9rem;
    margin: 0;
    max-width: 300px;
  }

  /* ============================================================================
   Character Roll Status
============================================================================ */

.profile-character-roll-status {
  align-items: center;
  border-radius: 0.5rem;
  display: flex;
  font-size: 0.75rem;
  font-weight: 500;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
}

.profile-character-roll-status.rolled {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.profile-character-roll-status.not-rolled {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

.profile-character-roll-status i {
  font-size: 0.7rem;
  opacity: 0.8;
}