/* Hansards Plugin Styles */
.hansards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hansards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.hansard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hansard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hansard-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hansard-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hansard-card:hover .hansard-thumbnail img {
    transform: scale(1.05);
}

.hansard-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hansard-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hansard-date {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    margin-top: auto;
}

.hansard-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.hansard-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.hansard-btn-view {
    background: #3b82f6;
    color: white;
}

.hansard-btn-view:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
}

.hansard-btn-download {
    background: #10b981;
    color: white;
}

.hansard-btn-download:hover {
    background: #059669;
    color: white;
    text-decoration: none;
}

/* Pagination Styles */
.hansards-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 44px;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.pagination-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 10px 8px;
    color: #9ca3af;
    font-weight: 500;
}

/* Error and No Data States */
.hansards-error,
.hansards-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
    grid-column: 1 / -1;
}

.hansards-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

/* Loading State */
.hansards-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.hansards-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hansards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hansards-container {
        padding: 16px;
    }
    
    .hansards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .hansard-thumbnail {
        height: 160px;
    }
    
    .hansard-content {
        padding: 16px;
    }
    
    .hansard-actions {
        padding: 16px;
        flex-direction: column;
    }
    
    .hansard-btn {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .hansards-grid {
        grid-template-columns: 1fr;
    }
    
    .hansard-thumbnail {
        height: 200px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 36px;
    }
}

/* Print Styles */
@media print {
    .hansard-actions,
    .hansards-pagination {
        display: none;
    }
    
    .hansard-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}