/* ========================================
   TNC Visitor Stats - Frontend CSS
   Shortcode Styles (Widget Style)
   ======================================== */

.wvs-stats-box {
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 20px 0;
 
}

.wvs-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wvs-item {
    display: flex;
    align-items: center;
    padding: 3px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, transparent 0%, rgba(34, 113, 177, 0.03) 100%);
}

.wvs-item:hover {
    background: linear-gradient(90deg, transparent 0%, rgba(34, 113, 177, 0.08) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wvs-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 18px;
    flex-shrink: 0;
}

.wvs-label {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
  
}

.wvs-value {
    font-weight: 700;
    font-size: 13px;

    margin-left: 10px;
}

/* Loading animation */
.wvs-stats-box[data-loading="true"] .wvs-value {
    opacity: 0.5;
}

.wvs-loading-dot {
    display: inline-block;
    animation: wvs-pulse 1.5s ease-in-out infinite;
    font-size: 18px;
    color: #adb5bd;
}

@keyframes wvs-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Icon Colors & Gradients */
.wvs-online {
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.1) 100%);
}

.wvs-online i {
    color: #667eea;
}

.wvs-today {
    background: linear-gradient(90deg, transparent 0%, rgba(245, 87, 108, 0.1) 100%);
}

.wvs-today i {
    color: #f5576c;
}

.wvs-yesterday {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 242, 254, 0.1) 100%);
}

.wvs-yesterday i {
    color: #00f2fe;
}

.wvs-week {
    background: linear-gradient(90deg, transparent 0%, rgba(67, 233, 123, 0.1) 100%);
}

.wvs-week i {
    color: #43e97b;
}

.wvs-month {
    background: linear-gradient(90deg, transparent 0%, rgba(250, 112, 154, 0.1) 100%);
}

.wvs-month i {
    color: #fa709a;
}

.wvs-total {
    background: linear-gradient(90deg, transparent 0%, rgba(48, 207, 208, 0.1) 100%);
}

.wvs-total i {
    color: #30cfd0;
}

/* Style: Compact */
.wvs-style-compact {
    max-width: 400px;
    padding: 15px;
}

.wvs-style-compact .wvs-item {
    padding: 10px;
    margin-bottom: 6px;
}

.wvs-style-compact .wvs-item i {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.wvs-style-compact .wvs-label {
    font-size: 13px;
}

.wvs-style-compact .wvs-value {
    font-size: 16px;
}

/* Style: Minimal */
.wvs-style-minimal {
    box-shadow: none;
    border: 1px solid #e0e0e0;
    padding: 15px;
}

.wvs-style-minimal .wvs-item {
    background: transparent;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    margin-bottom: 0;
}

.wvs-style-minimal .wvs-item:last-child {
    border-bottom: none;
}

.wvs-style-minimal .wvs-item:hover {
    background: #f8f9fa;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .wvs-stats-box {
        padding: 15px;
    }
    
    .wvs-item {
        padding: 10px;
    }
    
    .wvs-label {
        font-size: 13px;
    }
    
    .wvs-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wvs-stats-box {
        max-width: 100%;
    }
    
    .wvs-item {
        font-size: 13px;
    }
    
    .wvs-item i {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* Animation on load */
.wvs-stats-box {
    animation: fadeInWidget 0.5s ease-out;
}

.wvs-item {
    animation: wvs-fade-in 0.5s ease-out;
}

.wvs-item:nth-child(1) { animation-delay: 0.05s; }
.wvs-item:nth-child(2) { animation-delay: 0.1s; }
.wvs-item:nth-child(3) { animation-delay: 0.15s; }
.wvs-item:nth-child(4) { animation-delay: 0.2s; }
.wvs-item:nth-child(5) { animation-delay: 0.25s; }
.wvs-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes wvs-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInWidget {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wvs-stats-box {
        background: #1e1e1e;
        color: #e0e0e0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .wvs-item {
        border-color: #333;
    }
    
    .wvs-item:hover {
        background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.15) 100%);
    }
    
    .wvs-label {
        color: #e0e0e0;
    }
    
    .wvs-value {
        color: #4a9eff;
    }
    
    .wvs-style-minimal {
        border-color: #333;
    }
    
    .wvs-style-minimal .wvs-item {
        border-color: #333;
    }
}