/* Custom styles for vendor pages to fix alignment and UI */

/* Custom styles for vendor pages to fix alignment and UI */

/* Page Layout */
/* body style handled by index-style.css to ensure consistency */
/*
body {
    background-color: #0e1116;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}
*/

.layout-fullview__scrollable {
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
}

.layout-fullview__content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
}

/* Vendor Toolbar Styles (Matching Baji UI) */
.vendor-page-container {
    background-color: #0e1116; /* Ensure dark background */
}

.my-favorites__toolbar {
    position: sticky;
    top: 56px; /* Below header */
    z-index: 10;
    background: #0e1116;
    padding: 0 16px;
    margin-bottom: 16px;
}

.game-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.game-toolbar__wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-toolbar__left {
    cursor: pointer;
}

.game-toolbar-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-toolbar-head__arrow-back {
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-toolbar-head__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-toolbar-head__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-toolbar-head__txt {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.game-toolbar-head__arrow {
    width: 16px;
    height: 16px;
    background-color: #fff; /* Fallback */
    mask-image: url("https://img.b112j.com/bj/h5/assets/v3/images/icon-set/utility-type/arrow-down.svg?v=1772686523703");
    -webkit-mask-image: url("https://img.b112j.com/bj/h5/assets/v3/images/icon-set/utility-type/arrow-down.svg?v=1772686523703");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

/* Smooth Mobile Search Overlay */
@media (max-width: 767px) {
    body.vendor-search-open .vendor-search-overlay {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        transition: opacity 0.25s ease-out, transform 0.25s ease-out !important;
    }
    
    .vendor-search-overlay {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease-in, transform 0.2s ease-in;
    }
}

.search-box {
    background: #222424; /* Darker grey */
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    height: 40px;
}

.search-box__icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
}

.search-box__icon img {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.search-box__input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.search-box__input::placeholder {
    color: #657381;
}

/* Game Grid */
.game-grid-view__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Mobile default 3 cols */
    gap: 12px;
    padding: 0 16px;
}

@media (min-width: 480px) {
    .game-grid-view__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .game-grid-view__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
        padding: 0;
    }
}

@media (min-width: 1024px) {
    .game-grid-view__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.game-card {
    background: #222424;
    border-radius: 2px !important;
    overflow: hidden;
    transition: transform 0.2s;
    position: relative;
    aspect-ratio: 3/4; /* Standard portrait ratio */
    box-shadow: none; /* Flat look */
}

/* Removed overlay gradient to match clean look, or make it subtle */
.game-card__info {
    display: none; /* Hide info text to match "image bhee aise he align honge" if strictly grid of images, but usually names are useful. Checking screenshot... screenshot has no text on cards! */
}

/* If user wants text, we can re-enable, but screenshot implies clean grid */
/* Re-enabling strictly for accessibility/fallback but visually hidden if screenshot demands */
/* Actually the screenshot shows blank placeholders. Usually these grids have images. 
   If the user wants "same as image", and image shows placeholders, 
   I should probably ensure the images fill the card perfectly. */
   
.game-card__cover {
    width: 100%;
    height: 100%;
}

.game-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Floating Chat Button */
.fab-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fab-chat img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fab-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e94242;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0e1116;
}
