/**
 * Shibhu Matrimony - Single Profile Page Styles
 *
 * Design: Luxury editorial — inspired by premium matchmaking services.
 * Brand: Crimson #c41e3a, deep ivory backgrounds, refined gold accents.
 * Typography: Georgia serif for names/headings, system-ui for data.
 *
 * @package Modern_Matrimony
 * @version 1.0.0
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --sm-crimson:        #c41e3a;
    --sm-crimson-dark:   #9e1830;
    --sm-crimson-light:  #f7e8eb;
    --sm-gold:           #b8962e;
    --sm-gold-light:     #f5f0e8;
    --sm-ivory:          #f1fffd;
    --sm-ivory-dark:     #f5ede3;
    --sm-teal-bg:        #f1fffd;
    --sm-text-dark:      #1a1a1a;
    --sm-text-mid:       #4a4a4a;
    --sm-text-light:     #7a7a7a;
    --sm-border:         #e8ddd5;
    --sm-border-light:   #f0e8e0;
    --sm-white:          #ffffff;
    --sm-shadow-sm:      0 2px 8px rgba(26,26,26,0.07);
    --sm-shadow-md:      0 6px 24px rgba(26,26,26,0.10);
    --sm-shadow-lg:      0 16px 48px rgba(26,26,26,0.13);
    --sm-radius:         12px;
    --sm-radius-sm:      8px;
    --sm-radius-pill:    100px;
    --sm-transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   WRAPPER & CONTAINER
   ============================================================ */
.sm-single-profile-wrapper {
    min-height: 100vh;
    padding: 0 0 80px;
}

.sm-single-profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}


/* ============================================================
   PROFILE HERO HEADER
   ============================================================ */
.sm-profile-header {
    background: var(--sm-white);
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
    padding: 0;
    border: 1px solid var(--sm-border-light)
}

/* Decorative top stripe */
.sm-profile-header::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--sm-crimson) 0%, #e85d7a 50%, var(--sm-gold) 100%);
}

.sm-profile-header-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: 320px;
}

/* ---- Left: Photo Panel ---- */
.sm-profile-header-left {
    position: relative;
    background: var(--sm-ivory-dark);
    overflow: hidden;
}

.sm-profile-header-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.sm-profile-header-image img.sm-profile-header-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s ease;
}

.sm-profile-header-left:hover img.sm-profile-header-photo {
    transform: scale(1.03);
}

.sm-profile-header-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--sm-ivory-dark) 0%, #e8d8cd 100%);
    color: #c0a898;
}

/* Verified badge on photo */
.sm-verified-badge-large {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.95);
    border: 1.5px solid #4CAF50;
    color: #2e7d32;
    font-size: 0.78em;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--sm-radius-pill);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.sm-verified-badge-large svg {
    flex-shrink: 0;
}

/* ---- Right: Info Panel ---- */
.sm-profile-header-right {
    padding: 32px 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--sm-border-light);
}

.sm-profile-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2em;
    font-weight: 700;
    color: var(--sm-text-dark);
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sm-profile-number-badge {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.44em;
    font-weight: 600;
    background: var(--sm-crimson-light);
    color: var(--sm-crimson);
    padding: 4px 12px;
    border-radius: var(--sm-radius-pill);
    letter-spacing: 0.5px;
    vertical-align: middle;
    border: 1px solid rgba(196,30,58,0.15);
}

/* Quick info pills row */
.sm-profile-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px;
}

.sm-quick-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sm-ivory);
    border: 1px solid var(--sm-border);
    color: var(--sm-text-mid);
    font-size: 0.85em;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--sm-radius-pill);
}

.sm-quick-info-item svg {
    color: var(--sm-crimson);
    flex-shrink: 0;
}

/* About / Description */
.sm-profile-description {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--sm-border-light);
}

.sm-profile-description h3 {
    font-family: Georgia, serif;
    font-size: 0.9em;
    font-weight: 700;
    color: var(--sm-crimson);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 10px;
}

.sm-profile-description p {
    font-size: 0.92em;
    color: var(--sm-text-mid);
    line-height: 1.75;
    margin: 0;
}


