﻿
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --rose: #c2185b;
    --rose-lt: #fce4ec;
    --rose-dk: #880e4f;
    --gold: #f9a825;
    --gold-lt: #fff8e1;
    --teal: #00796b;
    --teal-lt: #e0f2f1;
    --ink: #1a1a2e;
    --muted: #6b7280;
    --border: #e5e7eb;
    --surface: #fafafa;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 2px 16px rgba(0,0,0,0.07);
    --shadow-hover: 0 8px 32px rgba(194,24,91,0.13);
}



/* ===== TOOLBAR ===== */
.match-toolbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    margin-top: 5rem;
    padding: 12px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .match-toolbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 9px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: 'DM Sans', sans-serif;
}

    .btn-filter:hover {
        background: var(--rose-dk);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(194,24,91,0.3);
    }

    .btn-filter .filter-badge {
        background: var(--gold);
        color: #fff;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        display: none;
        align-items: center;
        justify-content: center;
    }

        .btn-filter .filter-badge.visible {
            display: inline-flex;
        }

.result-count {
    font-size: 0.85rem;
    color: var(--muted);
}

    .result-count b {
        color: var(--ink);
    }

.sort-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

/* ===== ACTIVE FILTERS CHIPS ===== */
.active-filters {
    background: var(--white);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: none;
}

    .active-filters.visible {
        display: block;
    }

    .active-filters .container {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--rose-lt);
    color: var(--rose-dk);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

    .filter-chip button {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--rose);
        font-size: 1rem;
        line-height: 1;
        padding: 0;
        margin-left: 2px;
    }

.clear-all-btn {
    font-size: 0.78rem;
    color: var(--muted);
    cursor: pointer;
    margin-left: 4px;
    text-decoration: underline;
}

/* ===== PROFILE GRID ===== */
.match-grid {
    padding: 28px 0 48px;
    margin-top: 60px;
}

.profiles-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* ===== LOADER ===== */
.profiles-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 14px;
    color: var(--muted);
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--rose-lt);
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    transition: all .25s;
    position: relative;
}

    .profile-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
        border-color: rgba(194,24,91,0.2);
    }
.profile-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s;
    }

    .card-img-wrap .avatar-placeholder {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(194,24,91,0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.2rem;
        color: var(--rose);
    }

.profile-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.online-dot {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.72rem;
    color: #fff;
    font-weight: 500;
}

    .online-dot .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
    }

.dot-green {
    background: #4caf50;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.3);
}

.dot-gray {
    background: #9e9e9e;
}

.btn-save {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--muted);
    transition: all .2s;
    z-index: 2;
}

    .btn-save:hover, .btn-save.saved {
        color: var(--rose);
        border-color: var(--rose);
        background: var(--rose-lt);
    }

.card-detail {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

    .card-name:hover {
        color: var(--rose);
    }

.card-id {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 1px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 11px;
    font-size: 0.75rem;
    color: var(--ink);
    font-weight: 500;
}

    .tag.rose {
        background: var(--rose-lt);
        border-color: rgba(194,24,91,0.2);
        color: var(--rose-dk);
    }

    .tag.teal {
        background: var(--teal-lt);
        border-color: rgba(0,121,107,0.2);
        color: var(--teal);
    }

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--muted);
}

    .meta-item i {
        font-size: 0.78rem;
        color: var(--rose);
    }

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.btn-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary-act {
    background: var(--rose);
    color: #fff;
}

    .btn-primary-act:hover {
        background: var(--rose-dk);
        box-shadow: 0 3px 10px rgba(194,24,91,0.3);
        transform: translateY(-1px);
    }

.btn-outline-act {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border);
}

    .btn-outline-act:hover {
        background: var(--surface);
        border-color: #ccc;
    }

.btn-wa {
    background: #25d366;
    color: #fff;
}

    .btn-wa:hover {
        background: #128c7e;
        box-shadow: 0 3px 10px rgba(37,211,102,0.3);
    }

