/* Avatar Initials Styles */

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    text-align: center;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

/* Size variants */
.avatar-initials--sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
    line-height: 1;
}

.avatar-initials--md {
    width: 40px;
    height: 40px;
    font-size: 14px;
    line-height: 1;
}

.avatar-initials--lg {
    width: 48px;
    height: 48px;
    font-size: 16px;
    line-height: 1;
}

.avatar-initials--xl {
    width: 64px;
    height: 64px;
    font-size: 20px;
    line-height: 1;
}

.avatar-initials--2xl {
    width: 80px;
    height: 80px;
    font-size: 24px;
    line-height: 1;
}

/* Hover effects */
.avatar-initials:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Border variants */
.avatar-initials--bordered {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.avatar-initials--bordered-white {
    border: 2px solid #ffffff;
}

/* Shadow variants */
.avatar-initials--shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-initials--shadow-lg {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Animation for new avatars */
.avatar-initials--animate-in {
    animation: avatarFadeIn 0.3s ease-out;
}

@keyframes avatarFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Testimonials specific styles */
.testimonial-avatar {
    position: relative;
}

.testimonial-avatar .avatar-initials {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar .avatar-initials::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .avatar-initials--responsive {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (min-width: 641px) {
    .avatar-initials--responsive {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

/* Accessibility */
.avatar-initials:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .avatar-initials {
        border: 1px solid #000;
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .avatar-initials--bordered {
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .avatar-initials--shadow {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Utility classes for common color combinations */
.avatar-red { background-color: #ef4444; color: #ffffff; }
.avatar-orange { background-color: #f97316; color: #ffffff; }
.avatar-amber { background-color: #f59e0b; color: #000000; }
.avatar-yellow { background-color: #eab308; color: #000000; }
.avatar-lime { background-color: #84cc16; color: #000000; }
.avatar-green { background-color: #22c55e; color: #ffffff; }
.avatar-emerald { background-color: #10b981; color: #ffffff; }
.avatar-teal { background-color: #14b8a6; color: #ffffff; }
.avatar-cyan { background-color: #06b6d4; color: #ffffff; }
.avatar-sky { background-color: #0ea5e9; color: #ffffff; }
.avatar-blue { background-color: #3b82f6; color: #ffffff; }
.avatar-indigo { background-color: #6366f1; color: #ffffff; }
.avatar-violet { background-color: #8b5cf6; color: #ffffff; }
.avatar-purple { background-color: #a855f7; color: #ffffff; }
.avatar-fuchsia { background-color: #d946ef; color: #ffffff; }
.avatar-pink { background-color: #ec4899; color: #ffffff; }
.avatar-rose { background-color: #f43f5e; color: #ffffff; }
