/* Games Layout CSS */
:root {
    --primary-color: #FEBC1F; /* Yellow color for primary elements */
    --dark-bg: #1c1c1c; /* Dark background */
    --card-bg: #E1E1E1; /* Slightly lighter background for cards */
    --card-hover: #333333; /* Hover state for cards */
    --text-light: #ffffff;
    --accent-color: #ff4500; /* Orange accent color */
    --border-radius: 10px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.games-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Header Styles */
.games-header {
    background-color: #000;
    color: white;
    padding: 10px 0;
}

.logo-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.site-logo {
    font-weight: bold;
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sign-up-btn {
    background-color: var(--primary-color);
    color: #000;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.login-btn {
    border: 1px solid white;
    background: transparent;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.language-selector {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    background: linear-gradient(to right, #ff9500, #ff5722);
    color: white;
    padding: 0;
    overflow: hidden;
    /*margin-bottom: 0.5rem;*/
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text h2 {
    font-size: 16px;
    margin: 0;
}

.lucky-draw {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
    color: var(--primary-color);
}

.banner-character {
    height: 120px;
    position: relative;
    z-index: 2;
}

.carousel-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.prev-btn, .next-btn {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Ticker */
.ticker {
    background-color: #222;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    margin: 10px 0;
}

.ticker-icon {
    margin-right: 10px;
}

.info-circle {
    background-color: #444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ticker-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature Icons */
.feature-icons {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    background-color: var(--card-bg);
    border-radius: 10px;
    margin: 10px 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-wrapper.yellow {
    background-color: var(--primary-color);
    color: #000;
}

.feature-item span {
    font-size: 12px;
}

/* Category Navigation Layout */
.game-categories {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

/* Category sidebar */
.category-sidebar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.category-sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.category-item {
    flex: 0 0 auto;
    padding: 10px 20px;
    margin-right: 10px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.category-item.active {
    background-color: var(--card-hover);
    border-color: var(--primary-color);
}

.category-item:hover {
    background-color: var(--card-hover);
}

.category-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.icon-wrapper.yellow {
    background-color: var(--primary-color);
    color: #000;
}

/* Games Grid Layout */
.category-content {
    display: none;
    margin-top: 10px;
}

.category-content.active {
    display: block;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    /*padding-right: 20px;*/
}

.game-card {
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.game-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.game-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-weight: 500;
}

.game-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-info-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-light);
}

.game-info-provider {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.play-btn {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    font-size: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-item {
        padding: 8px 15px;
    }
    
    .icon-wrapper {
        width: 24px;
        height: 24px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* Slider Styles */
.banner-carousel .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-carousel .slide {
    min-width: 100%;
    box-sizing: border-box;
}

.banner-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-carousel .dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.banner-carousel .dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.banner-carousel .dot.active {
    background: var(--primary-color);
}

/* Announcement Marquee Styles */
.announcement-marquee {
    background: #262B30;
    color: white;
    /*padding: 10px 0;*/
    margin-bottom: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.announcement-container {
    display: flex;
    align-items: center;
    height: 30px;
}

.announcement-icon {
    font-size: 20px;
    margin: 0 15px;
    animation: bounce 2s infinite alternate;
    z-index: 2;
    position: relative;
    padding-right: 5px;
}

.announcement-content-wrapper {
    position: relative;
    overflow: hidden;
    width: calc(100% - 60px);
    height: 100%;
}

.announcement-content {
    display: inline-flex;
    white-space: nowrap;
    position: absolute;
    animation: scroll-left 20s linear infinite;
    padding-left: 100%;
    height: 100%;
    align-items: center;
}

.announcement-item {
    display: inline-block;
    margin-right: 50px;
    font-weight: 500;
    color: #FAE60D !important;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Bottom Section: Product Types and Game Cards */
.games-bottom-section {
    display: flex;
    flex-wrap: nowrap;
    /*margin-top: 20px;*/
}

.product-types {
    flex: 0 0 25%;
    padding-right: 10px;
    margin-left:0.5rem;
}

.product-card {
    background-color: #000;
    border-radius: var(--border-radius);
    padding: 15px;
    /*margin-bottom: 10px;*/
    cursor: pointer;
    transition: all 0.3s ease;
}

    .product-card:hover {
        /*background-color: rgba(255, 255, 255, 0.1);*/
        /*transform: translateY(-2px);*/
        border: 0.3rem solid var(--primary-color);
    }

    .product-card.active {
        /*background-color: var(--primary-color);*/
        color: white;
        /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
        border: 0.3rem solid var(--primary-color);
    }

.product-icon {
    font-size: 24px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    height: 2.5rem;
}

.product-icon img {
    max-width: 25px;
    max-height: 25px;
    object-fit: contain;
}

.product-name {
    font-size: 0.7rem !important;
    font-weight: 500;
    color: var(--primary-color);
}

.game-cards-scroll {
    flex: 1;
    overflow-x: auto;
    display: flex;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.game-card-large-card {
    flex: 0 0 auto;
    width: 120px;
    margin-right: 15px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 10px;
}

.game-image-large {
    width: 100%;
    height: 120px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.game-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.no-games-message {
    width: 100%;
    padding: 1rem;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    display: table-cell;
}

    .no-games-message p {
        color: #747474;
        font-size: 16px;
        margin-bottom: 0;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast notification styling */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: rgba(255, 59, 48, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    min-width: 280px;
    max-width: 350px;
    animation: slideInRight 0.3s ease-in-out, fadeOut 0.5s ease-in-out 4.5s forwards;
    opacity: 0;
}

    .toast.show {
        opacity: 1;
    }

    .toast i {
        margin-right: 10px;
        font-size: 18px;
    }

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
}

    .toast-close:hover {
        opacity: 1;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
