/**
 * Post View Counter - Frontend Styles
 */

.pvc-view-count {
    display: inline-block;
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

.pvc-view-count:before {
    content: "\1f441";
    margin-right: 5px;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .pvc-view-count {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Theme compatibility */
.entry-content .pvc-view-count,
.post-content .pvc-view-count {
    margin: 15px 0;
}

/* Popular posts widget styles */
.pvc-popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pvc-popular-posts li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.pvc-popular-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pvc-popular-posts .post-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.pvc-popular-posts .post-views {
    font-size: 12px;
    color: #999;
}

/* Inline view count styles */
.pvc-inline-views {
    display: inline;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0 5px;
}

.pvc-inline-views:before {
    content: "(";
}

.pvc-inline-views:after {
    content: ")";
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .pvc-view-count {
        background: #2c3e50;
        color: #ecf0f1;
        border-left-color: #3498db;
    }
    
    .pvc-popular-posts li {
        border-bottom-color: #444;
    }
    
    .pvc-popular-posts .post-views {
        color: #bdc3c7;
    }
}

/* Animation for view count updates */
.pvc-view-count.updated {
    animation: pvc-pulse 0.5s ease-in-out;
}

@keyframes pvc-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Accessibility improvements */
.pvc-view-count[aria-label] {
    cursor: help;
}

/* Print styles */
@media print {
    .pvc-view-count {
        background: none !important;
        border: 1px solid #ccc !important;
        color: #000 !important;
    }
    
    .pvc-view-count:before {
        content: "Views: ";
        font-size: inherit;
    }
}
