/* =========================================================
   PROFILE LISTING PAGE - PREMIUM DESIGN
   ========================================================= */

/* Main Layout */
.matrimony-layout { 
    display: flex; 
    gap: 32px; 
    max-width: 1240px; 
    margin: 40px auto; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    position: relative; 
    padding: 0 15px;
}

/* ==========================================
   LEFT SIDEBAR (FILTERS)
   ========================================== */
.matrimony-sidebar-filters { 
    width: 300px; 
    background: #ffffff; 
    padding: 28px 24px; 
    border-radius: 24px; 
    box-shadow: 0 12px 35px rgba(194, 24, 91, 0.08); /* Premium pinkish shadow */
    height: fit-content; 
    position: sticky; 
    top: 30px; 
    border: 1px solid #f8bbd0; /* Thin pink border */
}

.matrimony-sidebar-filters h3 { 
    margin-top: 0; 
    color: #8e1243; /* Dark pink */
    border-bottom: 2px solid #fce4ec; 
    padding-bottom: 16px; 
    font-size: 20px; 
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group { margin-bottom: 20px; }
.filter-group label { 
    display: block; 
    font-size: 13px; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: #c2185b; /* Pink label */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select, .filter-group input { 
    width: 100%; 
    padding: 12px 14px; 
    border: 1px solid #f8bbd0; /* Pink border */
    border-radius: 12px; 
    font-size: 14px; 
    background: #fffcfd; 
    color: #334155;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.filter-group select:focus, .filter-group input:focus { 
    border-color: #c2185b; 
    background: #ffffff;
    outline: none; 
    box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
}

.filter-age-wrap { display: flex; gap: 12px; align-items: center; }
.filter-age-wrap input { width: 50%; }
.filter-age-wrap span { color: #c2185b; font-weight: 600; font-size: 13px; }

.btn-apply-filters { 
    width: 100%; 
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); 
    color: #ffffff !important; /* Fixed visibility */
    padding: 14px; 
    border: none; 
    border-radius: 12px; 
    font-weight: 800; 
    font-size: 15px; 
    cursor: pointer; 
    margin-top: 15px; 
    transition: all 0.3s ease; 
    box-shadow: 0 8px 20px rgba(194, 24, 91, 0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-apply-filters:hover { 
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(194, 24, 91, 0.35);
    background: linear-gradient(135deg, #c2185b 0%, #8e1243 100%);
}

.btn-reset-filters { 
    display: block; 
    text-align: center; 
    color: #8e1243; 
    margin-top: 16px; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 600;
    transition: color 0.2s;
}
.btn-reset-filters:hover { color: #e91e63; }

/* ==========================================
   RIGHT CONTENT & GRID
   ========================================== */
.matrimony-main-content { flex: 1; min-width: 0; }
.matrimony-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); 
    gap: 28px; 
}

/* Premium Profile Card */
.matrimony-card { 
    background: #ffffff; 
    border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.08); 
    overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; 
    flex-direction: column; 
    border: 1px solid #f8bbd0; /* Thin pink border */
}

.matrimony-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(194, 24, 91, 0.15); 
    border-color: #f48fb1;
}

.matrimony-card-img-wrap { 
    position: relative; 
    height: 280px; 
    width: 100%; 
    background: #fff0f5; 
    overflow: hidden;
}

.matrimony-card-img-wrap img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.matrimony-card:hover .matrimony-card-img-wrap img {
    transform: scale(1.05);
}

.img-blur { filter: blur(16px) brightness(0.9); }

.matrimony-badge { 
    position: absolute; 
    top: 16px; 
    left: 16px; 
    padding: 6px 14px; 
    font-size: 11px; 
    font-weight: 800; 
    border-radius: 20px; 
    z-index: 2; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
    backdrop-filter: blur(4px);
}
.badge-verified { background: rgba(0, 162, 84, 0.868); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

.matrimony-card-content { padding: 24px; flex: 1; }

.matrimony-card-title { 
    font-size: 20px; 
    font-weight: 800; 
    color: #8e1243; 
    margin: 0 0 12px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.mat-id { 
    font-size: 11px; 
    color: #c2185b; 
    font-weight: 700; 
    background: #fce4ec; 
    padding: 4px 10px; 
    border-radius: 8px; 
    letter-spacing: 0.5px;
}

.matrimony-basic-info { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-bottom: 18px; 
}

.info-pill { 
    background: #fff0f5; 
    color: #c2185b; 
    border: 1px solid #f8bbd0;
    padding: 6px 12px; 
    border-radius: 10px; 
    font-size: 12px; 
    font-weight: 700; 
}

.matrimony-location { 
    font-size: 14px; 
    color: #7a2f52; 
    margin-bottom: 14px; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-weight: 600;
    background: linear-gradient(135deg, #fff4f8 0%, #ffeef5 100%);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #f6d3df;
    box-shadow: 0 6px 16px rgba(194, 24, 91, 0.08);
}

/* Locked / Unlocked Info */
.matrimony-locked-info { 
    background: #fffcfd; 
    padding: 16px; 
    border-radius: 12px; 
    border: 1px dashed #f48fb1; 
    margin-bottom: 10px; 
    position: relative; 
    overflow: hidden;
}

.locked-text { filter: blur(5px); user-select: none; color: #94a3b8; font-size: 13px; line-height: 1.6; }

.lock-icon-overlay { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2; 
    background: rgba(255,255,255,0.6);
}

.lock-icon-overlay span { 
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); 
    color: #fff; 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 700; 
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.2);
}

.unlocked-text { 
    font-size: 14px; 
    color: #4b2c3c; 
    line-height: 1.7; 
    background: linear-gradient(135deg, #fff4f8 0%, #fff0f6 100%);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #f6d3df;
    box-shadow: 0 6px 16px rgba(194, 24, 91, 0.08);
}

.unlocked-text strong {
    color: #8e1243;
    font-weight: 800;
}

/* ==========================================
   BUTTONS
   ========================================== */
.matrimony-card-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px; 
    padding: 0 24px 24px; 
}

.btn-action { 
    padding: 12px; 
    font-size: 14px; 
    font-weight: 800; /* Made bolder for visibility */
    border-radius: 12px; 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.3s ease; 
    text-decoration: none;
    display: inline-block;
}

.btn-interest { 
    background: #fff0f5; 
    color: #c2185b !important; 
    border: 1px solid #f8bbd0;
}
.btn-interest:hover { 
    background: #fce4ec; 
    color: #8e1243 !important;
    border-color: #f48fb1; 
}

.btn-message { 
    background: #ffffff; 
    color: #c2185b !important; 
    border: 1px solid #f48fb1; /* Pink thin border */
}
.btn-message:hover { 
    background: #fff0f5; 
    border-color: #c2185b; 
}

.btn-locked { 
    background: #f1f5f9; 
    color: #94a3b8 !important; 
    grid-column: span 2; 
    border: 1px solid #e2e8f0;
}

.btn-view-details { 
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); /* Premium pink gradient */
    color: #ffffff !important; 
    grid-column: span 2; 
    border: none;
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-view-details:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(194, 24, 91, 0.4); 
    background: linear-gradient(135deg, #c2185b 0%, #8e1243 100%);
}

/* ==========================================
   PAGINATION (PREMIUM PILLS)
   ========================================== */
.matrimony-pagination { 
    display: flex; 
    justify-content: center; 
    gap: 10px; 
    margin-top: 50px; 
    padding-bottom: 30px; 
    flex-wrap: wrap; 
}

.matrimony-pagination .page-link { 
    padding: 10px 18px; 
    background: #ffffff; 
    border: 1px solid #f8bbd0; 
    border-radius: 12px; 
    color: #c2185b; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 14px;
    transition: all 0.3s ease; 
    box-shadow: 0 2px 5px rgba(194, 24, 91, 0.05);
}

.matrimony-pagination .page-link:hover { 
    background: #fff0f5; 
    color: #8e1243;
    border-color: #f48fb1; 
    transform: translateY(-2px);
}

.matrimony-pagination .current-page { 
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); 
    color: #ffffff !important; 
    border-color: transparent; 
    pointer-events: none; 
    box-shadow: 0 4px 15px rgba(194, 24, 91, 0.3);
}

/* ==========================================
   MODALS
   ========================================== */
.matrimony-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.75); z-index: 9999; justify-content: center; align-items: center; overflow-y: auto; padding: 20px; backdrop-filter: blur(4px); }
.matrimony-modal { background: #fff; padding: 32px; border-radius: 24px; width: 100%; max-width: 650px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); position: relative; margin: auto; border: 1px solid #f8bbd0; }
.matrimony-modal h3 { margin-top: 0; color: #8e1243; font-size: 22px; border-bottom: 2px solid #fce4ec; padding-bottom: 16px; font-weight: 800; }
.matrimony-modal textarea { width: 100%; height: 120px; padding: 16px; border: 1px solid #f8bbd0; border-radius: 12px; margin-bottom: 20px; font-family: inherit; resize: vertical; box-sizing: border-box; font-size: 15px; background: #fffcfd;}
.matrimony-modal textarea:focus { border-color: #c2185b; outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1); }
.matrimony-modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.btn-cancel { background: #fff0f5; color: #c2185b; border: 1px solid #f8bbd0; padding: 12px 24px; border-radius: 12px; cursor: pointer; font-weight: 700; transition: 0.2s; }
.btn-cancel:hover { background: #fce4ec; color: #8e1243; }

.profile-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.detail-item { background: #fffcfd; padding: 14px 16px; border-radius: 12px; border: 1px solid #f8bbd0; }
.detail-label { font-size: 11px; text-transform: uppercase; color: #c2185b; font-weight: 800; margin-bottom: 6px; letter-spacing: 0.5px; }
.detail-value { font-size: 15px; color: #0f172a; font-weight: 600; }
.contact-box { background: linear-gradient(135deg, #fff0f5 0%, #fce4ec 100%); border: 1px solid #f8bbd0; padding: 24px; border-radius: 16px; margin-top: 24px; text-align: center; }
.contact-number { font-size: 28px; font-weight: 800; color: #c2185b; margin: 12px 0; letter-spacing: 2px; }

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
.mobile-filter-toggle { 
    display: none; 
    position: fixed; 
    bottom: 24px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%); /* Deep pink */
    color: #ffffff !important; /* White text */
    padding: 14px 28px; 
    border-radius: 30px; 
    font-weight: 800; 
    font-size: 15px; 
    box-shadow: 0 10px 25px rgba(194, 24, 91, 0.4); 
    z-index: 100; 
    border: 2px solid #ffffff; /* White border for premium feel */
    cursor: pointer; 
}

@media (max-width: 900px) {
    .matrimony-layout { flex-direction: column; padding: 0 10px; margin-top: 20px; }
    .matrimony-sidebar-filters { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; border-radius: 0; overflow-y: auto; padding: 30px 20px 100px; }
    .matrimony-sidebar-filters.show-mobile { display: block; }
    .mobile-filter-toggle { display: block; }
    .close-mobile-filters { display: block !important; position: absolute; top: 20px; right: 20px; background: #fff0f5; color: #c2185b; border: 1px solid #f8bbd0; width: 36px; height: 36px; border-radius: 50%; font-weight: bold; cursor: pointer; font-size: 16px; }
    .profile-detail-grid { grid-template-columns: 1fr; }
    .matrimony-grid { grid-template-columns: 1fr; }
}
.close-mobile-filters { display: none; }