/* ==========================================================================
   BeatFlirt Fully Mobile Responsive CSS
   Centralized Responsive Styles for All Breakpoints
   ========================================================================== */

/* --- Large Desktop (Up to 1400px) --- */
@media (max-width: 1400px) {
    .dating-content {
        padding: 20px;
    }
}

/* --- Desktop & Tablet (Up to 1199px) --- */
@media (max-width: 1199px) {
    .bf-age-pill {
        width: auto;
    }

    .dating-sidebar {
        width: 240px;
    }

    .bg-data-text {
        font-size: 60px !important;
    }
}

/* --- Medium Devices (Tablets, Up to 991px) --- */
@media (max-width: 991px) {

    /* Layout Adjustments */
    .dating-app-layout {
        flex-direction: column;
    }

    /* Sidebar (Hide by default on mobile, show on toggle) */
    aside.dating-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        /* Hidden */
        width: 260px;
        height: 100vh;
        z-index: 1050;
        transition: all 0.3s ease-in-out;
        display: block !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    aside.dating-sidebar.show {
        left: 0;
    }

    /* Overlay for sidebar when open */
    .dating-sidebar.show::after {
        content: "";
        position: fixed;
        top: 0;
        left: 260px;
        width: calc(100vw - 260px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    /* Header Adjustments */
    .dating-header {
        padding: 10px 15px;
        margin-bottom: 0px !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1040;
        background: #fff4fa !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .header-search {
        display: none !important;
    }

    .dating-main {
        margin-left: 0 !important;
        width: 100%;
        padding-top: 110px !important;
        /* Increased spacing between header and body */
    }

    aside.dating-sidebar {
        z-index: 1100 !important;
        /* Sidebar should be above fixed header */
        top: 0;
    }

    .dating-content {
        padding: 15px;
        margin-right: 0;
    }

    /* Membership Page Responsive Fixes */
    .membership-section {
        padding: 40px 0 !important;
    }

    .membership-section .container {
        padding: 20px !important;
    }

    .membership-section .membership-title {
        font-size: 28px !important;
        margin-top: 10px !important;
    }

    .membership-section .membership-subtitle {
        font-size: 14px !important;
    }

    .membership-section .membership-card {
        padding: 25px 20px !important;
    }

    .membership-section .membership-card h5 {
        font-size: 16px !important;
    }

    .membership-section .membership-card h3 {
        font-size: 32px !important;
    }

    .membership-section .membership-card.featured {
        transform: scale(1) !important;
        margin: 15px 0 !important;
    }

    /* UI Components */
    .bf-age-pill {
        width: 150px;
    }

    .water-wave .shap-bx {
        width: 150px;
        height: 150px;
    }

    .beat-media-card {
        width: 100%;
    }

    .dating-profile-card {
        height: auto;
        padding-bottom: 80px;
        margin-top: 50px;
    }

    /* Landing Page (Home) Adjustments */
    .side-header .navbar-brand {
        width: auto !important;
        height: auto !important;
    }

    .side-header .navbar-brand img {
        height: 60px !important;
        width: auto !important;
    }

    /* Remove the weird pink background box from logo-white on mobile */
    .side-header .navbar-brand .logo-white {
        background: transparent !important;
        border: 0 !important;
        height: 60px !important;
        width: auto !important;
    }

    /* Style the Menu Toggler Button */
    .navbar-toggler {
        border-color: #E91E63 !important;
        padding: 5px 8px !important;
        background: rgba(233, 30, 99, 0.1) !important;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(233, 30, 99, 0.25) !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(233, 30, 99, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    /* Redesigned Home Mobile Menu */
    .navbar-collapse {
        background: rgba(19, 4, 43, 0.95) !important;
        /* Deep dark background */
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(233, 30, 99, 0.2) !important;
        border-radius: 15px !important;
        margin-top: 15px !important;
        padding: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }

    .navbar-collapse .nav-link {
        color: #ffffff !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        transition: all 0.3s ease !important;
        text-align: center;
    }

    .navbar-collapse .nav-link:last-child {
        border-bottom: none !important;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        color: #E91E63 !important;
        background: rgba(233, 30, 99, 0.1) !important;
        border-radius: 8px;
    }

    .main-banner {
        height: auto !important;
        padding: 100px 0 150px !important;
    }

    .hero-title {
        font-size: 35px !important;
    }

    .neonText-LightPink {
        font-size: 50px !important;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-info {
        position: relative !important;
        bottom: 0 !important;
        margin-top: 50px;
        flex-direction: column;
        align-items: center;
        gap: 30px !important;
    }

    .info-box {
        width: 100% !important;
        max-width: none !important;
    }

    .about-section .about-content {
        padding: 40px 20px !important;
        text-align: center;
    }

    .about-section h2 {
        font-size: 28px !important;
    }

    .offer-title {
        font-size: 28px !important;
    }

    .additional-services .image-col {
        height: 300px;
    }

    .additional-services .services-card {
        padding: 40px 20px !important;
    }

    /* User Profiles & Detail Views */
    .bf-user-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        scrollbar-width: none;
        /* Firefox */
    }

    .bf-user-tabs::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .bf-user-tabs .nav-item {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .bf-user-profile-wrapper .col-lg-3 {
        width: 100%;
        margin-bottom: 30px;
    }

    .position-sticky {
        position: relative !important;
        top: 0 !important;
    }

    .bf-age-icons.gap-150 {
        gap: 20px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .bf-age-wrapper {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 15px !important;
    }

    /* Grids & Lists Headers - Allow Row Layout on Mobile */
    .dating-content>.d-flex.justify-content-between {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px;
        margin-bottom: 15px !important;
    }

    .tab-title.mb-80,
    .sd-filter-wrapper.mb-80 {
        margin-bottom: 10px !important;
    }

    .sd-filter-wrapper {
        width: auto !important;
        display: flex;
        justify-content: flex-end;
    }

    .sd-advfilter-box {
        width: 280px !important;
        right: 0 !important;
        left: auto !important;
    }

    .tab-title {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    /* Feed Page Responsive Fixes */
    #csFeedSection .cs-feed-item {
        margin-bottom: 30px !important;
        gap: 20px !important;
    }

    #csFeedSection .cs-feed-image {
        height: 250px !important;
        border-radius: 15px !important;
    }

    #csFeedSection .cs-feed-content {
        padding: 10px !important;
        text-align: center !important;
    }

    #csFeedSection .cs-feed-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    #csFeedSection .cs-feed-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }

    /* Login & Register Form Fixes */
    #bfLoginSection .bf-label,
    #bfRegisterSection .bf-label {
        text-align: left !important;
        display: block !important;
    }

    #bfLoginSection {
        min-height: 100vh !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: fixed !important;
        display: flex;
        align-items: center;
        padding: 40px 0 !important;
    }
}

/* --- Mobile Devices (Phones, Up to 767px) --- */
@media (max-width: 767px) {
    .dating-profile-card {
        margin-top: 60px;
    }

    .profile-wrapper {
        flex-direction: column;
    }

    .left-card {
        width: 100% !important;
    }

    .header-left .username {
        font-size: 14px;
    }

    .navbar-brand img {
        height: 50px !important;
    }

    /* Pricing Section */
    .pricing-card {
        margin-bottom: 30px;
    }

    .pricing-card.featured {
        transform: none !important;
        scale: 1 !important;
    }

    .pricing-title {
        font-size: 26px !important;
    }

    /* Ticker Section */
    .dz-features .item .title {
        font-size: 22px !important;
    }

    .bg-data-text {
        font-size: 40px !important;
        left: 20px !important;
    }

    /* Event Card Refinements */
    .bf-event-card {
        padding: 15px !important;
    }

    .bf-event-title {
        font-size: 1.1rem !important;
    }

    .bf-event-img img {
        height: 200px !important;
    }

    /* Ticket Modal Responsiveness */
    #viewTicketModal .modal-content {
        background-size: 100% 100% !important;
        min-height: auto !important;
        padding: 15px !important;
    }

    #viewTicketModal .modal-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    #viewTicketModal .modal-header img {
        width: 80px !important;
    }

    #viewTicketModal .modal-header h2 {
        font-size: 1.2rem !important;
    }

    .ticket-info-row {
        flex-direction: column;
        gap: 5px;
    }

    /* General Form Scaling on Mobile */
    .premium-label {
        font-size: 11px !important;
    }

    .premium-input,
    .premium-select {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    /* Edit Profile Card Refinements */
    .sdp-card .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }

    .sdp-card .d-flex.justify-content-between .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- Extra Small Devices (Up to 575px) --- */
@media (max-width: 575px) {
    .bf-age-pill {
        width: auto;
    }

    .bf-age-icons {
        margin-left: 0;
        gap: 20px;
        justify-content: center;
    }

    .bf-user-tabs .nav-link {
        font-size: 12px;
        padding: 8px 10px;
    }

    .header-actions button img,
    .header-actions a img {
        width: 20px;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }

    .gallery-tabs .nav-link {
        font-size: 11px;
        padding: 5px 8px;
    }

    .award-badge {
        position: static !important;
        margin: 0 auto 20px;
        text-align: center;
    }

    .main-banner {
        padding: 80px 0 100px !important;
    }
}

/* --- Very Small Screens (Up to 375px) --- */
@media (max-width: 375px) {
    .neonText-LightPink {
        font-size: 32px !important;
    }

    .hero-title {
        font-size: 24px !important;
    }

    .bf-user-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}