/* Bootstrap Stats CSS - Compatible with Bootstrap Icons */

/* Base styles for Bootstrap stats */
.bootstrap-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin: 1rem 0;
    display: inline-block;
    min-width: 250px;
    vertical-align: top;
}

/* Animated stats */
.bootstrap-stat-card.stat-animated {
    opacity: 0;
    transform: translateY(30px);
    animation: bootstrapStatFadeInUp 0.8s ease-out forwards;
}

/* Hover effects */
.bootstrap-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.bootstrap-stat-card:hover::before {
    left: 100%;
}

.bootstrap-stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Bootstrap Icon styling */
.bootstrap-stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.bootstrap-stat-icon i {
    font-size: 35px;
    color: white;
    transition: transform 0.3s ease;
    line-height: 1;
}

.bootstrap-stat-card:hover .bootstrap-stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.bootstrap-stat-card:hover .bootstrap-stat-icon i {
    transform: scale(1.1);
}

/* Number styling */
.bootstrap-stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.bootstrap-stat-card:hover .bootstrap-stat-number {
    transform: scale(1.05);
}

/* Label styling */
.bootstrap-stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description styling */
.bootstrap-stat-description {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.4;
}

.bootstrap-stat-card:hover .bootstrap-stat-label {
    color: #667eea;
    transition: color 0.3s ease;
}

.bootstrap-stat-card:hover .bootstrap-stat-description {
    color: #4a5568;
    transition: color 0.3s ease;
}

/* Size variations */
.bootstrap-stat-card.stat-size-small {
    padding: 1.5rem 1rem;
    min-width: 200px;
}

.bootstrap-stat-card.stat-size-small .bootstrap-stat-icon {
    width: 60px;
    height: 60px;
}

.bootstrap-stat-card.stat-size-small .bootstrap-stat-icon i {
    font-size: 28px;
}

.bootstrap-stat-card.stat-size-small .bootstrap-stat-number {
    font-size: 2.5rem;
}

.bootstrap-stat-card.stat-size-small .bootstrap-stat-label {
    font-size: 1rem;
}

.bootstrap-stat-card.stat-size-large {
    padding: 3rem 2rem;
    min-width: 300px;
}

.bootstrap-stat-card.stat-size-large .bootstrap-stat-icon {
    width: 90px;
    height: 90px;
}

.bootstrap-stat-card.stat-size-large .bootstrap-stat-icon i {
    font-size: 45px;
}

.bootstrap-stat-card.stat-size-large .bootstrap-stat-number {
    font-size: 4rem;
}

.bootstrap-stat-card.stat-size-large .bootstrap-stat-label {
    font-size: 1.3rem;
}

