/* AuctionForge Minimal Layout Style */

/* ==========================================
   Minimal Header - Full Width Edge to Edge
   ========================================== */
.bp-header__content-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.bp-header__content-minimal .minimal-header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.bp-header__content-minimal h1.title {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.bp-header__content-minimal h1.title-sm {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ==========================================
   Auction Cover Thumbnail in Header
   ========================================== */
.minimal-header-thumb {
    flex-shrink: 0;
    margin-right: 15px;
}

.minimal-header-thumb img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* ==========================================
   Profile page minimal header - Full Width
   ========================================== */
.bp-header__content-profile-page {
    padding: 10px 15px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.bp-header__content-profile-page h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* ==========================================
   Auction List - Centered Title
   ========================================== */
.bp-header__content-minimal.minimal-header-centered {
    justify-content: center;
    text-align: center;
}

.bp-header__content-minimal.minimal-header-centered .minimal-header-left {
    align-items: center;
}

/* ==========================================
   Single Lot - Item Header Title
   ========================================== */
.item-header-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.bp-item-header__time {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: #666;
}

/* ==========================================
   Single Lot - Catalog Button (desktop)
   ========================================== */
.bp-back-to-catalog-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #333;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.bp-back-to-catalog-button:hover,
.bp-back-to-catalog-button:focus,
.bp-back-to-catalog-button:active,
.bp-back-to-catalog-button:visited {
    color: #fff !important;
    text-decoration: none;
    opacity: 0.85;
}

/* ==========================================
   Single Lot - Navigation Bar (desktop)
   ========================================== */
.navigation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    margin-bottom: 15px;
}

.navigation-bar .nav-item {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    padding: 5px 10px;
}

.navigation-bar .nav-item.prev-lot,
.navigation-bar .nav-item.next-lot {
    color: #555;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.navigation-bar .nav-item.prev-lot:hover,
.navigation-bar .nav-item.next-lot:hover {
    color: #000;
    text-decoration: none;
}

.navigation-bar .nav-item.catalog-link {
    display: none;
    color: #555;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.navigation-bar .nav-item.catalog-link:hover {
    color: #000;
    text-decoration: none;
}

/* Header catalog button wrapper */
.minimal-header-catalog-btn {
    flex-shrink: 0;
    margin-left: 15px;
}

/* ==========================================
   Mobile Styles
   ========================================== */
@media (max-width: 768px) {

    /* Header stays as row on mobile - title next to thumbnail */
    .bp-header__content-minimal {
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 8px 10px;
    }

    .bp-header__content-minimal h1.title-sm {
        font-size: 1.1rem;
    }

    .bp-header__content-minimal h1.title {
        font-size: 1.3rem;
    }

    .item-header-title {
        font-size: 1.1rem;
    }

    .bp-item-header__time {
        font-size: 0.75rem;
    }

    .minimal-header-thumb {
        margin-right: 10px;
    }

    .minimal-header-thumb img {
        width: 50px;
        height: 50px;
    }

    /* Nav bar as button row on mobile */
    .navigation-bar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 6px;
        padding: 5px 0;
        margin-bottom: 5px;
        margin-top: -5px;
    }

    .navigation-bar .nav-item {
        flex: 1;
        text-align: center;
        padding: 10px 6px;
        font-size: 0.85rem;
        font-weight: 500;
        border-radius: 4px;
        background-color: #333;
        color: #fff !important;
        text-decoration: none;
        transition: opacity 0.2s ease;
    }

    .navigation-bar .nav-item:hover,
    .navigation-bar .nav-item:active {
        opacity: 0.85;
        text-decoration: none;
        color: #fff !important;
    }

    .navigation-bar .nav-item.catalog-link {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .navigation-bar .nav-item.prev-lot,
    .navigation-bar .nav-item.next-lot,
    .navigation-bar .nav-item.catalog-link {
        color: #fff !important;
        font-size: 0.85rem;
    }

    /* Hide header catalog button on mobile */
    .minimal-header-catalog-btn {
        display: none !important;
    }
}
