/* Simple Visitor Counter - Floating Button Styles */

.svc-counter-button {
    position: fixed;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.svc-counter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.svc-counter-button:active,
#svc-counter.svc-touch-active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* Position variants */
.svc-counter-button.svc-top {
    top: 20px;
}

.svc-counter-button.svc-middle {
    top: 50%;
    transform: translateY(-50%);
}

.svc-counter-button.svc-middle:hover {
    transform: translateY(-50%) translateY(-2px);
}

.svc-counter-button.svc-bottom {
    bottom: 20px;
}

/* Icon and text styling */
.svc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.svc-icon svg {
    display: block;
}

.svc-text {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .svc-counter-button {
        right: 15px;
        padding: 10px 14px;
        gap: 6px;
        font-size: 13px;
    }
    
    .svc-icon {
        width: 16px;
        height: 16px;
    }
    
    .svc-text {
        font-size: 13px;
    }
    
    .svc-counter-button.svc-top {
        top: 15px;
    }
    
    .svc-counter-button.svc-bottom {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .svc-counter-button {
        right: 10px;
        padding: 8px 12px;
        gap: 4px;
        font-size: 12px;
    }
    
    .svc-icon {
        width: 14px;
        height: 14px;
    }
    
    .svc-text {
        font-size: 12px;
    }
    
    .svc-counter-button.svc-top {
        top: 10px;
    }
    
    .svc-counter-button.svc-bottom {
        bottom: 10px;
    }
}

/* Touch-friendly for mobile */
@media (hover: none) and (pointer: coarse) {
    .svc-counter-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .svc-counter-button:hover {
        transform: none;
    }
    
    .svc-counter-button:active {
        transform: scale(0.95);
    }
}

/* Animation for page load */
@keyframes svc-fade-in {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.svc-counter-button {
    animation: svc-fade-in 0.5s ease-out;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .svc-counter-button {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .svc-counter-button,
    .svc-counter-button:hover,
    .svc-counter-button:active {
        transition: none;
        animation: none;
    }
}
