/**
 * Neo Coins Badge System Styles
 */

/* ============================================
   BADGE ZONE CONTAINER
   ============================================ */

.neo-badge-zone {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 8px 0;
}

/* Badge Sizes */
.neo-badge-zone.badge-size-small {
    gap: 4px;
}

.neo-badge-zone.badge-size-large {
    gap: 8px;
}

/* Image-only mode (no text/colors) */
.neo-badge-zone.image-only {
    gap: 6px;
}

.neo-badge-zone.image-only .neo-badge {
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: default;
}

/* When image exists, hide text */
.neo-badge-zone.image-only .neo-badge.has-image .badge-text {
    display: none;
}

/* When no image, show text badge normally */
.neo-badge-zone.image-only .neo-badge.no-image {
    /* Allow inline styles to apply for colored text badges */
}

.neo-badge-zone.image-only .neo-badge:hover {
    transform: none;
    box-shadow: none;
}

.neo-badge-zone.image-only .neo-badge img {
    width: 18px;
    height: 18px;
}

/* ============================================
   INDIVIDUAL BADGES
   ============================================ */

.neo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: help;
    position: relative;
}

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

/* Small Size */
.badge-size-small .neo-badge {
    padding: 3px 8px;
    font-size: 11px;
}

/* Large Size */
.badge-size-large .neo-badge {
    padding: 6px 12px;
    font-size: 13px;
}

/* ============================================
   BADGE TYPES - COLORS
   ============================================ */

/* Verified Badge */
.neo-badge.badge-verified {
    background: linear-gradient(135deg, #dcfce7 0%, #a7f3d0 100%);
    color: #166534;
    border: 1px solid #86efac;
}

/* Promoted Badge */
.neo-badge.badge-promoted {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Highlighted Badge */
.neo-badge.badge-highlighted {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Trending Badge */
.neo-badge.badge-trending {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Audited Badge */
.neo-badge.badge-audited {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}

/* KYC Badge */
.neo-badge.badge-kyc {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    color: #0e7490;
    border: 1px solid #67e8f9;
}

/* Locked Badge */
.neo-badge.badge-locked {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #9a3412;
    border: 1px solid #fb923c;
}

/* New Badge */
.neo-badge.badge-new {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9f1239;
    border: 1px solid #f9a8d4;
}

/* ============================================
   DARK THEME OVERRIDES
   ============================================ */

body.dark-theme .neo-badge {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

body.dark-theme .neo-badge.badge-verified {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: #10b981;
}

body.dark-theme .neo-badge.badge-promoted {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border-color: #fbbf24;
}

body.dark-theme .neo-badge.badge-highlighted {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: #ef4444;
}

body.dark-theme .neo-badge.badge-trending {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: #3b82f6;
}

body.dark-theme .neo-badge.badge-audited {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border-color: #8b5cf6;
}

body.dark-theme .neo-badge.badge-kyc {
    background: rgba(14, 116, 144, 0.18);
    color: #67e8f9;
    border-color: #22d3ee;
}

body.dark-theme .neo-badge.badge-locked {
    background: rgba(251, 146, 60, 0.15);
    color: #fdba74;
    border-color: #fb923c;
}

body.dark-theme .neo-badge.badge-new {
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
    border-color: #ec4899;
}

/* ============================================
   BADGE WITH IMAGES
   ============================================ */

.neo-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.badge-size-small .neo-badge img {
    width: 14px;
    height: 14px;
}

.badge-size-large .neo-badge img {
    width: 18px;
    height: 18px;
}

/* ============================================
   BADGE ICON (if no image)
   ============================================ */

.neo-badge .badge-icon {
    font-size: 14px;
    line-height: 1;
}

.neo-badge .badge-text {
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ============================================
   BADGE TOOLTIPS
   ============================================ */

.neo-badge::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: #1f2937;
    color: white;
    font-size: 11px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 5px;
    z-index: 1000;
}

.neo-badge::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.neo-badge:hover::after,
.neo-badge:hover::before {
    opacity: 1;
}

/* ============================================
   PROMOTED LIST STYLING
   ============================================ */

.neo-promoted-list {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.promoted-list-title {
    font-size: 28px;
    margin: 0 0 25px 0;
    color: #111827;
    text-align: center;
    border-bottom: 3px solid #fbbf24;
    padding-bottom: 15px;
}

.promoted-tokens {
    display: grid;
    gap: 20px;
}

.promoted-token-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s;
}

.promoted-token-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
    transform: translateX(5px);
}

.promoted-token-logo {
    flex-shrink: 0;
}

.promoted-token-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.placeholder-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.promoted-token-info {
    flex: 1;
}

.promoted-token-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #111827;
}

.promoted-token-symbol {
    color: #6b7280;
    font-size: 14px;
    margin-right: 10px;
}

.promoted-token-votes {
    color: #10b981;
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
}

.promoted-token-actions {
    flex-shrink: 0;
}

.btn-view-promoted {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view-promoted:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   BADGE IN TOKEN TITLE
   ============================================ */

.token-item-name .neo-badge-zone,
.token-name .neo-badge-zone,
h1 .neo-badge-zone {
    margin-left: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .neo-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .neo-badge img {
        width: 14px;
        height: 14px;
    }
    
    .promoted-token-card {
        flex-direction: column;
        text-align: center;
    }
    
    .promoted-token-logo {
        margin: 0 auto;
    }
    
    .promoted-token-actions {
        width: 100%;
    }
    
    .btn-view-promoted {
        width: 100%;
        display: block;
    }
}

/* ============================================
   ANIMATION
   ============================================ */

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.neo-badge.badge-new {
    animation: badgePulse 2s infinite;
}

.neo-badge.badge-trending {
    animation: badgePulse 3s infinite;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .neo-badge::after,
    .neo-badge::before {
        display: none !important;
    }
}