/* ==========================================================================
   FRONTEND LUXURY MOBILE PROFILE VIEW & BOTTOM NAVIGATION BAR
   Designed for Beenu Kumar Taneja Portfolio
   Theme: High-End Light Luxury (White / Champagne / Warm Gold #b08d1a)
   ========================================================================== */

/* Hide old default hamburger sidebar completely */
.mobile-sidebar,
.mobile-sidebar.active {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    left: -9999px !important;
}

/* ==========================================================================
   1. TOP NAVBAR MOBILE OVERRIDE: SHOW ONLY BEENU TANEJA SIGNATURE LOGO
   ========================================================================== */
@media (max-width: 900px) {
    /* Hide top menu button / profile text completely */
    .mobile-menu-btn,
    .mobile-menu-btn * {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Center and showcase ONLY Beenu Taneja signature logo */
    nav#navbar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    nav#navbar .logo {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    nav#navbar .signature-logo {
        height: 42px !important;
        max-height: 42px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08)) !important;
    }

    /* Ensure body has padding on mobile for bottom nav */
    body {
        padding-bottom: 78px !important;
    }
}

/* ==========================================================================
   2. MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
#frontend-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    #frontend-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        border-radius: 0 !important;
        height: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
        min-height: unset !important;
        padding: 0 8px env(safe-area-inset-bottom, 0px) !important;
        background: rgba(255, 255, 255, 0.96) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(176, 141, 26, 0.2) !important;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08) !important;
        z-index: 99990 !important;
        justify-content: space-around !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #64748b;
        background: transparent;
        border: none;
        padding: 5px 4px;
        cursor: pointer;
        transition: all 0.25s ease;
        position: relative;
        flex: 1;
        max-width: 85px;
    }

    .bottom-nav-item .nav-icon-wrap {
        position: relative;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        color: #475569;
    }

    .bottom-nav-item span {
        font-family: 'Outfit', sans-serif;
        font-size: 0.68rem;
        font-weight: 600;
        margin-top: 3px;
        letter-spacing: 0.2px;
        transition: color 0.25s ease;
        color: #64748b;
    }

    .bottom-nav-item.active .nav-icon-wrap {
        transform: translateY(-2px);
        color: #b08d1a;
    }

    .bottom-nav-item.active span {
        font-weight: 700;
        color: #b08d1a;
    }

    .bottom-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 3px;
        width: 14px;
        height: 3px;
        background: linear-gradient(90deg, #b08d1a, #d4af37);
        border-radius: 999px;
    }

    /* Profile item in bottom bar with circular avatar */
    .bottom-nav-item.profile-item .profile-avatar-wrap {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        position: relative;
        padding: 1.5px;
        background: linear-gradient(135deg, #d4af37, #b08d1a);
        box-shadow: 0 0 8px rgba(176, 141, 26, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bottom-nav-item.profile-item .profile-avatar-wrap img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        background: #fff;
    }

    .bottom-nav-item.profile-item.active .profile-avatar-wrap {
        box-shadow: 0 0 12px rgba(176, 141, 26, 0.7);
        transform: scale(1.08);
    }
}

/* ==========================================================================
   3. AMAZING PROFILE VIEW (BOTTOM SHEET & MODAL)
   ========================================================================== */
#frontend-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#frontend-profile-modal.open {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Backdrop */
.profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

#frontend-profile-modal.open .profile-modal-backdrop {
    opacity: 1;
}

/* Bottom Sheet Container */
.profile-modal-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 36px;
    background: linear-gradient(180deg, #fdfbf7 0%, #f9f6ee 160px, #ffffff 320px);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1.5px solid rgba(176, 141, 26, 0.3);
}

#frontend-profile-modal.open .profile-modal-sheet {
    transform: translateY(0);
}

/* Drag Handle / Header */
.profile-sheet-header {
    flex-shrink: 0;
    position: relative;
    padding: 10px 18px 12px;
    border-bottom: 1px solid rgba(176, 141, 26, 0.12);
    background: rgba(253, 251, 247, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.profile-drag-pill {
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 999px;
    margin: 0 auto 10px;
    cursor: pointer;
}

.profile-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
}

.profile-header-title i.verified-check {
    color: #b08d1a;
    font-size: 0.95rem;
}

.profile-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    border: none;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-close-btn:hover,
.profile-close-btn:active {
    background: #b08d1a;
    color: #fff;
    transform: scale(0.95);
}

/* Scrollable Content */
.profile-scroll-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 18px 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(176, 141, 26, 0.25) transparent;
}

.profile-scroll-body::-webkit-scrollbar {
    width: 4px;
}
.profile-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(176, 141, 26, 0.3);
    border-radius: 4px;
}

/* ==========================================================================
   EXECUTIVE COVER BANNER & HERO SECTION
   ========================================================================== */
.profile-cover-banner {
    position: relative;
    height: 110px;
    width: calc(100% + 36px);
    margin: -20px -18px 0 -18px;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 50%, #2a2010 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 22px;
    border-bottom: 1.5px solid rgba(176, 141, 26, 0.3);
}

.cover-gradient-mesh {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(176, 141, 26, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cover-signature-watermark {
    position: relative;
    z-index: 1;
    opacity: 0.35;
    filter: brightness(2) drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.cover-signature-watermark img {
    height: 38px;
    object-fit: contain;
}

.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(176, 141, 26, 0.12);
}

/* Avatar with gold ring */
.profile-avatar-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin-top: -48px;
    margin-bottom: 12px;
    z-index: 2;
}

.profile-avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f5d77f 0%, #b08d1a 50%, #8a6d10 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(176, 141, 26, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    border: 2px solid #ffffff;
}

