/* ============================================
   RWA SHOWCASE - Premium Oyun Vitrin Sistemi
   ============================================ */

/* ---- Category Header ---- */
.rwa-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 10px;
    padding: 0 20px;
}

.rwa-category-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rwa-category-title__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(242, 54, 54, 0.2), rgba(242, 54, 54, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #f23636;
}

.rwa-category-browse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rwa-category-browse:hover {
    background: rgba(242, 54, 54, 0.12);
    border-color: rgba(242, 54, 54, 0.25);
    color: #f23636;
    text-decoration: none;
    transform: translateX(2px);
}

.rwa-category-browse i {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.rwa-category-browse:hover i {
    transform: translateX(3px);
}

/* ---- Main Showcase Container ---- */
.rwa-showcase {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 420px;
    cursor: pointer;
    position: relative;
}

/* ---- Left: Main Image ---- */
.rwa-showcase__image {
    width: 65%;
    position: relative;
    overflow: hidden;
    border-radius: 14px 0 0 14px;
}

.rwa-showcase__image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
    display: block;
}

/* Hover: image zoom - container clips it so border-radius stays */
.rwa-showcase:hover .rwa-showcase__image img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

/* Subtle vignette overlay on image */
.rwa-showcase__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 55%, rgba(10, 10, 15, 0.35)),
        linear-gradient(180deg, transparent 70%, rgba(10, 10, 15, 0.25));
    pointer-events: none;
    z-index: 1;
}

/* ---- Right Panel ---- */
.rwa-showcase__panel {
    width: 35%;
    background-image: url('/static/media/home_bg_xs.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: #fff;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0 14px 14px 0;
}

/* Panel dark overlay */
.rwa-showcase__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
}

.rwa-showcase__panel > * {
    position: relative;
    z-index: 1;
}

/* Game title */
.rwa-showcase__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---- Thumbnails ---- */
.rwa-showcase__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.rwa-showcase__thumb-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.rwa-showcase__thumb {
    width: 48%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.rwa-showcase__thumb:hover {
    opacity: 1;
    border-color: rgba(242, 54, 54, 0.5);
    box-shadow: 0 4px 20px rgba(242, 54, 54, 0.15);
}

/* ---- Info Box ---- */
.rwa-showcase__info {
    color: #fff;
    padding: 0;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

/* Tags */
.rwa-showcase__tags {
    margin-bottom: 10px;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    cursor: pointer;
    max-height: none;
    overflow: visible;
    position: relative;
}

.rwa-showcase__tags span {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #bbb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rwa-showcase__tags span:hover {
    background: rgba(242, 54, 54, 0.15);
    border-color: rgba(242, 54, 54, 0.25);
    color: #f23636;
}

/* Price */
.rwa-showcase__price {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rwa-showcase__price .slider-rcoin {
    width: 22px;
    height: 22px;
}

/* ---- Navigation Arrows ---- */
.rwa-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 100px;
    background-image: url('/static/media/home_bg_xs.jpg');
    background-size: cover;
    background-position: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: none;
}

.rwa-nav-arrow:hover {
    color: #fff;
    background-color: rgba(242, 54, 54, 0.4);
    background-blend-mode: overlay;
}

.rwa-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Left arrow: outside left edge */
.rwa-nav-arrow.left-arrow {
    left: -20px;
    border-radius: 6px 0 0 6px;
}

/* Right arrow: outside right edge, past the panel */
.rwa-nav-arrow.right-arrow {
    right: -20px;
    border-radius: 0 6px 6px 0;
}

/* Arrow icons */
.rwa-nav-arrow::before {
    font-weight: 700;
    font-size: 16px;
}

.rwa-nav-arrow.right-arrow::before {
    content: '\003E';
}

.rwa-nav-arrow.left-arrow::before {
    content: '\003C';
}

/* ---- Slider Indicators (Dots) ---- */
.rwa-showcase .slider-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 65%;
    z-index: 5;
    gap: 6px;
}

.rwa-showcase .slider-dot {
    width: 24px;
    height: 4px;
    margin: 0;
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rwa-showcase .slider-dot.active {
    background: #f23636;
    width: 32px;
    box-shadow: 0 0 10px rgba(242, 54, 54, 0.4);
}

.rwa-showcase .slider-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.45);
}

/* ---- Fade Animation for Content Updates ---- */
.rwa-showcase__title,
.rwa-showcase__price,
.rwa-showcase__tags span {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.rwa-showcase__title.fade-out,
.rwa-showcase__price.fade-out,
.rwa-showcase__tags span.fade-out {
    opacity: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .rwa-showcase {
        flex-direction: column;
        height: auto;
        padding: 0 16px;
    }

    .rwa-showcase__image {
        width: 100%;
        border-radius: 14px 14px 0 0;
    }

    .rwa-showcase__image img {
        height: 280px;
    }

    .rwa-showcase__panel {
        width: 100%;
        height: auto;
        border-radius: 0 0 14px 14px;
        padding: 16px;
    }

    .rwa-showcase__panel::before {
        border-radius: 0 0 14px 14px;
    }

    .rwa-showcase__title {
        font-size: 20px;
    }

    .rwa-showcase .slider-indicators {
        width: 100%;
        bottom: auto;
        position: relative;
        margin-top: 0;
        padding: 10px 0;
    }

    .rwa-nav-arrow.left-arrow {
        left: -4px;
    }

    .rwa-nav-arrow.right-arrow {
        right: -4px;
    }

    .rwa-category-header {
        padding: 0 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .rwa-showcase {
        flex-direction: column;
        height: auto;
        padding: 0 12px;
    }

    .rwa-showcase__image {
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .rwa-showcase__image img {
        height: 200px;
    }

    .rwa-showcase__panel {
        width: 100%;
        padding: 14px;
        height: auto;
        border-radius: 0 0 12px 12px;
    }

    .rwa-showcase__panel::before {
        border-radius: 0 0 12px 12px;
    }

    .rwa-showcase__title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .rwa-showcase__thumb-row {
        gap: 6px;
        margin-bottom: 4px;
    }

    .rwa-showcase__thumb {
        border-radius: 5px;
    }

    /* Hide nav arrows on mobile */
    .rwa-nav-arrow {
        display: none;
    }

    .rwa-showcase__price {
        font-size: 18px;
        justify-content: flex-start;
    }

    .rwa-showcase__price .slider-rcoin {
        width: 20px;
        height: 20px;
    }

    .rwa-category-header {
        padding: 0 12px;
        margin-bottom: 8px;
    }

    .rwa-category-title {
        font-size: 14px;
        gap: 8px;
    }

    .rwa-category-title__icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
        border-radius: 6px;
    }

    .rwa-category-browse {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 6px;
    }

    .rwa-showcase .slider-indicators {
        width: 100%;
    }

    .rwa-showcase .slider-dot {
        width: 18px;
        height: 3px;
    }

    .rwa-showcase .slider-dot.active {
        width: 26px;
    }

    .rwa-showcase__tags {
        margin-top: 10px;
        margin-bottom: 8px;
        gap: 5px;
    }

    .rwa-showcase__tags span {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .rwa-showcase__image img {
        height: 170px;
    }

    .rwa-showcase__title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .rwa-showcase__thumb {
        border-radius: 4px;
    }

    .rwa-showcase__thumb-row {
        margin-bottom: 6px;
    }

    .rwa-showcase__tags {
        margin-top: 8px;
        gap: 4px;
    }

    .rwa-showcase__tags span {
        font-size: 9px;
        padding: 2px 7px;
    }

    .rwa-showcase__panel {
        padding: 12px;
    }
}
