
.alphabetical-filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Alphabet Navigation */
.alphabet-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    justify-content: center;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.filter-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

/* Special styling for All and Numbers buttons */
.filter-btn[data-letter="all"] {
    background: #28a745;
    color: white;
    border-color: #28a745;
    font-weight: 600;
}

.filter-btn[data-letter="all"]:hover,
.filter-btn[data-letter="all"].active {
    background: #218838;
    border-color: #218838;
}

.filter-btn[data-letter="number"] {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
    font-weight: 600;
}

.filter-btn[data-letter="number"]:hover,
.filter-btn[data-letter="number"].active {
    background: #e0a800;
    border-color: #e0a800;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.loading-indicator::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Posts Container */
.filtered-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.filtered-post-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filtered-post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.filtered-post-item h3 {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.filtered-post-item h3 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.filtered-post-item h3 a:hover {
    color: #007bff;
}

.post-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
}

.post-date {
    font-weight: 500;
}

.no-posts-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alphabet-filter-nav {
        gap: 3px;
        padding: 15px;
    }
    
    .filter-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .filtered-posts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filtered-post-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .alphabet-filter-nav {
        gap: 2px;
        padding: 10px;
    }
    
    .filter-btn {
        padding: 5px 6px;
        font-size: 11px;
        min-width: 30px;
    }
    
    .alphabetical-filter-container {
        padding: 10px;
    }
}