/* CatFolders Document Gallery - View Count Styles */

/* View Count Display */
.cf-download-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.cf-view-icon {
    font-size: 16px;
    opacity: 0.7;
    color: #2271b1;
}

.cf-view-number {
    font-weight: 600;
    color: #2271b1;
    min-width: 20px;
    text-align: right;
}

/* Tracking State */
.cf-tracking {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.cf-tracking::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2271b1;
    border-radius: 50%;
    animation: cf-spin 1s linear infinite;
    z-index: 10;
}

@keyframes cf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Effects */
.cf-track-view:hover .cf-view-number {
    color: #135e96;
}

.cf-track-view:hover .cf-view-icon {
    opacity: 1;
}

/* Table Specific Styles */
.cf-table .cf-download-count {
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

.cf-table tr:hover .cf-download-count {
    background: #e9ecef;
}

/* Grid View Styles */
.cf-grid-view .cf-download-count {
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(34, 113, 177, 0.1);
    border-radius: 12px;
    font-size: 12px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cf-download-count {
        font-size: 12px;
        gap: 4px;
    }
    
    .cf-view-icon {
        font-size: 14px;
    }
    
    .cf-view-number {
        min-width: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cf-download-count {
        color: #e0e0e0;
    }
    
    .cf-table .cf-download-count {
        background: #3a3a3a00;
    }
    
    .cf-table tr:hover .cf-download-count {
        background: #4a4a4a00;
    }
    
    .cf-grid-view .cf-download-count {
        background: rgba(34, 113, 177, 0.2);
    }
}

/* Print Styles */
@media print {
    .cf-download-count {
        background: none !important;
        color: #000 !important;
    }
    
    .cf-view-icon {
        display: none;
    }
    
    .cf-view-number:after {
        content: ' views';
        font-size: 10px;
        color: #666;
    }
} 