/* ============================================
   TEMPLATES HUB - templates.php
   ============================================ */

.templates-search-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--bg-surface, #F1F5F2);
    border: 1.5px solid var(--border, #E2E8E4);
    border-radius: 999px;
    max-width: 480px;
    margin-bottom: 1.5rem;
    color: var(--text-muted, #64748B);
}
.templates-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-dark, #0F172A);
}
.templates-search-form button {
    padding: 0.4rem 1rem;
    background: var(--primary, #00A878);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.templates-search-summary {
    color: var(--text-muted, #64748B);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.templates-search-summary a {
    color: var(--primary, #00A878);
    font-weight: 700;
}

.templates-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
}
.templates-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 10px;
    background: var(--bg-surface, #F1F5F2);
    color: var(--text-dark, #0F172A);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.templates-page-link.is-active {
    background: var(--primary, #00A878);
    color: #fff;
}
.templates-page-link:hover:not(.is-active) {
    background: var(--border, #E2E8E4);
}
