/*
Theme Name: Storefront Child - Joker768
Description: Storefront child theme dengan logo header khusus dan tanpa judul/tagline situs di header.
Author: Site Administrator
Template: storefront
Version: 2.9.0
Text Domain: storefront-child
Requires PHP: 7.4
*/

/* Sembunyikan teks identitas situs, bukan judul halaman atau produk. */
.site-header .site-branding .site-title,
.site-header .site-branding .site-description {
    display: none !important;
}

.site-header .site-branding .joker768-logo-link {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}
.site-header .site-branding .joker768-header-logo {
    display: block;
    width: auto;
    max-width: min(100%, 300px);
    height: auto;
}

/* Tombol Daftar dan Login sejajar logo di kanan atas header. */
.site-header .col-full { position: relative; }
.site-header .joker768-header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    z-index: 5;
}
.site-header .joker768-header-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: filter .2s ease;
}
.site-header .joker768-header-actions a:hover,
.site-header .joker768-header-actions a:focus { filter: brightness(1.12); }
.site-header .joker768-btn-daftar { background: #f4bd27; color: #171717; }
.site-header .joker768-btn-login { background: #222; color: #fff; border: 1px solid #f4bd27; }
@media (max-width: 767px) {
    .site-header .joker768-branding { max-width: 100%; }
    .site-header .joker768-header-actions {
        position: static;
        clear: both;
        justify-content: flex-end;
        margin: 12px 0 15px;
    }
    .site-header .joker768-header-actions a { min-width: 90px; padding: 10px 14px; }
}

/* v1.3: browser-width layout, without cropping content on smaller screens. */
body, #page, .site { width: 100%; max-width: none; }
.site-header .col-full, .site-content .col-full, .site-footer .col-full,
.site-header .storefront-primary-navigation .col-full { max-width: none; width: 100%; padding-left: clamp(16px, 3vw, 48px); padding-right: clamp(16px, 3vw, 48px); box-sizing: border-box; }
.site-content { min-height: 45vh; }

/* Full-width announcement banner below the header menu. */
.joker768-notice { display: flex; align-items: stretch; width: 100%; overflow: hidden; background: #101010; color: #fff; border-top: 1px solid #d4a521; border-bottom: 1px solid #d4a521; }
.joker768-notice-label { flex: 0 0 auto; display: flex; align-items: center; padding: 10px 18px; font-size: 12px; font-weight: 800; letter-spacing: .06em; background: #efbc32; color: #161616; }
.joker768-notice-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.joker768-notice-track { display: flex; width: max-content; white-space: nowrap; animation: joker768-marquee 25s linear infinite; }
.joker768-notice-track span { display: inline-block; padding: 9px 65px; font-size: 14px; }
.joker768-notice:hover .joker768-notice-track { animation-play-state: paused; }
@keyframes joker768-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .joker768-notice-track { animation: none; white-space: normal; width: auto; } .joker768-notice-track span + span { display: none; } }

/* Footer navigation in place of the default Storefront credit. */
.joker768-footer-nav { width: 100%; border-top: 1px solid rgba(127,127,127,.3); padding: 22px 0; }
.joker768-footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin: 0; padding: 0; }
.joker768-footer-nav nav { text-align: center; }
.joker768-footer-nav a { text-decoration: none; font-weight: 600; }
@media (max-width: 767px) { .joker768-notice-label { padding: 8px; font-size: 10px; } .joker768-notice-track span { padding: 8px 30px; font-size: 12px; } }

/* v1.4: retain only the Storefront native mobile burger/navigation. */
@media (max-width: 767px) {
    .site-header .col-full { box-sizing: border-box; }
    .site-header .joker768-branding { width: 100%; margin-bottom: 8px; }
    .site-header .joker768-header-logo { max-width: min(62vw, 240px); }
    .site-header .joker768-header-actions {
        position: static; float: none; clear: both; display: flex;
        width: 100%; gap: 8px; margin: 8px 0 12px;
        justify-content: center; box-sizing: border-box;
    }
    .site-header .joker768-header-actions a {
        flex: 1 1 0; min-width: 0; max-width: 220px;
        padding: 11px 10px; box-sizing: border-box; text-align: center;
    }
    /* Hide the desktop navigation links; Storefront's handheld menu remains. */
    .storefront-primary-navigation .main-navigation > div:not(.handheld-navigation) { display: none; }
    .main-navigation .handheld-navigation { width: 100%; }
    .main-navigation .handheld-navigation ul li a { overflow-wrap: anywhere; }
}

/* v1.5: ensure the native Storefront burger controls the handheld list. */
@media (max-width: 767px) {
  .storefront-primary-navigation .main-navigation .primary-navigation { display: none !important; }
  .storefront-primary-navigation .main-navigation .handheld-navigation { display: none; }
  .storefront-primary-navigation .main-navigation.toggled .handheld-navigation { display: block !important; }
  .storefront-primary-navigation .main-navigation .menu-toggle { display: block; }
  .storefront-primary-navigation .handheld-navigation ul { margin: 0; padding: 0; list-style: none; }
  .storefront-primary-navigation .handheld-navigation li { display: block; }
}
@media (min-width: 768px) {
  .storefront-primary-navigation .main-navigation .handheld-navigation { display: none !important; }
}


/* v1.6: related navigation at footer bottom-left and partner links bottom-right. */
.site-footer .joker768-footer-links {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px; width: 100%; box-sizing: border-box;
  padding-top: 18px; padding-bottom: 24px;
  border-top: 1px solid rgba(127,127,127,.3);
}
.joker768-footer-links nav { min-width: 0; }
.joker768-footer-links h2 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.joker768-footer-links ul { display: flex; flex-wrap: wrap; gap: 9px 20px; padding: 0; margin: 0; list-style: none; }
.joker768-footer-links li { margin: 0; padding: 0; }
.joker768-footer-links a { text-decoration: none; overflow-wrap: anywhere; }
.joker768-footer-links a:hover, .joker768-footer-links a:focus { text-decoration: underline; }
.joker768-footer-partners { text-align: right; }
.joker768-footer-partners ul { justify-content: flex-end; }
@media (max-width: 767px) {
  .site-footer .joker768-footer-links { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .joker768-footer-partners { text-align: left; }
  .joker768-footer-partners ul { justify-content: flex-start; }
}

/* v1.7.1: Desktop-only footer alignment. Mobile rules from v1.6 are unchanged. */
@media (min-width: 768px) {
  .site-footer .joker768-footer-nav,
  .site-footer .joker768-footer-links { clear: both; }
  .site-footer .joker768-footer-nav { box-sizing: border-box; }
  .site-footer .joker768-footer-nav .col-full { width: 100%; max-width: none; box-sizing: border-box; }
  .site-footer .joker768-footer-nav ul { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
  .site-footer .joker768-footer-links {
    display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 3fr);
    align-items: start; column-gap: 36px; row-gap: 0;
    width: 100%; max-width: none; margin: 0; padding: 24px clamp(16px, 3vw, 48px);
  }
  .site-footer .joker768-footer-links nav { float: none; width: auto; max-width: 100%; margin: 0; padding: 0; }
  .site-footer .joker768-footer-links h2 { margin: 0 0 12px; line-height: 1.4; }
  .site-footer .joker768-footer-links ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; padding: 0; }
  .site-footer .joker768-footer-links li { float: none; width: auto; margin: 0; padding: 0; line-height: 1.5; }
  .site-footer .joker768-footer-related { text-align: left; }
  .site-footer .joker768-footer-related ul { justify-content: flex-start; }
  .site-footer .joker768-footer-partners { text-align: right; }
  .site-footer .joker768-footer-partners ul { justify-content: flex-end; }
  .site-footer .joker768-footer-links a { display: inline-block; white-space: normal; }
}

/* v1.8.0: Desktop footer layout fix; no changes to mobile (<768px). */
@media screen and (min-width: 768px) {
  .site-footer .joker768-footer-links.col-full {
    float: none !important;
    clear: both !important;
    display: grid !important;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 28px clamp(24px, 3vw, 48px) !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }
  .site-footer .joker768-footer-links > nav {
    float: none !important;
    clear: none !important;
    display: block !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .site-footer .joker768-footer-related {
    grid-column: 1;
    text-align: left !important;
  }
  .site-footer .joker768-footer-partners {
    grid-column: 2;
    text-align: right !important;
  }
  .site-footer .joker768-footer-links h2 {
    display: block !important;
    margin: 0 0 12px !important;
    font-size: 14px !important;
  }
  .site-footer .joker768-footer-links ul {
    display: flex !important;
    flex-flow: row wrap !important;
    gap: 10px 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .site-footer .joker768-footer-related ul { justify-content: flex-start !important; }
  .site-footer .joker768-footer-partners ul { justify-content: flex-end !important; }
  .site-footer .joker768-footer-links li {
    display: list-item !important;
    float: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .site-footer .joker768-footer-links a {
    display: inline-block !important;
    white-space: nowrap !important;
  }
}

/* v1.9 responsive editorial article; scoped to avoid header/footer and mobile navigation. */
.joker768-article-wrap { width: 100%; padding: clamp(22px, 4vw, 64px) 20px; background: #fff; box-sizing: border-box; }
.joker768-article { max-width: 1100px; margin: 0 auto; color: #242424; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.joker768-article h1 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.25; margin: 0 0 22px; color: #171717; }
.joker768-article h2 { font-size: clamp(21px, 2.3vw, 29px); line-height: 1.35; margin: 0 0 18px; color: #202020; }
.joker768-article p { margin: 0 0 18px; }
.joker768-article section { margin-top: clamp(26px, 4vw, 48px); }
.joker768-article ul, .joker768-article ol { padding-left: 1.6em; margin: 0 0 20px; }
.joker768-article li { margin-bottom: 12px; padding-left: 4px; }
.joker768-article strong { font-weight: 700; }
@media (max-width: 767px) {
 .joker768-article-wrap { padding: 26px 16px; }
 .joker768-article { font-size: 15px; line-height: 1.75; }
 .joker768-article ul, .joker768-article ol { padding-left: 1.35em; }
}

/* v2.0 FAQ accordion: scoped styling, does not change existing mobile header/footer. */
.joker768-faq-wrap { width: 100%; box-sizing: border-box; background: #f6f7f9; padding: clamp(28px, 4vw, 60px) 20px; }
.joker768-faq-inner { max-width: 1100px; margin: 0 auto; color: #242424; }
.joker768-faq-inner h2 { font-size: clamp(23px, 2.7vw, 34px); line-height: 1.35; margin: 0 0 12px; color: #171717; }
.joker768-faq-intro { font-size: 16px; line-height: 1.7; margin: 0 0 24px; }
.joker768-faq-list { display: grid; gap: 12px; }
.joker768-faq-item { border: 1px solid #e0e2e6; border-radius: 12px; background: #fff; overflow: hidden; }
.joker768-faq-item summary { position: relative; display: block; cursor: pointer; padding: 18px 54px 18px 20px; font-size: 16px; font-weight: 700; line-height: 1.5; list-style: none; }
.joker768-faq-item summary::-webkit-details-marker { display: none; }
.joker768-faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; color: #9a7417; }
.joker768-faq-item[open] summary::after { content: '−'; }
.joker768-faq-item summary:focus-visible { outline: 3px solid #b88c20; outline-offset: -3px; }
.joker768-faq-answer { padding: 0 20px 18px; font-size: 15px; line-height: 1.8; }
.joker768-faq-answer p { margin: 0; }
@media (max-width: 767px) {
  .joker768-faq-wrap { padding: 28px 16px; }
  .joker768-faq-item summary { padding: 16px 48px 16px 16px; font-size: 15px; }
  .joker768-faq-item summary::after { right: 16px; }
  .joker768-faq-answer { padding: 0 16px 16px; font-size: 14px; }
}

/* v2.1: scoped article/FAQ overflow and responsive polish; existing mobile header/footer untouched. */
.joker768-article-wrap, .joker768-faq-wrap { min-width: 0; overflow-x: clip; }
.joker768-article, .joker768-faq-inner { width: 100%; min-width: 0; box-sizing: border-box; }
.joker768-article img, .joker768-article video, .joker768-article iframe,
.joker768-faq-inner img, .joker768-faq-inner iframe { max-width: 100%; height: auto; }
.joker768-article a, .joker768-faq-inner a { overflow-wrap: anywhere; }
.joker768-faq-item summary { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .joker768-article *, .joker768-faq-wrap * { scroll-behavior: auto !important; }
}

/* v2.2: hide WordPress empty-post notice on homepage only.
   Does not affect actual 404 pages or empty archives. */
body.home .site-main > .no-results.not-found,
body.home .site-main > section.no-results,
body.home .site-main > article.no-results { display: none !important; }

/* Home game-card gallery; isolated from existing footer and mobile nav */
.joker768-game-section{padding:clamp(24px,4vw,55px) 18px;background:#faf8f2;box-sizing:border-box}
.joker768-game-inner{max-width:1240px;margin:auto}.joker768-game-section h2{font-size:clamp(24px,3vw,34px);line-height:1.3;margin:0 0 10px;color:#222}.joker768-game-intro{margin:0 0 24px;color:#4b4b4b}
.joker768-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.joker768-game-card{min-width:0;background:white;border:1px solid #e9e0c9;border-radius:12px;overflow:hidden;box-shadow:0 3px 16px #0000000b;transition:transform .2s,box-shadow .2s}.joker768-game-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px #0000001c}.joker768-game-card a{display:block;text-decoration:none;color:inherit}.joker768-game-card img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}.joker768-game-card-body{padding:14px}.joker768-game-card h3{font-size:17px;line-height:1.4;margin:0 0 9px;color:#222}.joker768-game-card p{font-size:14px;line-height:1.55;margin:0 0 12px}.joker768-game-card .joker768-readmore{font-weight:700;color:#846009}.joker768-game-card a:focus-visible{outline:3px solid #a97a14;outline-offset:-3px}
@media(max-width:1100px){.joker768-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:767px){.joker768-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.joker768-game-card-body{padding:11px}.joker768-game-card h3{font-size:15px}}@media(max-width:350px){.joker768-game-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.joker768-game-card{transition:none}}

/* v2.6: no empty Storefront main container on homepage. Existing mobile styles remain unchanged. */


/* v2.7: The front-page template intentionally has no post loop.
   Prevent the empty Storefront content wrapper from reserving 45vh. */
body.home .site-content {
    min-height: 0 !important;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
}
body.home .site-content > .col-full {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.joker768-game-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:30px auto}.joker768-game-pagination a{padding:8px 12px;border:1px solid #ccc;border-radius:6px;text-decoration:none}.joker768-game-pagination a[aria-current="page"]{background:#222;color:#fff}