/* ============================================================
   MAIN CONTENT LAYOUT (Sections + Sidebar)
   ============================================================ */
.sm-profile-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.sm-profile-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* ============================================================
   PROFILE SECTIONS  (shared card styles)
   ============================================================ */
.sm-profile-section {
    background: var(--sm-white);
    overflow: hidden;
    border: 1px solid var(--sm-border-light);
    transition: box-shadow var(--sm-transition);
}

.sm-profile-section:hover {
    
}

/* Section Title */
.sm-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Georgia, serif;
    font-size: 1em;
    font-weight: 700;
    color: var(--sm-text-dark);
    margin: 0;
    padding: 18px 24px;
    background: var(--sm-ivory);
    border-bottom: 1px solid var(--sm-border-light);
    letter-spacing: 0.2px;
}

.sm-section-title svg {
    color: var(--sm-crimson);
    flex-shrink: 0;
}

/* Section Content */
.sm-section-content {
    padding: 0;
}


/* ============================================================
   INFO GRID  (fields inside each section)
   ============================================================ */
.sm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

/* Each field row */
.sm-info-item {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 8px;
    align-items: baseline;
    padding: 10px 12px;
    transition: background var(--sm-transition);
}

.sm-info-item:hover {
    background: var(--sm-ivory);
}

.sm-info-item.sm-full-width {
    grid-column: 1 / -1;
}

.sm-info-label {
    font-size: 0.8em;
    font-weight: 500;
    color: var(--sm-text-dark);
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.sm-info-value {
    font-size: 0.8em;
    font-weight: 500;
    color: var(--sm-text-dark);
    line-height: 1.5;
}

/* Subtle divider between columns */
.sm-info-item:nth-child(2n-1) {
    
}

/* Divider between row pairs */
.sm-info-item:nth-child(2n-1),
.sm-info-item:nth-child(2n) {
}

.sm-info-item:nth-last-child(1),
.sm-info-item:nth-last-child(2):not(.sm-full-width) {
    border-bottom: none;
}

/* Full-width items never have right border */
.sm-info-item.sm-full-width {
    border-right: none;
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.sm-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.sm-sidebar-widget {
    background: var(--sm-white);
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-sm);
    overflow: hidden;
    border: 1px solid var(--sm-border-light);
}

.sm-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82em;
    font-weight: 700;
    color: var(--sm-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    padding: 14px 18px;
    background: var(--sm-ivory);
    border-bottom: 1px solid var(--sm-border-light);
}

.sm-widget-title svg {
    color: var(--sm-crimson);
}

.sm-widget-content {
    padding: 14px 18px;
}

/* ---- Contact Widget ---- */
.sm-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--sm-border-light);
    font-size: 0.88em;
    color: var(--sm-text-mid);
    word-break: break-word;
}

.sm-contact-item:last-child {
    border-bottom: none;
}

.sm-contact-item svg {
    color: var(--sm-crimson);
    flex-shrink: 0;
}

.sm-contact-item a {
    color: var(--sm-text-mid);
    text-decoration: none;
    transition: color var(--sm-transition);
}

.sm-contact-item a:hover {
    color: var(--sm-crimson);
}

/* ---- Actions Widget ---- */
.sm-actions-widget {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sm-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    border-radius: var(--sm-radius-sm);
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--sm-transition);
    border: none;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.sm-action-btn svg {
    flex-shrink: 0;
}

.sm-interest-btn {
    background: var(--sm-crimson);
    color: var(--sm-white);
    box-shadow: 0 3px 10px rgba(196,30,58,0.28);
}

.sm-interest-btn:hover {
    background: var(--sm-crimson-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(196,30,58,0.35);
}

.sm-interest-btn:active {
    transform: translateY(0);
}

.sm-shortlist-btn {
    background: var(--sm-white);
    color: var(--sm-crimson);
    border: 1.5px solid var(--sm-crimson);
}

.sm-shortlist-btn:hover {
    background: var(--sm-crimson-light);
    transform: translateY(-1px);
}

/* ---- Stats Widget ---- */
.sm-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--sm-border-light);
    gap: 8px;
}

