/*
Theme Name: Win Custom
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Custom theme based on provided reference HTML.
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: win-custom
*/

/* Keep stylesheet mostly empty; load real styles from reference/css/style.css */

/* Table of Contents - Override theme defaults */
.container--col-2 .toc {
    position: static !important;
    top: auto !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.container--col-2 .toc__btn {
    display: block !important;
    width: 100% !important;
    padding: 16px !important;
    background-color: #30284c !important;
    border: none !important;
    border-radius: 24px !important;
    color: #f7f7f7 !important;
    text-align: left !important;
    margin-bottom: 16px !important;
    cursor: default !important;
    justify-content: flex-start !important;
}

.container--col-2 .toc__btn svg {
    display: none !important;
}

.container--col-2 .toc__list {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.container--col-2 .toc__sublist {
    margin: 0 5px !important;
    padding: 0 !important;
    list-style: none !important;
}

.container--col-2 .toc__item {
    margin: 12px 0 0 0 !important;
}

.container--col-2 .toc__item:last-child {
    margin-bottom: 0 !important;
}

.container--col-2 .toc__link {
    text-decoration: none !important;
    color: #fff !important;
    display: block !important;
    padding: 4px 14px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    background: none !important;
}

.container--col-2 .toc__link:hover {
    color: #007cba !important;
    text-decoration: underline !important;
}

/* Two-column layout for content pages */
@media screen and (min-width: 1024px) {
    .container--col-2 {
        position: relative;
        display: grid;
        grid-template-columns: 978px auto;
        column-gap: 34px;
    }
}

/* TOC Sidebar Layout for content pages */
@media screen and (min-width: 1312px) {
    .container--col-2 {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 34px;
        align-items: start;
    }
    
    .toc {
        order: 2;
        margin-top: 16px 0;
    }
    
    .content {
        order: 1;
    }
}

@media screen and (max-width: 1311px) {
    .container--col-2 {
        display: block;
    }
    
    .toc {
        margin: 24px 0;
    }
}

/* Hide top bonus and exit popup on mobile */
@media screen and (max-width: 768px) {
    .top-bonuses--sticky,
    .popup.js-popup-bonus {
        display: none !important;
    }
}

/* Casino card image links */
.card__img-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card__img-link:hover {
    text-decoration: none;
    color: inherit;
}

/* On desktop, disable image links to preserve card flip functionality */
@media screen and (min-width: 769px) {
    .card__img-link {
        pointer-events: none;
        cursor: default;
    }
    
    .card__img-link:hover {
        text-decoration: none;
    }
}

/* On mobile, ensure image links work */
@media screen and (max-width: 768px) {
    .card__img-link {
        pointer-events: auto;
        cursor: pointer;
    }
}

/* Footer menu styling - grey text, no underlines */
.footer-menu .footer-menu__link,
.footer .footer-menu .footer-menu__link,
.footer-menu__link {
    color: #b6bdcc !important;
    text-decoration: none !important;
    display: inline-block;
}

ul.footer-menu a {
    color: #ccc;
    text-decoration: none;
}

.footer-menu .footer-menu__link:hover,
.footer .footer-menu .footer-menu__link:hover,
.footer-menu__link:hover,
.footer-menu .footer-menu__link:visited:hover {
    color: #f7f7f7 !important;
    text-decoration: none !important;
}

.footer-menu .footer-menu__link:visited,
.footer .footer-menu .footer-menu__link:visited,
.footer-menu__link:visited {
    color: #b6bdcc !important;
    text-decoration: none !important;
}

/* Header dropdown menu fixes */
@media screen and (min-width: 1024px) {
    .menu__item--dropdown {
        position: relative !important;
    }
    
    .menu__dropdown {
        position: absolute !important;
        top: 47px !important;
        left: -9px !important;
        width: 209px !important;
        background-color: #30284c !important;
        border-radius: 0 0 16px 16px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s, visibility 0.3s !important;
        z-index: 10 !important;
    }
    
    .menu__dropdown.menu__dropdown--open {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .menu__item--dropdown:hover > .menu__dropdown {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .submenu {
        padding: 10px 0 14px !important;
        margin: 0 !important;
        list-style: none !important;
    }
    
    .submenu .menu__link {
        padding: 8px 20px !important;
        color: #f7f7f7 !important;
        display: block !important;
    }
    
    .submenu .menu__link:hover {
        color: #00eda6 !important;
    }
}

