/* PDF Listing Page Styles */

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pdf-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pdf-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    border-color: #b91c1c;
}

.pdf-icon {
    color: #dc2626;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.pdf-content {
    flex: 1;
    min-width: 0;
}

.pdf-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.pdf-filename {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
    word-break: break-word;
}

.pdf-filename:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.no-pdfs-found {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-pdfs-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-pdfs-found h3 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.no-pdfs-found p {
    color: #6b7280;
    font-size: 0.9rem;
}

.pdf-pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0 2rem 0;
}

.pdf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 40px;
    font-size: 0.9rem;
}

.pdf-pagination .page-numbers:hover,
.pdf-pagination .page-numbers.current {
    background-color: #b91c1c;
    color: white;
    border-color: #b91c1c;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* RTL Support */
[dir="rtl"] .pdf-grid {
    direction: rtl;
}

[dir="rtl"] .pdf-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pdf-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .pdf-title {
        font-size: 0.9rem;
    }
    
    .pdf-filename {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pdf-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .pdf-icon {
        width: 20px;
        height: 20px;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
}
