/* ==========================================================================
   Student Avatar Component - Responsive
   ========================================================================== */

/* Base avatar class */
.student-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    line-height: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Profile cover avatar - Extra Large (Default Desktop) */
.student-avatar-xl {
    width: 150px;
    height: 150px;
    font-size: 64px;
}

/* Large avatar */
.student-avatar-lg {
    width: 120px;
    height: 120px;
    font-size: 48px;
}

/* Medium avatar */
.student-avatar-md {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

/* Small avatar */
.student-avatar-sm {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

/* Extra small avatar */
.student-avatar-xs {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

/* ==========================================================================
   Responsive Behavior
   ========================================================================== */

/* Mobile y Tablets hasta 768px - Tamaños más pequeños */
@media (max-width: 768px) {
    .student-avatar-xl {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .student-avatar-lg {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .student-avatar-md {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .student-avatar-sm {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .student-avatar-xs {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Tablets y Desktop desde 769px hacia arriba - Tamaños normales */
@media (min-width: 769px) {
    /* Los tamaños base definidos arriba se mantienen */
    .student-avatar-xl {
        width: 150px;
        height: 150px;
        font-size: 64px;
    }
    
    .student-avatar-lg {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }
    
    .student-avatar-md {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .student-avatar-sm {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .student-avatar-xs {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Profile cover specific - Responsive */
.profile-cover .student-avatar-xl {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Hover effect for interactive avatars */
.student-avatar.avatar-interactive {
    cursor: pointer;
}

.student-avatar.avatar-interactive:hover {
    transform: scale(1.05);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Avatar Image (for actual photos)
   ========================================================================== */
.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Color Variants (opcional - para avatares con diferentes colores)
   ========================================================================== */
.student-avatar-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-rgb) 100%);
    color: white;
}

.student-avatar-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.student-avatar-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.student-avatar-info {
    background: linear-gradient(135deg, #667eea 0%, #00d4ff 100%);
    color: white;
}

/* ==========================================================================
   Status Indicators (opcional)
   ========================================================================== */
.student-avatar-status {
    position: relative;
}

.student-avatar-status::after {
    content: '';
    position: absolute;
    bottom: 8%;
    right: 8%;
    width: 20%;
    height: 20%;
    border-radius: 50%;
    border: 3px solid white;
    background-color: #28a745; /* Online/Active */
}

.student-avatar-status.status-offline::after {
    background-color: #6c757d;
}

.student-avatar-status.status-away::after {
    background-color: #ffc107;
}
