/* OneClick Analytics Pro - Frontend Styles */

/* Visitor Count Styles */
.ocap-visitor-count,
.ocap-realtime-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ocap-icon {
    font-size: 20px;
}

.ocap-pulse {
    animation: ocap-pulse-animation 2s infinite;
}

@keyframes ocap-pulse-animation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ocap-label {
    font-weight: 500;
}

.ocap-count {
    font-weight: 700;
    font-size: 18px;
}

/* Top Posts Styles */
.ocap-top-posts {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ocap-top-posts h3 {
    margin: 0 0 20px;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.ocap-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ocap-post-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ocap-post-item:last-child {
    border-bottom: none;
}

.ocap-thumbnail {
    flex-shrink: 0;
}

.ocap-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.ocap-post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ocap-post-info a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ocap-post-info a:hover {
    color: #667eea;
}

.ocap-views {
    color: #666;
    font-size: 14px;
}

/* Stats Widget Styles */
.ocap-stats-widget {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ocap-stats-widget h3 {
    margin: 0 0 24px;
    color: #333;
    font-size: 22px;
    text-align: center;
}

.ocap-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.ocap-stat-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ocap-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.ocap-stat-realtime {
    border-left-color: #28a745;
}

.ocap-stat-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.ocap-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ocap-stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.ocap-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ocap-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ocap-post-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Style Variations */
.ocap-style-minimal {
    background: transparent;
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.ocap-style-compact {
    padding: 8px 16px;
    font-size: 14px;
}

.ocap-style-large {
    padding: 20px 30px;
    font-size: 20px;
}
