/* ================================================
   Numbers Module - Compact Pills Style
   ================================================
   Modern bullet-point pills with pulse animation
   Uses theme outline primary colors
   ================================================ */

/* Reduce section spacing */
.section-numbers {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.section-numbers .section-title {
    margin-bottom: 1rem !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary-normal-bg, #1e293b);
}

.section-numbers .section-title h2 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
}

/* Pill Container */
.numbers-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

/* Individual Pill */
.numbers-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: rgba(37, 99, 235, 0.06);
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Pulse backdrop */
.numbers-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.12);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50px;
}

.numbers-pill:hover::before {
    opacity: 1;
}

/* Active pill styling */
.numbers-pill.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    transform: scale(1.02);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
}

.numbers-pill.active::before {
    opacity: 1;
    animation: pillPulse 1.5s ease-in-out infinite;
}

@keyframes pillPulse {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Bullet dot */
.numbers-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.5);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.numbers-pill.active .pill-dot {
    background: #2563EB;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
    animation: dotPulse 1s ease-in-out infinite;
}

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

/* Number value */
.numbers-pill .pill-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2563EB;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.numbers-pill.active .pill-value {
    color: #1d4ed8;
}

/* Label text */
.numbers-pill .pill-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-secondary-normal-bg, #475569);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* Separator dot between value and label */
.numbers-pill .pill-sep {
    width: 3px;
    height: 3px;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   DARK MODE
   ============================================ */

.dark .numbers-pill,
[data-theme="dark"] .numbers-pill,
.section--dark .numbers-pill {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.2);
}

.dark .numbers-pill.active,
[data-theme="dark"] .numbers-pill.active,
.section--dark .numbers-pill.active {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
}

.dark .numbers-pill .pill-value,
[data-theme="dark"] .numbers-pill .pill-value,
.section--dark .numbers-pill .pill-value {
    color: #60a5fa;
}

.dark .numbers-pill .pill-label,
[data-theme="dark"] .numbers-pill .pill-label,
.section--dark .numbers-pill .pill-label {
    color: rgba(255, 255, 255, 0.7);
}

.dark .numbers-pill .pill-dot,
[data-theme="dark"] .numbers-pill .pill-dot,
.section--dark .numbers-pill .pill-dot {
    background: rgba(96, 165, 250, 0.5);
}

.dark .numbers-pill.active .pill-dot,
[data-theme="dark"] .numbers-pill.active .pill-dot,
.section--dark .numbers-pill.active .pill-dot {
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

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

@media (max-width: 768px) {
    .section-numbers {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .numbers-pills {
        gap: 0.375rem;
    }
    
    .numbers-pill {
        padding: 0.375rem 0.625rem;
        gap: 0.25rem;
    }
    
    .numbers-pill .pill-value {
        font-size: 0.85rem;
    }
    
    .numbers-pill .pill-label {
        font-size: 0.65rem;
    }
    
    .numbers-pill .pill-dot {
        width: 5px;
        height: 5px;
    }
}

@media (max-width: 480px) {
    .numbers-pills {
        gap: 0.3rem;
    }
    
    .numbers-pill {
        padding: 0.3rem 0.5rem;
    }
    
    .numbers-pill .pill-label {
        font-size: 0.6rem;
        letter-spacing: 0.1px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .numbers-pill,
    .numbers-pill::before,
    .numbers-pill .pill-dot {
        animation: none !important;
        transition: none !important;
    }
}


