/* Front Network Badge System */
:root {
    --badge-size: 24px;
    --badge-radius: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--badge-radius);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.badge i {
    font-size: 14px;
}

.badge-admin {
    background: linear-gradient(135deg, #FF0000, #FF4444);
    animation: pulse 2s infinite;
}

.badge-moderator {
    background: linear-gradient(135deg, #00FF00, #00AA00);
    animation: glow 1.5s infinite;
}

.badge-distributor {
    background: linear-gradient(135deg, #FF6600, #FF8800);
    animation: slide 3s infinite;
}

.badge-vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    animation: shine 2s infinite;
}

.badge-verified {
    background: linear-gradient(135deg, #0088FF, #00AAFF);
    animation: pulse 2s infinite;
}

.badge-artist {
    background: linear-gradient(135deg, #FF00FF, #FF44FF);
    animation: rainbow 4s infinite;
}

.badge-donator {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    animation: heartbeat 1s infinite;
}

.badge-beta {
    background: linear-gradient(135deg, #00FFFF, #00CED1);
    animation: rotate 3s infinite;
}

.badge-og {
    background: linear-gradient(135deg, #FF4444, #FF0000);
    animation: spin 4s infinite;
}

.badge-contributor {
    background: linear-gradient(135deg, #44FF44, #00FF00);
    animation: typing 2s infinite;
}

/* Custom Badge Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px currentColor; }
    50% { box-shadow: 0 0 20px currentColor, 0 0 40px currentColor; }
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes slide {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes typing {
    0%, 100% { border-right: 2px solid transparent; }
    50% { border-right: 2px solid white; }
}

.badge-custom {
    background-size: 200% 200%;
}

/* Badge Container */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
}

/* User Profile Badge Display */
.profile-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.profile-badge {
    transform: scale(0.9);
}

/* Badge Creation Form */
.badge-editor {
    background: rgba(0,0,0,0.8);
    border: 2px solid #FF0000;
    padding: 20px;
    margin: 20px 0;
}

.badge-preview {
    margin: 10px 0;
    padding: 10px;
    border: 1px dashed #FF0000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-option:hover,
.color-option.selected {
    border-color: white;
    transform: scale(1.2);
}

.gradient-preview {
    width: 100%;
    height: 40px;
    border-radius: 5px;
    margin: 10px 0;
}

.animation-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.animation-option {
    padding: 10px;
    background: rgba(255,0,0,0.1);
    border: 1px solid #FF0000;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.animation-option:hover,
.animation-option.selected {
    background: rgba(255,0,0,0.3);
    border-color: #FF4444;
}

@keyframes badgeShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.badge-small {
    padding: 2px 8px;
    font-size: 0.65rem;
}

.badge-administrator {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 30%, #d4a843 50%, #ffd700 55%, #d4a843 60%, #2d2d2d 70%, #1a1a1a 100%);
    background-size: 300% 300%;
    animation: adminBadgeSweep 3s ease-in-out infinite;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(212, 168, 67, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8);
    border: 1px solid #d4a843;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(212, 168, 67, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes adminBadgeSweep {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}
