/* Professional Badge Enhancement */

.professional-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 123, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-width: 320px;
    margin: 20px auto;
    animation: badgeFloat 3s ease-in-out infinite;
}

.professional-badge:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.8s;
    animation: shimmerEffect 3s ease-in-out infinite;
}

.professional-badge:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 123, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.professional-badge:hover:before {
    left: 100%;
}

/* Badge Icon Enhancement */
.badge-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: iconPulse 2s ease-in-out infinite;
}

.badge-icon:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: rotateGlow 4s linear infinite;
}

.badge-icon svg {
    width: 28px;
    height: 28px;
    color: #b8860b;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.professional-badge:hover .badge-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.professional-badge:hover .badge-icon svg {
    transform: scale(1.1);
    color: #8b6914;
}

/* Badge Text Enhancement */
.badge-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.badge-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.badge-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.professional-badge:hover .badge-title {
    color: #ffffff;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.6);
    transform: translateX(2px);
}

.professional-badge:hover .badge-subtitle {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transform: translateX(2px);
}

/* Decorative Elements */
.professional-badge:after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd700, transparent);
    border-radius: 50%;
    opacity: 0.6;
    animation: sparkle 2s ease-in-out infinite;
}

/* Additional Sparkles */
.professional-badge .sparkle-1,
.professional-badge .sparkle-2,
.professional-badge .sparkle-3 {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    opacity: 0;
    animation: sparkleFloat 3s ease-in-out infinite;
}

.professional-badge .sparkle-1 {
    top: 15px;
    left: 20px;
    animation-delay: 0s;
}

.professional-badge .sparkle-2 {
    bottom: 20px;
    right: 25px;
    animation-delay: 1s;
}

.professional-badge .sparkle-3 {
    top: 50%;
    right: 10px;
    animation-delay: 2s;
}

/* Animations */
@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes shimmerEffect {
    0% {
        left: -100%;
    }
    50% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(255, 215, 0, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 6px 20px rgba(255, 215, 0, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .professional-badge {
        padding: 15px 20px;
        gap: 12px;
        max-width: 280px;
        margin: 15px auto;
    }
    
    .badge-icon {
        width: 45px;
        height: 45px;
    }
    
    .badge-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .badge-title {
        font-size: 15px;
    }
    
    .badge-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .professional-badge {
        padding: 12px 16px;
        gap: 10px;
        max-width: 250px;
        border-radius: 16px;
    }
    
    .badge-icon {
        width: 40px;
        height: 40px;
    }
    
    .badge-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .badge-title {
        font-size: 14px;
    }
    
    .badge-subtitle {
        font-size: 11px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .professional-badge {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15) 0%, 
            rgba(255, 255, 255, 0.08) 50%, 
            rgba(255, 255, 255, 0.03) 100%);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .professional-badge:hover {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Print Styles */
@media print {
    .professional-badge {
        background: #f8f9fa !important;
        border: 2px solid #dee2e6 !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    
    .badge-title,
    .badge-subtitle {
        color: #000 !important;
        text-shadow: none !important;
    }
    
    .badge-icon {
        background: #ffd700 !important;
        box-shadow: none !important;
    }
}