/* Modal Mi Perfil - Estilos Simplificados */

/* Variables de colores siguiendo la línea estética de macros */
:root {
    --urutienda-primary: #ffe802;
    --urutienda-dark: #0a0a0a;
    --surface-dark: #111111;
    --surface-light: #f8f9fa;
    --border-dark: #2a2a2a;
    --border-light: #e9ecef;
    --text-light: #e0e0e0;
    --text-dark: #212529;
    --whatsapp-green: #25D366;
    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
}

/* Modal simplificado */
.profile-modal-simple {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

/* Botón cerrar personalizado */
.profile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.8;
    color: #ffffff !important;
    font-size: 20px;
}

.profile-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #ffffff !important;
}

/* Body del modal simplificado */
.profile-modal-body-simple {
    background: var(--urutienda-dark);
    min-height: 380px;
}

/* Estados de carga y error simplificados */
.profile-loading-simple,
.profile-error-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 2rem;
}

.profile-loading-content,
.profile-error-content {
    text-align: center;
    max-width: 300px;
}

.profile-spinner .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 3px;
}

.profile-error-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

/* Sección principal simplificada */
.profile-simple-container {
    padding: 0;
}

.profile-simple-section {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, var(--urutienda-dark) 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.profile-simple-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--urutienda-primary) 0%, #f59e0b 100%);
    opacity: 0.08;
}

/* Avatar simplificado */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    z-index: 2;
}

.profile-avatar-simple,
.profile-avatar-placeholder-simple {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.profile-avatar-simple {
    object-fit: cover;
    border: 4px solid var(--whatsapp-green);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.profile-avatar-placeholder-simple {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #1ea852 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border: 4px solid var(--whatsapp-green);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.profile-avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--urutienda-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: profilePulse 2s infinite;
}

@keyframes profilePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

@keyframes statusPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Información básica simplificada */
.profile-info-simple {
    position: relative;
    z-index: 2;
}

.profile-name-simple {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-id-simple {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.profile-badge-simple {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    margin-bottom: 2rem;
}

/* Información de instancia */
.profile-instance-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.instance-status-simple {
    margin-bottom: 1rem;
}

.status-indicator-simple {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    color: #22c55e;
}

.status-dot-simple {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 0.6rem;
    animation: statusPulse 2s infinite;
}

.instance-updated {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instance-updated i {
    opacity: 0.7;
}

@keyframes statusPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-modal-simple {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .profile-simple-section {
        padding: 2.5rem 1.5rem 2rem;
    }
    
    .profile-avatar-simple,
    .profile-avatar-placeholder-simple {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-placeholder-simple {
        font-size: 2.5rem;
    }
    
    .profile-name-simple {
        font-size: 1.5rem;
    }
    
    .profile-close-btn {
        top: 15px;
        right: 15px;
    }
}

/* Modo claro */
.light-theme .profile-modal-simple {
    background: var(--surface-light);
    color: var(--text-dark);
}

.light-theme .profile-modal-body-simple {
    background: var(--surface-light);
}

.light-theme .profile-simple-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.light-theme .profile-name-simple {
    color: var(--text-dark);
}

.light-theme .profile-close-btn {
    background: transparent;
    opacity: 0.7;
    color: #333333;
}

.light-theme .profile-close-btn:hover {
    opacity: 1;
    color: #000000;
}

.light-theme .profile-instance-info {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
