/**
 * Profile Modal Navigation Styles
 * 
 * Layout with tabs on left and Logout button on right
 * 
 * @task #955 - Profile modal UI improvements
 */

/* Navigation container - flex layout */
.bp-profile-modal-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
    background: #f8f9fa;
}

/* Tabs container on the left */
.bp-tabs-nav__tabs {
    display: flex;
    gap: 5px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

/* Individual tab button */
.bp-tabs-nav__tabs .bp-tab-link {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bp-tabs-nav__tabs .bp-tab-link:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.03);
}

.bp-tabs-nav__tabs .bp-tab-link.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
    background: transparent;
}

/* Logout button on the right */
.bp-tabs-nav__logout {
    flex-shrink: 0;
    padding: 8px 20px;
    font-size: 14px;
}

.bp-modal .bp-btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    touch-action: manipulation;
}

.bp-modal .bp-btn:focus-visible {
    outline: 2px solid var(--bp-color-primary, #2a7ae4);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(42, 122, 228, 0.15);
}

.bp-modal .bp-btn:active,
.bp-modal .bp-btn.is-pressed {
    transform: scale(0.97);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bp-modal .bp-btn-secondary:active,
.bp-modal .bp-btn-secondary.is-pressed {
    background-color: rgba(0, 0, 0, 0.05);
}

.bp-modal .bp-btn-primary:active,
.bp-modal .bp-btn-primary.is-pressed {
    background-color: #1f5fb1;
}

.bp-modal .bp-btn-alert:active,
.bp-modal .bp-btn-alert.is-pressed {
    background-color: #d62f2f;
}

.bp-btn-fix-space {
    padding: 0 34px;
}

/* Footer Update button (show only on Account tab) */
#modal-profile-update {
    display: none;
}

#modal-profile-update.show {
    display: inline-block;
}

/* Responsive - mobile */
@media screen and (max-width: 860px) {
    .bp-tabs-nav__tabs {
        justify-content: flex-start;
    }
}

@media screen and (max-width: 768px) {
    .bp-profile-modal-tabs {
        padding: 0 10px;
    }
    
    .bp-tabs-nav__tabs {
        gap: 2px;
    }
    
    .bp-tabs-nav__tabs .bp-tab-link {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .bp-tabs-nav__logout {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Responsive - very small mobile */
@media screen and (max-width: 480px) {
    .bp-profile-modal-tabs {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .bp-tabs-nav__tabs {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 10px;
    }
    
    /*.bp-tabs-nav__logout {
        width: 100%;
        margin-left: 0;
    }*/

    .bp-profile-modal-content {
        padding: 0;
    }
}

/* Ensure tabs don't wrap on desktop */
@media screen and (min-width: 769px) {
    .bp-tabs-nav__tabs {
        flex-wrap: nowrap;
    }
}

/* Focus styles for accessibility */
.bp-tabs-nav__tabs .bp-tab-link:focus,
.bp-tabs-nav__logout:focus {

}

/* Smooth scrolling for tabs on touch devices */
.bp-tabs-nav__tabs::-webkit-scrollbar {
    height: 3px;
}

.bp-tabs-nav__tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bp-tabs-nav__tabs::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.bp-tabs-nav__tabs::-webkit-scrollbar-thumb:hover {
    background: #555;
}

