﻿/* Modern Marketplace Theme by Jacky the Code Bender */
/*
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --background-light: #f8f9fa;
    --text-dark: #212529;
    --sidebar-width: 250px;
    --header-height: 64px;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
}

html, body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}
*/
/* Layout Container */
.page-marketplace {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar Styling - Modern Dark Theme */
.sidebar-marketplace {
    /*background-image: linear-gradient(180deg, #1a237e 0%, #283593 100%);*/
    color: white;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

    .sidebar-marketplace .top-row-marketplace {
        background-color: rgba(0,0,0,0.2);
        height: var(--header-height);
        display: flex;
        align-items: center;
        padding-left: 1.5rem;
    }

    .sidebar-marketplace .navbar-brand-marketplace {
        font-size: 1.2rem;
        font-weight: bold;
        color: white;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.nav-scrollable-marketplace {
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.nav-item-marketplace {
    font-size: 0.95rem;
    padding-bottom: 0.5rem;
}

    .nav-item-marketplace:first-of-type {
        padding-top: 1rem;
    }

    .nav-item-marketplace ::deep a {
        color: rgba(255,255,255,0.8);
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        margin: 0 1rem;
        padding: 0 1rem;
        transition: all 0.2s ease;
    }

        .nav-item-marketplace ::deep a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
            transform: translateX(5px);
        }

        .nav-item-marketplace ::deep a.active {
            background-color: rgba(255,255,255,0.2);
            color: white;
            font-weight: 600;
            border-left: 4px solid #4fc3f7;
        }

/* Main Content Area */
main main-marketplace {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding-top: var(--header-height);
    background-color: var(--background-light);
    transition: margin-left 0.3s ease-in-out;
}

/* Top Row / Header Styling */
.top-row-marketplace {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    justify-content: flex-end;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 900;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
    transition: left 0.3s ease-in-out;
}

    .top-row-marketplace ::deep a, .top-row .btn-link {
        margin-left: 1.5rem;
        color: #555;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s;
    }

        .top-row-marketplace ::deep a:hover, .top-row .btn-link:hover {
            color: var(--primary-color);
        }

/* Content Container */
.content-marketplace {
    padding: 2rem;
}

/* Marketplace Card Utility (Bonus) */
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    border: 1px solid #eee;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }
/*
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
*/
/* Responsive Design */
@media (max-width: 641px) {
    .page-marketplace {
        flex-direction: column;
    }

    .sidebar-marketplace {
        width: 100%;
        height: auto;
        position: relative;
        background-image: linear-gradient(180deg, #1a237e 0%, #283593 100%);
    }

        .sidebar-marketplace .top-row-marketplace {
            background-color: rgba(0,0,0,0.1);
        }

    .top-row-marketplace {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 999;
        padding-left: 1rem;
        /* Adjust top row to sit nicely under the collapsed sidebar or above it depending on preferred mobile nav style. 
           Here we keep it simple stack. */
    }

    main-marketplace {
        margin-left: 0;
        padding-top: 0;
    }

    .nav-scrollable-marketplace {
        height: auto;
    }
}

.gallery-img {
    max-width: 1000px !important; 
    border-radius: 0 !important;
    width:auto;
}