.profile-verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #b08d1a, #d4af37);
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.72rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.profile-handle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b08d1a;
    margin: 0 0 6px 0;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.profile-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #475569;
    max-width: 320px;
    line-height: 1.45;
    margin: 0 0 16px 0;
}

/* SLEEK UNIFIED STATS BAR (Executive Profile Style) */
.profile-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border: 1px solid rgba(176, 141, 26, 0.18);
    border-radius: 16px;
    padding: 12px 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    margin-bottom: 18px;
}

.profile-stat-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.stat-plus {
    color: #b08d1a;
    font-size: 1.05rem;
    font-weight: 700;
}

.stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 3px;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(176, 141, 26, 0.2);
}

/* CTA Action Buttons */
.profile-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 360px;
}

.profile-btn-primary {
    flex: 2;
    background: linear-gradient(135deg, #b08d1a 0%, #d4af37 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(176, 141, 26, 0.35);
    transition: all 0.2s ease;
}

.profile-btn-primary:active {
    transform: scale(0.97);
}

.profile-btn-secondary {
    flex: 1.5;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid rgba(176, 141, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.profile-btn-secondary:active {
    transform: scale(0.97);
    border-color: #b08d1a;
}

.profile-btn-icon {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #b08d1a;
    border: 1.5px solid rgba(176, 141, 26, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.profile-btn-icon:active {
    transform: scale(0.95);
    background: rgba(176, 141, 26, 0.1);
}

/* ==========================================================================
   STORY HIGHLIGHTS ROW (Circular Bubbles like Instagram)
   ========================================================================== */
.profile-highlights-section {
    padding: 18px 0 16px;
    border-bottom: 1px solid rgba(176, 141, 26, 0.12);
}

.highlights-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 6px;
}

.highlights-scroll-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.highlights-scroll-row::-webkit-scrollbar {
    display: none;
}

.highlight-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    width: 66px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-circle-item:active {
    transform: scale(0.92);
}

.highlight-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, #d4af37 0%, #b08d1a 60%, #8a6d10 100%);
    box-shadow: 0 4px 12px rgba(176, 141, 26, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.highlight-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b08d1a;
    font-size: 1.15rem;
    border: 2px solid #ffffff;
    transition: all 0.2s ease;
}

.highlight-circle-item:hover .highlight-inner {
    background: #fdfaf0;
    color: #8a6d10;
}

.highlight-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* ==========================================================================
   SEGMENTED CONTROL TABS BAR
   ========================================================================== */
.profile-tabs-bar {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(176, 141, 26, 0.15);
    margin: 18px 0 16px;
    gap: 2px;
}

.profile-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-tab-btn i {
    font-size: 0.82rem;
}

.profile-tab-btn.active {
    background: #ffffff;
    color: #b08d1a;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Tab Panels */
.profile-tab-panel {
    display: none;
}

.profile-tab-panel.active {
    display: block;
    animation: profileFadeIn 0.3s ease;
}

@keyframes profileFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* All Left Nav Stuff Cards (Interactive Luxury Cards) */
.profile-nav-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-card-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid rgba(176, 141, 26, 0.16);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.nav-card-item:hover,
.nav-card-item:active {
    transform: translateY(-2px);
    border-color: #b08d1a;
    box-shadow: 0 6px 18px rgba(176, 141, 26, 0.15);
    background: #fffdf9;
}

.nav-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(176, 141, 26, 0.1);
    color: #b08d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.nav-card-item:hover .nav-card-icon,
.nav-card-item:active .nav-card-icon {
    background: #b08d1a;
    color: #ffffff;
}

.nav-card-info {
    flex: 1;
    min-width: 0;
}

.nav-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-card-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-card-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.nav-card-item:hover .nav-card-arrow,
.nav-card-item:active .nav-card-arrow {
    color: #b08d1a;
    transform: translateX(3px);
}

/* Quick Connect Tab Panel */
.connect-channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.connect-channel-card {
    background: #ffffff;
    border: 1px solid rgba(176, 141, 26, 0.18);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.connect-channel-card:active {
    transform: scale(0.97);
    border-color: #b08d1a;
}

.connect-channel-card .channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.connect-channel-card.whatsapp .channel-icon { background: #25D366; }
.connect-channel-card.email .channel-icon { background: #b08d1a; }
.connect-channel-card.phone .channel-icon { background: #0284c7; }
.connect-channel-card.linkedin .channel-icon { background: #0a66c2; }
.connect-channel-card.instagram .channel-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.connect-channel-card.twitter .channel-icon { background: #000000; }

.channel-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.channel-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: #64748b;
}

/* Highlights Tab Panel */
.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-feat-card {
    background: #ffffff;
    border: 1px solid rgba(176, 141, 26, 0.16);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.highlight-feat-badge {
    display: inline-block;
    background: rgba(176, 141, 26, 0.12);
    color: #b08d1a;
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.highlight-feat-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.highlight-feat-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Profile Footer */
.profile-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 10px;
    margin-top: 20px;
    border-top: 1px solid rgba(176, 141, 26, 0.12);
}

.profile-footer-logo {
    height: 32px;
    object-fit: contain;
    margin-bottom: 8px;
    opacity: 0.85;
}

.profile-footer-copy {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 0;
}
