/* ========================================
   MEMBERS AREA STYLES
   ======================================== */

/* Login Screen Styles */
.login-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Animations */
.agent-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.agent-card:hover::before {
    left: 100%;
}

/* Progress Bars */
.progress-bar {
    transition: width 0.8s ease;
}

/* Member Level Badge */
.member-level {
    background: linear-gradient(135deg, var(--gold-experience), var(--gold-legacy));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Grid Responsive */
@media (max-width: 768px) {
    .agent-card {
        padding: 1rem;
    }
    
    .agent-card h3 {
        font-size: 1.125rem;
    }
}

/* Chat Modal Enhancements */
.agent-chat-message {
    animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Agent Icons Colors */
.agent-oraculo { color: #A855F7; }
.agent-alquimista { color: #F97316; }
.agent-arquiteto { color: #3B82F6; }
.agent-mentor { color: #10B981; }
.agent-conector { color: #14B8A6; }
.agent-especialista { color: #EF4444; }

/* Notification Badges */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Premium Features */
.premium-feature {
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 134, 11, 0.05));
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.premium-feature::after {
    content: '⭐ PREMIUM';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gold-experience);
    color: var(--nexus-deep);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transform: rotate(15deg);
}

/* Access Levels */
.access-basic { border-left: 4px solid #6B7280; }
.access-premium { border-left: 4px solid var(--gold-experience); }
.access-vip { border-left: 4px solid #8B5CF6; }

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #1C1C1C, #2A2A2A, #1C1C1C);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Success/Error States */
.status-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.status-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

/* Interactive Elements */
.interactive-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-card:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Member Dashboard Specific */
.dashboard-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--nexus-power);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.dashboard-stat:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.dashboard-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold-experience);
    display: block;
}

.dashboard-stat-label {
    font-size: 0.875rem;
    color: rgba(245, 245, 245, 0.7);
}

/* Chat Enhancements */
.chat-bubble-agent {
    background: var(--nexus-deep);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 1rem 1rem 1rem 0.25rem;
    padding: 1rem;
    max-width: 80%;
}

.chat-bubble-user {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem 1rem 0.25rem 1rem;
    padding: 1rem;
    max-width: 80%;
    margin-left: auto;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: rgba(245, 245, 245, 0.6);
    font-style: italic;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--gold-experience);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .members-dashboard {
        padding: 1rem;
    }
    
    .agent-card {
        padding: 1rem;
    }
    
    .dashboard-header {
        padding: 0.5rem 1rem;
    }
    
    .chat-bubble-agent,
    .chat-bubble-user {
        max-width: 90%;
        padding: 0.75rem;
    }
}

/* Dark Mode Enhancements */
.dark-mode-toggle {
    background: var(--nexus-power);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--digital-clarity);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: var(--gold-experience);
    color: var(--nexus-deep);
}