/* AI Badge Styles */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.ai-badge {
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-badge:hover {
    transform: scale(1.1) rotate(-5deg);
}

.ai-badge svg {
    width: 100%;
    height: auto;
    max-width: 150px;
}

/* Glass Badge Styles */
.badge-glass {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'VT323', monospace;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.badge-glass::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;
}

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

.badge-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Gradient Glass Variants */
.badge-glass-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.1));
    border-color: rgba(37, 99, 235, 0.3);
}

.badge-glass-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-glass-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-glass-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
}

/* Minimalist Glass Badge */
.badge-glass-minimal {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    border-radius: 4px;
}

[data-theme="dark"] .badge-glass-minimal {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Legacy Badge Styles */
.badge-legacy {
    display: inline-block;
    padding: 9px 9px;
    margin: 4px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
}

/* Web 1.0 Style */
.badge-web1 {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000000;
    font-family: 'Arial', sans-serif;
    box-shadow: 1px 1px 0 #000000;
}

/* Terminal Style */
.badge-terminal {
    background: #000000;
    color: #00ff00;
    border: 1px solid #00ff00;
    font-family: 'VT323', monospace;
    text-shadow: 0 0 5px #00ff00;
    animation: terminal-blink 2s infinite;
}

@keyframes terminal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Neon Style */
.badge-neon {
    background: transparent;
    color: #ff00ff;
    border: 2px solid #ff00ff;
    font-family: 'VT323', monospace;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    box-shadow: inset 0 0 10px #ff00ff, 0 0 10px #ff00ff;
    animation: neon-pulse 2s infinite;
}

@keyframes neon-pulse {
    0%, 100% { 
        text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
        box-shadow: inset 0 0 10px #ff00ff, 0 0 10px #ff00ff;
    }
    50% { 
        text-shadow: 0 0 15px #ff00ff, 0 0 25px #ff00ff, 0 0 35px #ff00ff;
        box-shadow: inset 0 0 15px #ff00ff, 0 0 15px #ff00ff;
    }
}

/* Retro Rainbow */
.badge-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 100%;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: rainbow-shift 3s linear infinite;
}

@keyframes rainbow-shift {
    to { background-position: -200% 0; }
}

/* Matrix Style */
.badge-matrix {
    background: #000000;
    color: #00ff41;
    border: 1px solid #00ff41;
    font-family: 'VT323', monospace;
    position: relative;
    overflow: hidden;
}

.badge-matrix::after {
    content: '10101010';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    animation: matrix-rain 2s linear infinite;
}

@keyframes matrix-rain {
    to { transform: translateY(100%); }
}

/* Holographic Effect */
.badge-holographic {
    background: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
    background-size: 400% 400%;
    color: #ffffff;
    font-weight: bold;
    animation: holographic-shift 3s ease infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

/* Glitch Effect */
.badge-glitch {
    position: relative;
    color: var(--text-primary);
    font-family: 'VT323', monospace;
}

.badge-glitch::before,
.badge-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.badge-glitch::before {
    color: #ff00ff;
    animation: glitch-1 0.5s infinite;
    z-index: -1;
}

.badge-glitch::after {
    color: #00ffff;
    animation: glitch-2 0.5s infinite;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

/* Badge size variations */
.badge-sm {
    font-size: 12px;
    padding: 2px 8px;
}

.badge-lg {
    font-size: 20px;
    padding: 12px 24px;
}

/* Badge collections grid */
.badge-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.badge-collection-item {
    background: var(--bg-panel);
    border: 2px solid var(--border-color);
    padding: 16px;
    text-align: center;
}

.badge-collection-item h4 {
    margin: 8px 0;
    color: var(--pixel-primary);
    font-size: 16px;
}

.badge-collection-item .badge-preview {
    margin: 16px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-collection-item .badge-code {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}