/* Frontend CSS for Shabbat Tahara Directory */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&display=swap');

.st-directory-container {
    max-width: 1240px;
    margin: 0 auto;
    font-family: 'Heebo', sans-serif;
    color: #2c3e50;
    box-sizing: border-box;
    width: 100%;
}

.st-directory-container * {
    box-sizing: border-box;
}

/* Filters Card */
.st-filters-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(8, 67, 85, 0.07);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.st-filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: flex-end;
}

.st-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.st-filter-item label {
    font-size: 14px;
    font-weight: 600;
    color: #084355;
    display: block;
}

.st-input-icon-wrap {
    position: relative;
    width: 100%;
}

.st-input-icon-wrap .dashicons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00A6A9;
    font-size: 18px;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.st-filters-card input[type="text"],
.st-filters-card select {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Heebo', sans-serif;
    color: #1f2937;
    background-color: #fff;
    transition: all 0.25s ease;
    outline: none;
}

.st-input-icon-wrap input[type="text"] {
    padding-right: 38px;
}

.st-filters-card input[type="text"]:focus,
.st-filters-card select:focus {
    border-color: #00A6A9;
    box-shadow: 0 0 0 3px rgba(0, 166, 169, 0.15);
}

.st-filters-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.st-results-counter {
    font-size: 15px;
    color: #475569;
}

.st-results-counter strong {
    color: #084355;
    font-size: 17px;
    font-weight: 700;
}

.st-btn-reset {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.st-btn-reset .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

.st-btn-reset:hover {
    background: #f8fafc;
    border-color: #00A6A9;
    color: #00A6A9;
}

.st-btn-reset:hover .dashicons {
    transform: rotate(180deg);
}

/* Bento Cards Grid */
.st-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.st-card-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 18px rgba(8, 67, 85, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.st-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(8, 67, 85, 0.14);
    border-color: #cceeee;
}

.st-card-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.st-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.st-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.st-badge-parasha {
    background: #e8f8f8;
    color: #084355;
    border: 1px solid #b2e6e6;
}

.st-badge-region {
    background: #f1f5f9;
    color: #475569;
}

.st-card-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    line-height: 1.35;
    color: #084355;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
}

.st-lecturer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.st-lecturer .dashicons {
    color: #00A6A9;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.st-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.st-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.st-info-row .dashicons {
    color: #00A6A9;
    font-size: 17px;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
}

.st-location-text strong {
    color: #00A6A9;
    font-weight: 600;
}

.st-info-row.st-time strong {
    color: #084355;
    font-weight: 700;
}

.st-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 14px;
}

.st-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.st-tag .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #00A6A9;
}

/* Empty State / No Results */
.st-no-results,
.st-no-data-notice {
    background: #ffffff;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(8, 67, 85, 0.05);
    border: 1px solid #e2e8f0;
    color: #475569;
    margin: 20px 0;
}

.st-no-results p,
.st-no-data-notice p {
    font-size: 16px;
    margin: 12px 0 18px 0;
}

.st-no-data-notice .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #00A6A9;
}

.st-no-data-notice h3 {
    margin: 10px 0 5px 0;
    font-size: 20px;
    color: #084355;
}

.st-btn-reset-empty {
    background: #084355;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;
    transition: background 0.25s ease;
}

.st-btn-reset-empty:hover {
    background: #00A6A9;
}

/* Responsive */
@media (max-width: 991px) {
    .st-filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    .st-filter-item.st-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .st-filters-card {
        padding: 16px;
    }
    .st-filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .st-filter-item.st-filter-search {
        grid-column: span 1;
    }
    .st-grid {
        grid-template-columns: 1fr;
    }
    .st-filters-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .st-btn-reset {
        width: 100%;
        justify-content: center;
    }
}
