/**
 * Modern A-Z Listing Styles
 */

.mazl-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
}

/* Navigation */
.mazl-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    justify-content: center;
}

.mazl-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mazl-navigation a:hover {
    background: var(--mazl-primary, #0073aa);
    color: #fff;
    border-color: var(--mazl-primary, #0073aa);
}

/* Letter Section */
.mazl-letter-section {
    margin-bottom: 50px;
}

.mazl-letter-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--mazl-primary, #0073aa);
    color: #222;
}

/* Grid Layout */
.mazl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Card Style */
.mazl-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.mazl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.mazl-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

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

/* Badge Style */
.mazl-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mazl-badge-inline {
    display: inline-block;
    position: static;
    margin: 15px 15px 0 15px;
}

/* Content Style */
.mazl-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mazl-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.mazl-title a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s ease;
}

.mazl-title a:hover {
    color: var(--mazl-primary, #0073aa);
}

.mazl-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
    .mazl-grid {
        grid-template-columns: 1fr;
    }
    .mazl-letter-heading {
        font-size: 2rem;
    }
}