/* Color schemes */
.bootstrap-stat-card.stat-color-blue .bootstrap-stat-icon {
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

.bootstrap-stat-card.stat-color-blue .bootstrap-stat-number {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bootstrap-stat-card.stat-color-blue:hover .bootstrap-stat-label {
    color: #3182ce;
}

.bootstrap-stat-card.stat-color-green .bootstrap-stat-icon {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.bootstrap-stat-card.stat-color-green .bootstrap-stat-number {
    background: linear-gradient(135deg, #38a169, #2f855a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bootstrap-stat-card.stat-color-green:hover .bootstrap-stat-label {
    color: #38a169;
}

.bootstrap-stat-card.stat-color-orange .bootstrap-stat-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.bootstrap-stat-card.stat-color-orange .bootstrap-stat-number {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bootstrap-stat-card.stat-color-orange:hover .bootstrap-stat-label {
    color: #ed8936;
}

.bootstrap-stat-card.stat-color-purple .bootstrap-stat-icon {
    background: linear-gradient(135deg, #805ad5, #6b46c1);
}

.bootstrap-stat-card.stat-color-purple .bootstrap-stat-number {
    background: linear-gradient(135deg, #805ad5, #6b46c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bootstrap-stat-card.stat-color-purple:hover .bootstrap-stat-label {
    color: #805ad5;
}

.bootstrap-stat-card.stat-color-red .bootstrap-stat-icon {
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

.bootstrap-stat-card.stat-color-red .bootstrap-stat-number {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bootstrap-stat-card.stat-color-red:hover .bootstrap-stat-label {
    color: #e53e3e;
}

/* Custom color support */
.bootstrap-stat-card.stat-custom-color .bootstrap-stat-icon {
    background: var(--custom-color, linear-gradient(135deg, #667eea, #764ba2));
}

.bootstrap-stat-card.stat-custom-color .bootstrap-stat-number {
    background: var(--custom-color, linear-gradient(135deg, #667eea, #764ba2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bootstrap-stat-card.stat-custom-color:hover .bootstrap-stat-label {
    color: var(--custom-color, #667eea);
}

/* Custom background and text colors */
.bootstrap-stat-card[style*="--custom-bg"] {
    background: var(--custom-bg);
}

.bootstrap-stat-card[style*="--custom-text"] .bootstrap-stat-label,
.bootstrap-stat-card[style*="--custom-text"] .bootstrap-stat-description {
    color: var(--custom-text);
}

/* Bootstrap Stats Container Styles */
.bootstrap-stats-container {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bootstrap-stats-container.stats-bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bootstrap-stats-container.stats-bg-solid {
    background: #f7fafc;
}

.bootstrap-stats-container.stats-bg-transparent {
    background: transparent;
}

.bootstrap-stats-container.stats-custom-bg {
    background: var(--container-bg, #f7fafc);
}

.bootstrap-stats-container-inner {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
}

.bootstrap-stats-container-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: bootstrapStatFadeInUp 1s ease-out 0.2s forwards;
}

.bootstrap-stats-container-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(20px);
    animation: bootstrapStatFadeInUp 1s ease-out 0.4s forwards;
}

.bootstrap-stats-container.stats-bg-gradient .bootstrap-stats-container-title,
.bootstrap-stats-container.stats-bg-gradient .bootstrap-stats-container-subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bootstrap-stats-container.stats-bg-solid .bootstrap-stats-container-title,
.bootstrap-stats-container.stats-bg-transparent .bootstrap-stats-container-title,
.bootstrap-stats-container.stats-bg-solid .bootstrap-stats-container-subtitle,
.bootstrap-stats-container.stats-bg-transparent .bootstrap-stats-container-subtitle {
    color: var(--container-text, #2d3748);
}

/* Grid layouts */
.bootstrap-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.bootstrap-stats-container.stats-layout-grid .bootstrap-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.bootstrap-stats-container.stats-layout-flex .bootstrap-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.bootstrap-stats-container.stats-layout-inline .bootstrap-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.bootstrap-stats-container.stats-layout-inline .bootstrap-stat-card {
    min-width: 200px;
    margin: 0;
}

/* Column controls */
.bootstrap-stats-container.stats-columns-1 .bootstrap-stats-grid {
    grid-template-columns: 1fr;
}

.bootstrap-stats-container.stats-columns-2 .bootstrap-stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.bootstrap-stats-container.stats-columns-3 .bootstrap-stats-grid {
    grid-template-columns: repeat(3, 1fr);
}

.bootstrap-stats-container.stats-columns-4 .bootstrap-stats-grid {
    grid-template-columns: repeat(4, 1fr);
}

.bootstrap-stats-container.stats-columns-5 .bootstrap-stats-grid {
    grid-template-columns: repeat(5, 1fr);
}

.bootstrap-stats-container.stats-columns-6 .bootstrap-stats-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* Gap controls */
.bootstrap-stats-container.stats-gap-small .bootstrap-stats-grid {
    gap: 1rem;
}

.bootstrap-stats-container.stats-gap-normal .bootstrap-stats-grid {
    gap: 2rem;
}

.bootstrap-stats-container.stats-gap-large .bootstrap-stats-grid {
    gap: 3rem;
}

/* Alignment */
.bootstrap-stats-container.stats-align-left {
    text-align: left;
}

.bootstrap-stats-container.stats-align-center {
    text-align: center;
}

.bootstrap-stats-container.stats-align-right {
    text-align: right;
}

/* Pulse animation for completed counting */
.bootstrap-stat-number.stat-pulse {
    animation: bootstrapStatPulse 0.6s ease-in-out;
}

/* Icon browser styles */
.bootstrap-icon-browser {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.bootstrap-icon-browser h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

/* Animations */
@keyframes bootstrapStatFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bootstrapStatPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bootstrapStatRipple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .bootstrap-stats-container-inner {
        padding: 0 1rem;
    }
    
    .bootstrap-stats-container-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .bootstrap-stats-container-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .bootstrap-stats-container.stats-layout-grid .bootstrap-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bootstrap-stats-container.stats-columns-2 .bootstrap-stats-grid,
    .bootstrap-stats-container.stats-columns-3 .bootstrap-stats-grid,
    .bootstrap-stats-container.stats-columns-4 .bootstrap-stats-grid,
    .bootstrap-stats-container.stats-columns-5 .bootstrap-stats-grid,
    .bootstrap-stats-container.stats-columns-6 .bootstrap-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bootstrap-stat-card {
        min-width: auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 1.5rem;
    }
    
    .bootstrap-stat-number {
        font-size: 2.5rem;
    }
    
    .bootstrap-stat-card.stat-size-large .bootstrap-stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .bootstrap-stats-container-title {
        font-size: 1.8rem;
    }
    
    .bootstrap-stats-container-subtitle {
        font-size: 0.9rem;
    }
    
    .bootstrap-stat-card {
        padding: 1.5rem 1rem;
    }
    
    .bootstrap-stat-number {
        font-size: 2rem;
    }
    
    .bootstrap-stat-label {
        font-size: 1rem;
    }
    
    .bootstrap-stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .bootstrap-stat-icon i {
        font-size: 28px;
    }
}

/* WordPress editor compatibility */
.wp-block-shortcode .bootstrap-stat-card {
    margin: 1rem;
}

/* Print styles */
@media print {
    .bootstrap-stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .bootstrap-stat-card::before {
        display: none;
    }
    
    .bootstrap-stats-container {
        background: white !important;
    }
    
    .bootstrap-stats-container-title,
    .bootstrap-stats-container-subtitle {
        color: black !important;
        text-shadow: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bootstrap-stat-card {
        border: 2px solid #000;
        background: #fff;
    }
    
    .bootstrap-stat-icon {
        background: #000;
    }
    
    .bootstrap-stat-number {
        background: #000;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bootstrap-stat-card,
    .bootstrap-stat-icon,
    .bootstrap-stat-icon i,
    .bootstrap-stat-number,
    .bootstrap-stats-container-title,
    .bootstrap-stats-container-subtitle {
        animation: none;
        transition: none;
    }
    
    .bootstrap-stat-card.stat-animated {
        opacity: 1;
        transform: none;
    }
    
    .bootstrap-stats-container-title,
    .bootstrap-stats-container-subtitle {
        opacity: 1;
        transform: none;
    }
}

