/* FILTER TABS */
.filter-bar {
    padding: 40px 0 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-100);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 0;
}

.filter-tab {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid var(--gray-100);
    background: white;
    color: var(--gray-700);
    transition: all 0.2s;
    font-family: var(--font-body);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

/* TEMPLATES GRID */
.templates-section {
    padding: 60px 0 100px;
    background: var(--off-white);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.template-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 2px 12px rgba(13, 27, 42, 0.06);
}

.template-card:hover {
    transform: translateY(-8px);
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
}

.template-card.featured-card {
    border-color: var(--teal);
    position: relative;
}

.template-preview {
    height: 320px;
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.tmpl-mockup {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tmpl-top-bar {
    height: 32px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.tmpl-avatar-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.tmpl-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tmpl-name-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tmpl-line {
    height: 7px;
    border-radius: 4px;
}

.tmpl-section-label {
    height: 9px;
    border-radius: 4px;
    width: 35%;
    margin: 12px 0 8px;
}

.tmpl-two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    flex: 1;
}

.tmpl-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tmpl-sidebar {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.template-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
}

/* .badge-popular {
    background: var(--teal);
}

.badge-new {
    background: var(--accent);
}

.badge-exec {
    background: var(--navy);
} */

.template-info {
    padding: 20px 24px 24px;
}

.template-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.template-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--teal);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-formats {
    display: flex;
    gap: 6px;
}

.format-chip {
    padding: 4px 10px;
    background: var(--mint);
    color: var(--teal-dark);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.template-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 13px;
}

/* COLOR THEMES */
.template-card .tmpl-mockup {
    background: #fff;
}

.template-card .tmpl-top-bar {
    background: linear-gradient(90deg, var(--navy), var(--teal));
}

.template-card .tmpl-avatar {
    background: linear-gradient(135deg, var(--teal), var(--aqua));
}

.template-card .tmpl-line {
    background: #e8ecf0;
}

.template-card .tmpl-section-label {
    background: var(--teal);
}

.template-card .tmpl-sidebar {
    background: var(--off-white);
}

/* .t2 .tmpl-mockup {
    background: #faf5ff;
}

.t2 .tmpl-top-bar {
    background: linear-gradient(90deg, #2d1b69, #7c3aed);
}

.t2 .tmpl-avatar {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.t2 .tmpl-line {
    background: #ede9fe;
}

.t2 .tmpl-section-label {
    background: #7c3aed;
}

.t2 .tmpl-sidebar {
    background: #f5f3ff;
}

.t3 .tmpl-mockup {
    background: #f8faff;
}

.t3 .tmpl-top-bar {
    background: linear-gradient(90deg, #1e3a5f, #2563eb);
}

.t3 .tmpl-avatar {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.t3 .tmpl-line {
    background: #dbeafe;
}

.t3 .tmpl-section-label {
    background: #2563eb;
}

.t3 .tmpl-sidebar {
    background: #eff6ff;
}

.t4 .tmpl-mockup {
    background: #f0fff4;
}

.t4 .tmpl-top-bar {
    background: linear-gradient(90deg, #14532d, var(--teal-dark));
}

.t4 .tmpl-avatar {
    background: linear-gradient(135deg, #059669, var(--teal));
}

.t4 .tmpl-line {
    background: #dcfce7;
}

.t4 .tmpl-section-label {
    background: var(--teal-dark);
}

.t4 .tmpl-sidebar {
    background: #f0fdf4;
}

.t5 .tmpl-mockup {
    background: #fff7ed;
}

.t5 .tmpl-top-bar {
    background: linear-gradient(90deg, #7c2d12, #ea580c);
}

.t5 .tmpl-avatar {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.t5 .tmpl-line {
    background: #ffedd5;
}

.t5 .tmpl-section-label {
    background: #ea580c;
}

.t5 .tmpl-sidebar {
    background: #fff3e8;
}

.t6 .tmpl-mockup {
    background: #fff;
}

.t6 .tmpl-top-bar {
    background: linear-gradient(90deg, #111827, #374151);
}

.t6 .tmpl-avatar {
    background: linear-gradient(135deg, #374151, #6b7280);
}

.t6 .tmpl-line {
    background: #f3f4f6;
}

.t6 .tmpl-section-label {
    background: #374151;
}

.t6 .tmpl-sidebar {
    background: #f9fafb;
}

.t7 .tmpl-mockup {
    background: #fffbeb;
}

.t7 .tmpl-top-bar {
    background: linear-gradient(90deg, #78350f, #d97706);
}

.t7 .tmpl-avatar {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.t7 .tmpl-line {
    background: #fef3c7;
}

.t7 .tmpl-section-label {
    background: #d97706;
}

.t7 .tmpl-sidebar {
    background: #fefce8;
}

.t8 .tmpl-mockup {
    background: #fdf2f8;
}

.t8 .tmpl-top-bar {
    background: linear-gradient(90deg, #701a75, #c026d3);
}

.t8 .tmpl-avatar {
    background: linear-gradient(135deg, #a21caf, #e879f9);
}

.t8 .tmpl-line {
    background: #fce7f3;
}

.t8 .tmpl-section-label {
    background: #c026d3;
}

.t8 .tmpl-sidebar {
    background: #fdf4ff;
}

.t9 .tmpl-mockup {
    background: #f8fafc;
}

.t9 .tmpl-top-bar {
    background: linear-gradient(90deg, #0f172a, #475569);
}

.t9 .tmpl-avatar {
    background: linear-gradient(135deg, #334155, #64748b);
}

.t9 .tmpl-line {
    background: #e2e8f0;
}

.t9 .tmpl-section-label {
    background: #475569;
}

.t9 .tmpl-sidebar {
    background: #f1f5f9;
} */

@media(max-width:900px) {
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:600px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }
}
