/* Modern Counter Widget Styles */

.modern-counter {
    position: relative;
    padding: 40px 30px;
    border-radius: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modern-counter::before {
    display: none;
}

.modern-counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Counter Icon */
.counter-icon {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.counter-icon i,
.counter-icon svg {
    font-size: 40px;
    color: #333333;
    transition: all 0.3s ease;
}

.modern-counter:hover .counter-icon i,
.modern-counter:hover .counter-icon svg {
    transform: scale(1.1);
    color: #667eea;
}

/* Counter Number */
.counter-number-wrapper {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.counter-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #333333;
    text-shadow: none;
    font-family: 'Asty', sans-serif;
    display: block;
    position: relative;
}

.counter-value {
    color: #333333;
    font-weight: 800;
}

.counter-prefix,
.counter-suffix {
    font-size: 0.8em;
    opacity: 0.9;
}

/* Counter Title */
.counter-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 15px 0 10px 0;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.4s forwards;
    font-family: 'Asty', sans-serif;
}

/* Counter Description */
.counter-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

/* Circle Progress Style */
.counter-style-circle .modern-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.counter-circle-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.counter-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    transition: all 0.3s ease;
}

.counter-circle-track {
    transition: stroke 0.3s ease;
}

.counter-circle-progress {
    transition: stroke-dashoffset 0.3s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
}

.counter-circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 80%;
}

.counter-style-circle .counter-icon {
    margin-bottom: 5px;
    order: -1;
}

.counter-style-circle .counter-icon i,
.counter-style-circle .counter-icon svg {
    font-size: 24px;
}

.counter-style-circle .counter-number-wrapper {
    margin-bottom: 0;
}

.counter-style-circle .counter-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.counter-style-circle .counter-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.counter-style-circle .counter-description {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
}

/* Circle Progress Hover Effect */
.counter-style-circle:hover .counter-circle-svg {
    transform: rotate(-90deg) scale(1.05);
}

.counter-style-circle:hover .counter-circle-progress {
    filter: drop-shadow(0 0 8px currentColor);
}

/* Circle Progress Responsive */
@media (max-width: 768px) {
    .counter-circle-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .counter-style-circle .counter-number {
        font-size: 24px;
    }
    
    .counter-style-circle .counter-icon i,
    .counter-style-circle .counter-icon svg {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .counter-circle-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .counter-style-circle .counter-number {
        font-size: 20px;
    }
    
    .counter-style-circle .counter-title {
        font-size: 14px;
    }
    
    .counter-style-circle .counter-icon i,
    .counter-style-circle .counter-icon svg {
        font-size: 18px;
    }
}

/* Style Variations */

/* Simple Style (Default) */
.counter-style-simple .modern-counter {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 40px 30px;
}

/* Modern Card Style */
.counter-style-modern .modern-counter {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.counter-style-modern .modern-counter:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

/* Minimal Style */
.counter-style-minimal .modern-counter {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 20px 15px;
    text-align: center;
}

.counter-style-minimal .counter-icon {
    margin-bottom: 15px;
}

.counter-style-minimal .counter-number {
    font-size: 42px;
    font-weight: 700;
}

.counter-style-minimal .counter-title {
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0 5px 0;
}

.counter-style-minimal .counter-description {
    font-size: 13px;
    opacity: 0.7;
}

/* Gradient Style */
.counter-style-gradient .modern-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    backdrop-filter: none;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.counter-style-gradient .counter-number,
.counter-style-gradient .counter-value {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.counter-style-gradient .counter-title {
    color: #ffffff !important;
}

.counter-style-gradient .counter-description {
    color: rgba(255, 255, 255, 0.9) !important;
}

.counter-style-gradient .counter-icon i,
.counter-style-gradient .counter-icon svg {
    color: #ffffff !important;
}

.counter-style-gradient .modern-counter:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    transform: translateY(-5px);
}

/* Glass Style */
.counter-style-glass .modern-counter {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
}

.counter-style-glass .counter-icon i,
.counter-style-glass .counter-icon svg {
    color: rgba(51, 51, 51, 0.9) !important;
}

.counter-style-glass .counter-number,
.counter-style-glass .counter-value {
    color: #333333 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.counter-style-glass .modern-counter:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 12px 40px rgba(31, 38, 135, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Neon Style */
.counter-style-neon .modern-counter {
    background: #0a0a0a;
    border: 1px solid #00ffff;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: none;
    border-radius: 20px;
    padding: 40px 30px;
}

.counter-style-neon .counter-icon i,
.counter-style-neon .counter-icon svg {
    color: #00ffff !important;
    text-shadow: 0 0 10px #00ffff;
}

.counter-style-neon .counter-number,
.counter-style-neon .counter-value {
    color: #ffffff !important;
    text-shadow: 0 0 20px #00ffff;
}

.counter-style-neon .counter-title {
    color: #ffffff !important;
}

.counter-style-neon .counter-description {
    color: rgba(255, 255, 255, 0.8) !important;
}

.counter-style-neon .modern-counter:hover {
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.counter-animating .counter-value {
    animation: countUp 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-counter {
        padding: 30px 20px;
    }
    
    .counter-number {
        font-size: 36px;
    }
    
    .counter-title {
        font-size: 16px;
    }
    
    .counter-description {
        font-size: 13px;
    }
    
    .counter-icon i,
    .counter-icon svg {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .modern-counter {
        padding: 25px 15px;
    }
    
    .counter-number {
        font-size: 32px;
    }
    
    .counter-title {
        font-size: 14px;
    }
    
    .counter-icon i,
    .counter-icon svg {
        font-size: 28px;
    }
}

/* Loading State */
.counter-loading .counter-value {
    opacity: 0.5;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Hover Effects for Different Styles */
.counter-style-simple:hover .counter-value,
.counter-style-minimal:hover .counter-value {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.counter-style-modern:hover .counter-value,
.counter-style-gradient:hover .counter-value,
.counter-style-glass:hover .counter-value {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.counter-style-neon:hover .counter-value {
    text-shadow: 0 0 30px #00ffff;
    transition: text-shadow 0.3s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .modern-counter,
    .counter-icon i,
    .counter-icon svg,
    .counter-value {
        transition: none;
        animation: none;
        transform: none;
    }
    
    .modern-counter:hover {
        transform: none;
    }
    
    .counter-icon,
    .counter-number-wrapper,
    .counter-title,
    .counter-description {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
