/* Breeze Blog - Main Styles */

/* Custom line-clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Search results grid animations */
.search-result-item {
    transition: all 0.2s ease-in-out;
}

.search-result-item:hover {
    transform: translateY(-2px);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

/* Pagination styles */
.pagination-btn {
    transition: all 0.2s ease-in-out;
}

.pagination-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pagination-btn:disabled {
    transform: none;
    box-shadow: none;
}

/* Pagination responsive design */
@media (max-width: 640px) {
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    #pageNumbers {
        display: none;
    }
    
    .pagination-btn span {
        display: none;
    }
}

/* Pagination loading animation */
.pagination-loading {
    position: relative;
    overflow: hidden;
}

.pagination-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: pagination-shimmer 1.5s infinite;
}

@keyframes pagination-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-gray-50 {
        background: white !important;
    }
    
    /* Hide pagination in print */
    #pagination {
        display: none !important;
    }
}
