/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.badge-name {
    white-space: nowrap;
}

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

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-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.5s ease;
}

.profile-badge:hover::before {
    left: 100%;
}

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

.profile-badge i {
    font-size: 16px;
}

/* Badge Tooltip */
.badge-tooltip {
    position: relative;
    cursor: help;
}

.badge-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease;
    pointer-events: none;
}

.badge-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a2e;
    margin-bottom: -6px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Badge Animations */
.badge-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
}

.badge-shine {
    animation: shine 3s infinite;
}

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

/* Badge Types */
.badge-verification {
    background: linear-gradient(135deg, #10b981, #059669);
}

.badge-achievement {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-custom {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: white;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: white;
}

.modal-body {
    color: #a0a0b0;
}

/* Color Picker */
.color-picker {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 5px;
    background: #1a1a2e;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

/* Badge Grid in Admin */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.badge-grid-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.badge-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.badge-grid-item .badge-preview {
    margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .badge-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}
/* ── Extra profile chip variants ───────────────────────────────── */
.profile-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.12);
    color: #e5e7eb;
}
.profile-badge-chip.custom {
    border-color: rgba(225, 6, 0, 0.4);
    background: rgba(225, 6, 0, 0.12);
}
.profile-badge-chip.outlined {
    background: transparent;
    border-width: 1.5px;
}
.profile-badge-chip.glow {
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
}
.profile-badge-chip.compact {
    padding: 2px 8px;
    font-size: 0.7rem;
}
.profile-badge-chip.square {
    border-radius: 8px;
}
.badge-staff { background: linear-gradient(135deg, #8b5cf6, #4c1d95); }
.badge-donor { background: linear-gradient(135deg, #ef4444, #991b1b); }
.badge-event { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.badge-gaming { background: linear-gradient(135deg, #22c55e, #166534); }
.badge-community { background: linear-gradient(135deg, #f97316, #9a3412); }
.badge-special { background: linear-gradient(135deg, #e10600, #7f1d1d); }

.profile-badge.hex {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border-radius: 0;
    padding: 10px 18px;
}
.profile-badge.ribbon {
    border-radius: 4px 16px 16px 4px;
    padding-left: 10px;
}
