/*
Theme Name:   Youplay Child
Theme URI:    http://themeforest.net/user/_nK/portfolio
Author:       nK
Template:     youplay
Author URI:   http://nkdev.info/
Description:  Youplay Child Theme
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  youplay-child
Tags:
*/


/* Theme customization starts here
-------------------------------------------------------------- */

/* Bootstrap 3 (loaded by the parent theme, after this stylesheet's sibling
   gtr-design-system.css but before this file) sets html{font-size:14px} as
   its rem base. Since this stylesheet is enqueued last (priority 15), this
   is the correct place to restore the standard 16px root - fixing it here
   means every rem-based size across gtr-design-system.css and l2top-bridge.css
   renders at its intended size instead of ~87.5% of it. */
html { font-size: 16px; }

/* ==========================================================================
   GTR Toplist redesign — site chrome (header, nav, footer)
   Component/page CSS variables live in
   wp-content/plugins/l2top-bridge/assets/css/gtr-design-system.css
   (enqueued before this file) — reuse the same --gtr-* tokens here.
   ========================================================================== */

html, body { background: var(--gtr-bg); }
body.gtr-root { margin: 0; }
.gtr-skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gtr-gold); color: #14100a; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.gtr-skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.gtr-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 10, 14, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gtr-border);
}
.gtr-header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.gtr-logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--gtr-font-display); }
.gtr-logo-icon { display: block; flex-shrink: 0; }
.gtr-logo-text-full { display: inline-flex; align-items: baseline; gap: .3rem; }
.gtr-logo-mark { color: var(--gtr-gold-2); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.gtr-logo-text { color: var(--gtr-text); font-weight: 600; font-size: 1.1rem; }
.gtr-logo:hover .gtr-logo-mark, .gtr-logo:hover .gtr-logo-text { color: var(--gtr-gold-2); }

.gtr-nav { flex: 1; }
.gtr-nav-list { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.gtr-nav-list li a {
  display: inline-block; padding: .5rem .85rem; border-radius: 8px;
  color: var(--gtr-text-muted); font-size: .875rem; font-weight: 500; text-decoration: none;
  transition: color var(--gtr-ease), background var(--gtr-ease);
}
.gtr-nav-list li a:hover { color: var(--gtr-text); background: rgba(255, 255, 255, .04); }
.gtr-nav-list li.current-menu-item > a, .gtr-nav-list li.current_page_item > a {
  color: var(--gtr-gold-2); background: rgba(217, 182, 92, .1);
}

.gtr-header-actions { display: flex; align-items: center; gap: .5rem; }
.gtr-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--gtr-text-muted); cursor: pointer;
}
.gtr-icon-btn:hover { color: var(--gtr-gold-2); background: rgba(255, 255, 255, .04); }
.gtr-header-search { position: relative; display: flex; align-items: center; }
.gtr-header-search-input {
  width: 0; opacity: 0; padding: 0; border: none; background: var(--gtr-surface-2); color: var(--gtr-text);
  border-radius: 8px; font-size: .85rem; transition: width var(--gtr-ease), opacity var(--gtr-ease), padding var(--gtr-ease);
}
.gtr-header-search.gtr-search-open .gtr-header-search-input { width: 220px; opacity: 1; padding: .5rem .75rem; margin-left: .4rem; border: 1px solid var(--gtr-border-strong); }

.gtr-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; background: none; border: none; cursor: pointer; }
.gtr-nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gtr-text); margin: 0 auto; transition: transform var(--gtr-ease), opacity var(--gtr-ease); }
.gtr-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gtr-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gtr-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .gtr-header-search-input { display: none; }
  .gtr-nav-toggle { display: flex; }
  .gtr-nav {
    position: fixed; top: 68px; right: 0; bottom: 0; width: min(320px, 85vw);
    background: var(--gtr-surface); border-left: 1px solid var(--gtr-border);
    transform: translateX(100%); transition: transform var(--gtr-ease);
    overflow-y: auto; padding: 1.5rem; flex: none;
  }
  .gtr-nav.gtr-nav-open { transform: translateX(0); }
  .gtr-nav-list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .gtr-nav-list li a { padding: .85rem 1rem; }
}

/* ---------- Footer ---------- */
.gtr-footer { background: var(--gtr-bg-2); border-top: 1px solid var(--gtr-border); padding: 3.5rem 0 0; margin-top: 4rem; }
.gtr-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
@media (max-width: 800px) { .gtr-footer-grid { grid-template-columns: repeat(2, 1fr); } }
.gtr-footer-tagline { color: var(--gtr-text-muted); font-size: .85rem; margin-top: .75rem; max-width: 260px; }
.gtr-footer-col h3 { font-family: var(--gtr-font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gtr-text-muted); margin-bottom: .9rem; }
.gtr-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.gtr-footer-col a { color: var(--gtr-text); font-size: .875rem; }
.gtr-footer-col a:hover { color: var(--gtr-gold-2); }
.gtr-footer-bottom { border-top: 1px solid var(--gtr-border); padding: 1.25rem 0; }
.gtr-footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--gtr-text-faint); }
.gtr-footer-powered a { color: var(--gtr-text-muted); }
.gtr-footer-powered a:hover { color: var(--gtr-gold-2); }

/* ---------- Main content spacing ---------- */
#gtr-main { min-height: 60vh; }
#gtr-main > article > .l2top-wrap:first-child,
#gtr-main > article > .gtr-page:first-child { padding-top: 2.5rem; }