/*
 * ----------------------------------------------------
 * style.css
 * Non-Critical CSS for Velki Live (Deferred Loading)
 * ----------------------------------------------------
 *
 * NOTE: Critical CSS (for immediate visible elements) is kept in the <style> tag
 * in the index.php file to optimize Largest Contentful Paint (LCP).
 *
 */

/* --- Global & Typography --- */
body {
    /* color, font-family already in critical CSS */
    color: var(--light-text);
}
h1, h2, h3, h4 {
    color: var(--gold);
    margin: 15px 0 8px;
    font-weight: 700;
}
p {
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 15px;
}
ul, ol {
    padding-left: 25px;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 14px;
}
li {
    margin-bottom: 5px;
}
.container {
    padding: 0 10px; /* Adjusting padding for better inner margin */
}

/* --- Off-Canvas Menu (Full Menu) --- */
#main-menu {
    position: fixed;
    top: 0;
    left: -280px; /* Initially hidden */
    width: 250px;
    height: 100%;
    background-color: #0b0b0b;
    padding: 20px 15px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
}
#menu-toggle:checked ~ #main-menu {
    left: 0; /* Show menu */
}
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    cursor: pointer;
}
#menu-toggle:checked ~ #menu-overlay {
    display: block; /* Show overlay */
}
.nav-links {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 15px;
}
.nav-links li a {
    display: block;
    padding: 8px 0;
    color: #f0f0f0;
    font-size: 16px;
    transition: color 0.2s;
    font-weight: 600;
}
.nav-links li a:hover {
    color: var(--gold);
}

/* Menu Toggle Animation */
#menu-toggle:checked ~ .menu-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle:checked ~ .menu-toggle-label span:nth-child(2) {
    opacity: 0;
}
#menu-toggle:checked ~ .menu-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Search & Suggestions --- */
.v-search-section {
    padding: 8px 0;
    position: relative;
}
#velkiSearch {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1e1e1e;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}
#velkiSearch:focus {
    border-color: var(--gold);
    outline: none;
}
.v-suggestion-box {
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 900;
    display: none; /* Controlled by JS */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.v-suggestion-box.show {
    display: block;
}
.v-suggestion-box div {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 15px;
    color: #ccc;
    border-bottom: 1px solid #222;
}
.v-suggestion-box div:hover {
    background: #333;
    color: var(--gold);
}


/* --- Hero Slider Navigators --- */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-nav.prev { left: 10px; }
.hero-nav.next { right: 10px; }

/* --- Sports Sub Navigation --- */
.sports-subnav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    background: #1e1e1e;
    border-radius: 8px;
    margin: 6px 0;
}
.sports-subnav button {
    background: transparent;
    border: none;
    color: #f0f0f0;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.sports-subnav button:hover,
.sports-subnav button.active {
    background-color: var(--gold);
    color: var(--dark-text);
}


/* --- SEO Content & Expandable Section --- */
.seo-content {
    background: #111;
    padding: 15px 12px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.seo-content h1, .seo-content h2, .seo-content h3 {
    color: var(--gold);
}
.seo-content ul {
    list-style: disc;
    margin-left: 20px;
}
.expandable {
    margin-top: 15px;
    border-top: 1px solid #222;
    padding-top: 10px;
}
.expand-toggle {
    display: block;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    padding: 8px 0;
    list-style: none;
    position: relative;
}
.expand-toggle::-webkit-details-marker {
    display: none;
}
.expand-toggle::after {
    content: "▼";
    position: absolute;
    right: 0;
    font-size: 0.8em;
    color: var(--gold);
    transition: transform 0.2s;
}
details[open] > .expand-toggle::after {
    content: "▲";
}
.extra-content {
    padding-top: 10px;
}

/* FAQ Styling */
details {
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #1a1a1a;
}
details summary {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
}
details summary:hover {
    background: #222;
    border-radius: 6px 6px 0 0;
}
details p {
    padding: 0 15px 12px;
    margin-bottom: 0;
    color: #ccc;
    font-size: 14px;
}
.faq-heading {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}


/* --- Footer --- */
footer {
    background: #000;
    padding: 20px 0 10px;
    border-top: 2px solid var(--gold);
    color: #ccc;
    margin-top: 20px;
}
.footer-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}
.footer-links a {
    color: #aaa;
    margin: 0 5px;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-col.pay img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}
.social ul {
    list-style: none;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}
.social ul img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s;
}
.social ul img:hover {
    transform: scale(1.1);
}


/* --- Share Box --- */
.share-box{
    display:flex;
    gap:8px;
    margin:12px 0;
    justify-content:center;
}
.share-box a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px;
    border-radius:8px;
    border:1px solid #e9e9e9;
    background: #222; /* Dark background for visibility */
    color: #fff;
    text-decoration:none;
    font-weight:600;
    width:auto;
    min-width:44px;
    height:40px;
    transition: background-color 0.2s, border-color 0.2s;
}
.share-box a:hover{
    background:#333;
    border-color: var(--gold);
}
.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
.toast{
    position:fixed;
    right:16px;
    bottom:16px;
    background:#111;
    color:#fff;
    padding:8px 12px;
    border-radius:6px;
    opacity:0;
    transition:opacity .2s;
    z-index: 9999;
}
.toast.show{
    opacity:0.95;
}


/* --- Floating Games Button & Popup --- */
.floating-games {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 60px;
    height: 60px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s;
}
.floating-games:hover {
    transform: scale(1.05);
}
.floating-games img {
    width: 35px;
    height: 35px;
}
#gamePopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: flex-end; /* Show from bottom on mobile */
}
#gamePopup.open {
    display: flex;
}
.popup-box {
    background: #1a1a1a;
    width: 100%;
    max-width: 414px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}
#gamePopup.open .popup-box {
    transform: translateY(0);
}
.top-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.top-head span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}
.close-x {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: background 0.2s;
}
.close-x:hover {
    background: #333;
}
.game-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}
.game-block {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
}
.game-block img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.game-block p {
    margin-top: 5px;
    font-size: 13px;
    color: #ccc;
    white-space: nowrap;
}


/* --- Media Queries (If needed) --- */
@media (min-width: 600px) {
    /* Larger screen specific styles can go here */
    .mobile-wrapper {
        border-radius: 10px; /* Make the wrapper look like an app window */
    }
}