.sm-stat-item:last-child {
    border-bottom: none;
}

.sm-stat-label {
    font-size: 0.8em;
    color: var(--sm-text-light);
    font-weight: 500;
}

.sm-stat-value {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--sm-text-dark);
}


/* ============================================================
   PARTNER PREFERENCES — special highlight style
   ============================================================ */
.sm-partner-preferences-section .sm-section-title {
    background: linear-gradient(135deg, var(--sm-crimson-light) 0%, var(--sm-gold-light) 100%);
    border-bottom-color: rgba(184,150,46,0.2);
}

.sm-partner-preferences-section .sm-section-title svg {
    color: var(--sm-crimson);
}

.sm-partner-preferences-section .sm-info-item:hover {
    background: var(--sm-gold-light);
}


/* ============================================================
   ANIMATIONS  —  fade-up on load
   ============================================================ */
@keyframes sm-fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sm-profile-header {
    animation: sm-fadeUp 0.45s ease both;
}

.sm-profile-section {
    animation: sm-fadeUp 0.45s ease both;
}

.sm-profile-section:nth-child(1) { animation-delay: 0.05s; }
.sm-profile-section:nth-child(2) { animation-delay: 0.10s; }
.sm-profile-section:nth-child(3) { animation-delay: 0.15s; }
.sm-profile-section:nth-child(4) { animation-delay: 0.20s; }
.sm-profile-section:nth-child(5) { animation-delay: 0.25s; }
.sm-profile-section:nth-child(6) { animation-delay: 0.30s; }

.sm-profile-sidebar {
    animation: sm-fadeUp 0.45s 0.12s ease both;
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .sm-profile-header::before,
    .sm-profile-sidebar .sm-actions-widget,
    .sm-verified-badge-large { display: none; }

    .sm-profile-content-wrapper { grid-template-columns: 1fr; }
    .sm-single-profile-wrapper { background: #fff; padding: 0; }
    .sm-profile-section { box-shadow: none; border: 1px solid #ddd; }
    .sm-profile-header { box-shadow: none; border: 1px solid #ddd; }
}


/* ============================================================
   RESPONSIVE — Tablet  (≤900px)
   ============================================================ */
@media (max-width: 900px) {
    .sm-profile-content-wrapper {
        grid-template-columns: 1fr;
    }

    .sm-profile-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sm-actions-widget {
        grid-column: 1 / -1;
    }

    .sm-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   RESPONSIVE — Mobile  (≤640px)
   ============================================================ */
@media (max-width: 640px) {
    .sm-single-profile-container {
        padding: 0 16px;
    }

    /* Header stacks vertically */
    .sm-profile-header-inner {
        grid-template-columns: 1fr;
    }

    .sm-profile-header-image {
        min-height: 260px;
    }

    .sm-profile-header-right {
        padding: 22px 20px 20px;
        border-left: none;
        border-top: 1px solid var(--sm-border-light);
    }

    .sm-profile-title {
        font-size: 1.5em;
    }

    .sm-profile-quick-info {
        gap: 6px;
    }

    .sm-quick-info-item {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    /* Sections full-width info grid */
    .sm-info-grid {
        grid-template-columns: 1fr;
    }

    .sm-info-item {
        border-right: none !important;
        grid-template-columns: 130px 1fr;
    }

    .sm-info-item:nth-child(2n-1) {
        border-right: none;
    }

    .sm-section-title {
        font-size: 0.9em;
        padding: 15px 18px;
    }

    .sm-section-content {
        padding: 14px 18px;
    }

    /* Sidebar becomes stacked single column */
    .sm-profile-sidebar {
        grid-template-columns: 1fr;
    }

    .sm-actions-widget {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sm-action-btn {
        flex: 1;
        min-width: 140px;
    }
}


/* ============================================================
   RESPONSIVE — Small Mobile  (≤400px)
   ============================================================ */
@media (max-width: 400px) {
    .sm-info-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .sm-info-label {
        font-size: 0.75em;
    }

    .sm-profile-title {
        font-size: 1.3em;
    }
}