.btn-more {
    background: var(--teal-lt);
    color: var(--teal);
    border: 1px solid rgba(0,121,107,0.2);
}

    .btn-more:hover {
        background: var(--teal);
        color: #fff;
    }

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    display: none;
}

    .no-results i {
        font-size: 3rem;
        color: var(--border);
        margin-bottom: 16px;
        display: block;
    }

/* ===== ERROR BANNER ===== */
.api-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #856404;
    display: none;
    align-items: center;
    gap: 8px;
}

    .api-error.visible {
        display: flex;
    }

/* ===== FILTER MODAL ===== */
.filter-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

    .filter-modal-overlay.open {
        display: flex;
    }

.filter-modal {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideUp .25s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
    border-radius: 20px 20px 0 0;
}

    .modal-header-custom h4 {
        font-family: 'Playfair Display', serif;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--ink);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .modal-header-custom h4 i {
            color: var(--rose);
        }

.modal-close {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--muted);
    transition: all .15s;
}

    .modal-close:hover {
        background: var(--rose-lt);
        color: var(--rose);
        border-color: var(--rose);
    }

.modal-body-custom {
    padding: 24px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .filter-section-title i {
        color: var(--rose);
        font-size: 0.85rem;
    }

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

    .filter-row.single {
        grid-template-columns: 1fr;
    }

.filter-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.filter-select, .filter-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.88rem;
    color: var(--ink);
    background: var(--surface);
    font-family: 'DM Sans', sans-serif;
    transition: border-color .15s;
}

    .filter-select:focus, .filter-input:focus {
        outline: none;
        border-color: var(--rose);
    }

    .filter-select.error, .filter-input.error {
        border-color: #e53935;
        background: #fff5f5;
    }

.field-error {
    font-size: 0.74rem;
    color: #e53935;
    margin-top: 4px;
    display: none;
}

    .field-error.visible {
        display: block;
    }

/* Radio pills */
.radio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-pill input {
    display: none;
}

.radio-pill label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.82rem;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s;
    font-weight: 500;
}

    .radio-pill label:hover {
        border-color: var(--rose);
        color: var(--rose);
    }

.radio-pill input:checked + label {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}

.avail-all input:checked + label {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}

.avail-online input:checked + label {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.avail-maxavail input:checked + label {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.avail-offline input:checked + label {
    background: #455a64;
    border-color: #455a64;
    color: #fff;
}

.modal-footer-custom {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: var(--white);
    border-radius: 0 0 20px 20px;
}

.btn-reset {
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 9px 22px;
    font-size: 0.88rem;
    color: var(--muted);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all .15s;
}

    .btn-reset:hover {
        border-color: var(--rose);
        color: var(--rose);
    }

.btn-apply {
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 9px 28px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all .18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-apply:hover {
        background: var(--rose-dk);
        box-shadow: 0 4px 14px rgba(194,24,91,0.3);
    }

    .btn-apply:disabled {
        background: #ccc;
        cursor: not-allowed;
        box-shadow: none;
    }

.filter-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0 16px;
}

/* ===== INTEREST MODAL ===== */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.seninter-tit {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

.seninter {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .seninter .lhs {
        flex-shrink: 0;
    }

        .seninter .lhs img {
            width: 100px;
            height: 100px;
            border-radius: 12px;
            object-fit: cover;
        }

    .seninter .rhs {
        flex: 1;
    }

.chbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

    .chbox input[type=checkbox] {
        accent-color: var(--rose);
        width: 16px;
        height: 16px;
    }

    .chbox label {
        font-size: 0.88rem;
        cursor: pointer;
    }

.btn-primary {
    background: var(--rose);
    border-color: var(--rose);
}

    .btn-primary:hover {
        background: var(--rose-dk);
        border-color: var(--rose-dk);
    }

@media (max-width: 700px) {
    .profile-card {
        grid-template-columns: 1fr;
    }

    .card-img-wrap {
        min-height: 200px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }
}


