/* =========================================
   AASTHA MATRIMONY – MASTER STYLE SHEET
   Clean • Modern • Corporate • Responsive • Professional
========================================= */

/* ROOT VARIABLES */
:root {
    --primary-color: #004D7A;
    --primary-dark: #003659;

    --accent: #0b4b6f;
    --accent-light: #0d6b86;

    --text-color: #333;
    --muted: #6b7280;

    --light-bg: #ffffff;
    --soft-bg: #f5f9fb;

    --card-bg: #ffffff;

    --radius: 12px;
    --radius-small: 8px;

    --shadow: 0 6px 18px rgba(11,75,111,0.08);
    --shadow-light: 0 4px 12px rgba(11,75,111,0.05);

    --border-light: 1px solid #e6f0f6;

    --maxw: 1250px;
}

/* GLOBAL */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background: var(--soft-bg);
    color: var(--text-color);
}

/* =========================================
   NAVBAR + HAMBURGER MENU
========================================= */

.header {
    background: var(--light-bg);
    border-bottom: var(--border-light);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--accent);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: #44576b;
    font-weight: 600;
    text-decoration: none;
}

.nav-btn {
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-small);
    font-weight: 600;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    width: 28px;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    transition: 0.3s ease;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-bottom: var(--border-light);
    box-shadow: var(--shadow-light);
}

.mobile-menu a {
    padding: 12px 0;
    text-decoration: none;
    color: #44576b;
    font-weight: 600;
}

/* ANIMATION when menu open */
.mobile-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.mobile-open .hamburger span:nth-child(2) {
    opacity: 0;
}
.mobile-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}
.mobile-open .mobile-menu {
    display: flex;
}

/* RESPONSIVE NAV */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}

/* =========================================
   DASHBOARD LAYOUT
========================================= */

.container {
    max-width: var(--maxw);
    margin: 30px auto;
    padding: 18px;
}

/* TOP GREETING */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.topbar h2 {
    margin: 0;
    font-size: 22px;
    color: var(--accent);
}

.topbar .small {
    color: var(--muted);
}

/* GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

@media(max-width: 960px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* PROFILE CARD LEFT */
.profile-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-light);
    border: var(--border-light);
    text-align: center;
}

.profile-photo {
    width: 130px;
    height: 130px;
    border-radius: 999px;
    border: 4px solid var(--accent);
    object-fit: cover;
    margin-bottom: 10px;
}

.profile-name {
    font-size: 19px;
    font-weight: 700;
}

.profile-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

/* PROGRESS */
.progress-bar {
    height: 12px;
    background: #e7f1f6;
    border-radius: 999px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    width: 0%;
}

/* QUICK ACTIONS */
.quick-actions .row {
    background: var(--soft-bg);
    border: var(--border-light);
    padding: 12px;
    border-radius: var(--radius-small);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* KPI CARDS */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.kpi-card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--radius);
    text-align: center;
    border: var(--border-light);
    box-shadow: var(--shadow-light);
}

.kpi-card .num {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

/* MAIN CARDS */
.card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--radius);
    border: var(--border-light);
    box-shadow: var(--shadow-light);
    margin-top: 14px;
}

/* TIMELINE */
.timeline .item {
    background: var(--soft-bg);
    padding: 12px;
    border-radius: var(--radius-small);
    border: var(--border-light);
    margin-bottom: 10px;
}

/* RESPONSIVE FIXES */
@media(max-width: 700px) {
    .kpi-grid { grid-template-columns: repeat(1,1fr); }
}

/* =========================================
   SEARCH PAGE LAYOUT (FINAL & FIXED)
========================================= */

.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
}

.search-filters {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    border: var(--border-light);
    box-shadow: var(--shadow-light);
}

.search-filters h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
}

.search-filters label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
}

.search-filters input,
.search-filters select {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cfd8e0;
    font-size: 14px;
    background: #f8fbfd;
}

.search-filters input:focus,
.search-filters select:focus {
    border-color: var(--accent);
    outline: none;
}

/* Age inputs */
.age-row {
    display: flex;
    gap: 10px;
}

/* RESULTS AREA */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* RESULT CARD */
.profile-card-result {
    display: flex;
    gap: 18px;
    background: #fff;
    border-radius: var(--radius);
    padding: 18px;
    border: var(--border-light);
    box-shadow: var(--shadow-light);
    align-items: center;
}

.profile-card-result img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #e7eef5;
}

.profile-card-result .name {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.profile-card-result .info {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

/* Responsive */
@media(max-width:900px){
    .search-layout {
        grid-template-columns: 1fr;
    }

    .profile-card-result {
        flex-direction: row;
    }
}

@media(max-width:600px){
    .profile-card-result {
        flex-direction: column;
        text-align: center;
    }

    .profile-card-result img {
        width: 140px;
        height: 140px;
    }
}

/* =========================================
   FIX FOR VIEW PROFILE PAGE
========================================= */

.view-profile-photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid #e8edf3;
    margin-bottom: 15px;
}

.view-profile-container {
    max-width: 950px;
    margin: 35px auto;
    padding: 0 20px;
}

.vp-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    border: var(--border-light);
    box-shadow: var(--shadow-light);
}

.vp-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
}

.vp-info {
    margin-top: 5px;
    color: var(--muted);
}

.vp-section {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    border: var(--border-light);
    box-shadow: var(--shadow-light);
    margin-top: 25px;
}

.vp-section h3 {
    margin-bottom: 14px;
    font-size: 20px;
    color: var(--accent);
    border-bottom: 1px solid #e3ebf0;
    padding-bottom: 8px;
}

.vp-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

@media(max-width:800px){
    .vp-header { flex-direction: column; }
    .vp-grid { grid-template-columns: 1fr; }
    .view-profile-photo { width: 200px; height: 200px; }
}
