/**
 * Simple Post View Counter - Frontend Styles
 * @package Simple Post View Counter
 * @version 1.0.1
 */

/* Post Views Display */
.simpvc-post-views-display {
    margin: 10px 0 20px 0;
    font-size: 18px;
    color: #888888;
    font-style: italic;
    font-weight: normal;
    line-height: 1.4;
}

.simpvc-views-text {
    color: inherit;
    font-style: inherit;
    font-weight: inherit;
}

/* Meta Views (beside date/author) */
.simpvc-meta-views {
    color: #888888;
    font-style: italic;
    font-size: inherit;
    margin-left: 8px;
}

/* Most Viewed Posts Shortcode */
.simpvc-most-viewed-posts {
    margin: 20px 0;
}

.simpvc-post-item {
    margin-bottom: 15px;
    padding: 15px;
    border-left: 3px solid #0073aa;
    background: #f9f9f9;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.simpvc-post-item:hover {
    background: #f5f5f5;
}

.simpvc-post-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.4;
}

.simpvc-post-item h4 a {
    text-decoration: none;
    color: #0073aa;
    transition: color 0.3s ease;
}

.simpvc-post-item h4 a:hover {
    color: #005177;
    text-decoration: underline;
}

.simpvc-view-count {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    display: block;
    margin-top: 4px;
}

.simpvc-excerpt {
    margin-top: 8px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* Widget Styles */
.simpvc-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.simpvc-widget-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dotted #ddd;
    line-height: 1.4;
}

.simpvc-widget-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.simpvc-widget-list a {
    text-decoration: none;
    color: #333;
    line-height: 1.4;
    display: inline-block;
    transition: color 0.3s ease;
}

.simpvc-widget-list a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.simpvc-count {
    color: #666;
    font-size: 12px;
    font-weight: normal;
    margin-left: 4px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .simpvc-post-views-display {
        color: #aaaaaa;
    }
    
    .simpvc-meta-views {
        color: #aaaaaa;
    }
    
    .simpvc-post-item {
        background: #2a2a2a;
        border-left-color: #4a9eff;
    }
    
    .simpvc-post-item:hover {
        background: #333333;
    }
    
    .simpvc-post-item h4 a {
        color: #4a9eff;
    }
    
    .simpvc-post-item h4 a:hover {
        color: #7bb3ff;
    }
    
    .simpvc-view-count {
        color: #aaaaaa;
    }
    
    .simpvc-excerpt {
        color: #cccccc;
    }
    
    .simpvc-widget-list a {
        color: #ffffff;
    }
    
    .simpvc-widget-list a:hover {
        color: #4a9eff;
    }
    
    .simpvc-count {
        color: #aaaaaa;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .simpvc-post-views-display {
        font-size: 16px;
        margin: 8px 0 16px 0;
    }
    
    .simpvc-post-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .simpvc-post-item h4 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .simpvc-post-views-display {
        font-size: 14px;
    }
    
    .simpvc-post-item {
        padding: 10px;
    }
    
    .simpvc-post-item h4 {
        font-size: 14px;
    }
}

/* RTL Support */
[dir="rtl"] .simpvc-post-item {
    border-left: none;
    border-right: 3px solid #0073aa;
}

[dir="rtl"] .simpvc-meta-views {
    margin-left: 0;
    margin-right: 8px;
}

[dir="rtl"] .simpvc-count {
    margin-left: 0;
    margin-right: 4px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .simpvc-post-views-display {
        color: #000000;
        font-weight: bold;
    }
    
    .simpvc-meta-views {
        color: #000000;
        font-weight: bold;
    }
    
    .simpvc-post-item {
        border-left-width: 4px;
        background: #ffffff;
        border: 1px solid #000000;
    }
    
    .simpvc-view-count {
        color: #000000;
        font-weight: bold;
    }
}

/* Print Styles */
@media print {
    .simpvc-post-views-display,
    .simpvc-meta-views,
    .simpvc-view-count {
        color: #000000;
        font-style: normal;
    }
    
    .simpvc-post-item {
        background: none;
        border: 1px solid #000000;
        page-break-inside: avoid;
    }
}