/* Visitor Counter Styles */
.visitor-counter-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInUp 0.6s ease-out;
}

.visitor-counter-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 280px;
    position: relative;
    overflow: hidden;
}

.visitor-counter-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

.visitor-icon {
    color: #28a745;
    font-size: 18px;
    flex-shrink: 0;
}

.visitor-info {
    flex: 1;
}

.visitor-text {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    line-height: 1.2;
    display: block;
}

.visitor-total {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.visitor-pulse {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    transform: translateY(-50%);
}

/* Inline Counter */
.visitor-counter-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.visitor-counter-inline .visitor-counter-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 6px;
}

.visitor-counter-inline .visitor-icon {
    font-size: 14px;
    color: #28a745;
}

.visitor-counter-inline .visitor-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.visitor-counter-inline .visitor-total {
    font-size: 11px;
    color: #999;
}

/* Footer Counter - Modern Design */
.visitor-counter-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 8px;
    margin-top: 10px;
}

.visitor-counter-footer .visitor-counter-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: none;
}

.visitor-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.stat-item {
    text-align: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 55px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.stat-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-active 2s infinite;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.visitor-message {
    display: none;
}

.visitor-message i {
    color: #fbbf24;
    font-size: 10px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes pulse-active {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes heartbeat {

    0%,
    50%,
    100% {
        transform: scale(1);
    }

    25%,
    75% {
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .visitor-counter-floating {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .visitor-counter-content {
        max-width: none;
        padding: 10px 14px;
    }

    .visitor-text {
        font-size: 12px;
    }

    .visitor-total {
        font-size: 9px;
    }

    .visitor-stats {
        gap: 8px;
    }

    .stat-item {
        min-width: 60px;
        padding: 8px 12px;
    }

    .stat-number {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .visitor-counter-footer {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .visitor-stats {
        gap: 8px;
    }

    .stat-item {
        min-width: 45px;
        padding: 4px 6px;
    }

    .visitor-message {
        font-size: 11px;
        text-align: center;
        flex-direction: row;
        gap: 3px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .visitor-counter-content {
        background: rgba(33, 37, 41, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .visitor-text {
        color: #f8f9fa;
    }

    .visitor-total {
        color: #adb5bd;
    }

    .stat-item {
        background: rgba(33, 37, 41, 0.8);
        border-color: rgba(40, 167, 69, 0.2);
    }

    .stat-label {
        color: #adb5bd;
    }

    .visitor-message {
        color: #f8f9fa;
    }
}