/* Post Views Counter Styles */
.bbai-post-views-counter {
    display: inline-block;
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.bbai-post-views-counter.bbai-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.bbai-post-views-counter:not(.bbai-loaded) {
    opacity: 0.5;
}

/* Views and Unique Visitors */
.bbai-views-text,
.bbai-unique-text {
    margin-right: 5px;
}

.bbai-views-count,
.bbai-unique-count {
    font-weight: bold;
    color: #333;
}

.bbai-views-label,
.bbai-unique-label {
    font-weight: normal;
    margin-right: 3px;
}

.bbai-views-icon,
.bbai-unique-icon {
    margin-right: 3px;
    font-size: 16px;
}

/* Error state */
.bbai-error {
    color: #dc3232;
    font-style: italic;
}

/* Refresh button */
.bbai-refresh-views {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    margin-left: 5px;
    padding: 0;
}

.bbai-refresh-views:hover {
    color: #005177;
}

.bbai-refresh-views.bbai-refreshing {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Shortcode Container */
.bbai-post-views-shortcode {
    margin: 10px 0;
    padding: 8px 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.bbai-post-views-shortcode.style-minimal {
    background: none;
    border: none;
    padding: 0;
    margin: 5px 0;
}

.bbai-post-views-shortcode.style-badge {
    background: #0073aa;
    color: white;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 12px;
}

.bbai-post-views-shortcode.style-badge .bbai-views-count,
.bbai-post-views-shortcode.style-badge .bbai-unique-count {
    color: white;
}

/* Format-specific styles */
.bbai-post-views-counter[data-format="icon"] {
    font-size: 16px;
}

.bbai-post-views-counter[data-format="short"] {
    font-size: 12px;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .bbai-post-views-counter {
        font-size: 12px;
    }
    
    .bbai-views-icon,
    .bbai-unique-icon {
        font-size: 14px;
    }
}

/* Dark theme support */
.bbai-post-views-counter.dark-theme {
    color: #ccc;
}

.bbai-post-views-counter.dark-theme .bbai-views-count,
.bbai-post-views-counter.dark-theme .bbai-unique-count {
    color: #fff;
}

.bbai-post-views-counter.dark-theme .bbai-refresh-views {
    color: #4f94d4;
}

/* Loading animation */
.bbai-post-views-counter:not(.bbai-loaded):before {
    content: "Loading...";
    font-style: italic;
    color: #999;
}

/* Auto-append styles for content */
.bbai-post-views-auto {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #777;
}

.bbai-post-views-auto .bbai-post-views-counter {
    margin: 0;
} 