/* Blog Admin Specific Styles */

.blog-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #666;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Blog Posts Table */
.blog-posts-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-posts-table table {
    width: 100%;
    border-collapse: collapse;
}

.blog-posts-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e1e8ed;
}

.blog-posts-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.blog-posts-table tbody tr:hover {
    background: #f8f9fa;
}

.post-title-cell {
    font-weight: 500;
    color: #2c3e50;
    max-width: 300px;
}

.post-title-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.post-title-link:hover {
    text-decoration: underline;
}

.post-slug {
    font-size: 0.85rem;
    color: #999;
    display: block;
    margin-top: 0.25rem;
}

.post-status {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-status.published {
    background: #d4edda;
    color: #155724;
}

.post-status.draft {
    background: #fff3cd;
    color: #856404;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
}

.post-actions button {
    padding: 0.5rem 0.875rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #3498db;
    color: white;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.btn-view {
    background: #6c757d;
    color: white;
}

.btn-view:hover {
    background: #5a6268;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.modal-content h2 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.modal-content p {
    margin: 0 0 2rem 0;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Auto-slug generation indicator */
#slug-preview {
    color: #3498db;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-posts-table {
        overflow-x: auto;
    }

    .blog-posts-table table {
        min-width: 800px;
    }

    .blog-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }
}