/*
Theme Name:  Ultra Games Hub
Theme URI:   https://ultragamehub.com
Description: Child theme for GeneratePress. Custom homepage only — all posts untouched.
Author:      Jashan
Template:    generatepress
Version:     1.1.0
*/

/* ── BASE RESET ── */
html, body { overflow-x: hidden !important; width: 100% !important; }

body.ugh-active {
  background: #fff !important;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden !important;
}

/* ── KILL ALL GP ELEMENTS ON HOMEPAGE ── */
body.ugh-active .site-header,
body.ugh-active .main-navigation,
body.ugh-active .site-footer,
body.ugh-active #masthead,
body.ugh-active #colophon,
body.ugh-active .sidebar,
body.ugh-active #secondary,
body.ugh-active .widget-area,
body.ugh-active .nav-bar-wrap,
body.ugh-active .top-bar,
body.ugh-active .navigation-branding { display: none !important; }

body.ugh-active .site,
body.ugh-active .site-content,
body.ugh-active .grid-container,
body.ugh-active #page,
body.ugh-active #content,
body.ugh-active #primary,
body.ugh-active .content-area,
body.ugh-active .entry-content,
body.ugh-active .site-main,
body.ugh-active article,
body.ugh-active .inside-article {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

/* ── NAV ── */
#ugh-nav {
  background: #fff;
  border-bottom: 2px solid #e53935;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.ugh-logo {
  font-size: 18px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.ugh-logo .red { color: #e53935; }
.ugh-km-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 5px 12px 5px 5px;
  text-decoration: none;
}
.ugh-km-badge .km-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 9px; font-weight: 900;
  color: #29b6f6; letter-spacing: -0.5px;
}
.ugh-km-badge span { font-size: 12px; font-weight: 700; color: #1a1a1a; }
.ugh-km-badge .blue { color: #29b6f6; }

/* ── HERO ── */
#ugh-hero {
  background: #1a1a1a;
  padding: 40px 20px 32px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.ugh-eyebrow {
  font-size: 11px; font-weight: 700;
  color: #e53935; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 10px;
}
#ugh-hero h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 10px;
}
#ugh-hero h1 span { color: #e53935; }
.ugh-hero-sub { font-size: 14px; color: #888; margin-bottom: 22px; }
.ugh-hero-btns {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
}
.ugh-hero-btn {
  font-size: 13px; font-weight: 700;
  padding: 11px 24px; border-radius: 25px;
  text-decoration: none; color: #fff;
  transition: opacity 0.15s;
}
.ugh-hero-btn:hover { opacity: 0.85; }
.ugh-hero-btn.red { background: #e53935; }
.ugh-hero-btn.blue { background: #2563eb; }

/* ── STATS ── */
#ugh-stats {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 14px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%; box-sizing: border-box;
}
.ugh-stat { text-align: center; }
.ugh-stat-num { font-size: 17px; font-weight: 900; color: #e53935; display: block; }
.ugh-stat-label { font-size: 10px; color: #aaa; font-weight: 600; text-transform: uppercase; }
.ugh-divider { width: 1px; height: 28px; background: #ececec; }

/* ── GUIDE CARDS ── */
#ugh-guides {
  padding: 24px 20px;
  width: 100%; box-sizing: border-box;
  /* centered container for PC */
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* 2 columns on tablet and up */
@media (min-width: 640px) {
  #ugh-guides {
    grid-template-columns: 1fr 1fr;
    padding: 32px 24px;
  }
}

/* wider desktop: expand a bit */
@media (min-width: 1024px) {
  #ugh-guides {
    max-width: 1000px;
    padding: 36px 0;
  }
}

.ugh-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.ugh-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.ugh-card-thumb {
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ugh-play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.ugh-card-thumb:hover .ugh-play-btn { transform: scale(1.1); }
.ugh-play-btn i { font-size: 26px; color: #fff; margin-left: 4px; }
.ugh-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.ugh-badge {
  position: absolute; top: 12px; left: 12px;
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 4px 12px; border-radius: 20px; letter-spacing: 0.5px;
}
.ugh-card-body { padding: 16px; }
.ugh-card-title { font-size: 16px; font-weight: 800; color: #1a1a1a; margin-bottom: 6px; }
.ugh-card-desc { font-size: 13px; color: #aaa; margin-bottom: 14px; line-height: 1.6; }
.ugh-steps { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.ugh-step { display: flex; align-items: center; gap: 10px; }
.ugh-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
}
.ugh-step-num.red { background: #fff3f3; border: 1px solid #ffd5d5; color: #e53935; }
.ugh-step-num.blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; }
.ugh-step span { font-size: 13px; color: #444; }
.ugh-watch-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px; border-radius: 10px;
  text-decoration: none; font-size: 13px; font-weight: 700; color: #fff;
  width: 100%; box-sizing: border-box;
  transition: opacity 0.15s;
}
.ugh-watch-btn:hover { opacity: 0.88; }
.ugh-watch-btn.red { background: #e53935; }
.ugh-watch-btn.blue { background: #2563eb; }

/* ── ABOUT ── */
#ugh-about {
  background: #f9f9f9;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  padding: 32px 20px;
  width: 100%; box-sizing: border-box;
}
#ugh-about > div:first-child { text-align: center; }
.ugh-section-eyebrow {
  font-size: 11px; font-weight: 700;
  color: #e53935; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 6px;
}
.ugh-section-title {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 800; color: #1a1a1a; margin-bottom: 20px;
  line-height: 1.3;
}
.ugh-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 720px; margin: 0 auto 16px;
}
@media (min-width: 560px) {
  .ugh-about-grid { grid-template-columns: 1fr 1fr; }
}
.ugh-brand-card {
  background: #fff; border: 1px solid #ececec;
  border-radius: 12px; padding: 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.ugh-brand-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 11px; font-weight: 900;
}
.ugh-brand-name { font-size: 13px; font-weight: 800; color: #1a1a1a; margin-bottom: 3px; }
.ugh-brand-desc { font-size: 12px; color: #888; line-height: 1.6; }
.ugh-flow {
  background: #fff; border: 1px solid #ececec;
  border-radius: 12px; padding: 16px;
  max-width: 720px; margin: 0 auto;
}
.ugh-flow-title { font-size: 13px; font-weight: 800; color: #1a1a1a; margin-bottom: 14px; }
.ugh-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 400px) {
  .ugh-flow-grid { grid-template-columns: repeat(2, 1fr); }
}
.ugh-flow-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 6px;
}
.ugh-flow-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.ugh-flow-name { font-size: 11px; font-weight: 700; color: #1a1a1a; }
.ugh-flow-sub { font-size: 10px; color: #aaa; }

/* ── FOOTER ── */
#ugh-footer {
  background: #1a1a1a;
  padding: 28px 20px;
  text-align: center;
  width: 100%;
}
.ugh-footer-logo { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.ugh-footer-logo .red { color: #e53935; }
.ugh-footer-tag { font-size: 11px; color: #555; margin-bottom: 14px; }
.ugh-footer-links {
  display: flex; justify-content: center;
  gap: 20px; margin-bottom: 12px; flex-wrap: wrap;
}
.ugh-footer-links a { color: #666; font-size: 12px; text-decoration: none; }
.ugh-footer-links a:hover { color: #aaa; }
.ugh-footer-copy { font-size: 11px; color: #444; }

/* ── PC: wrap guides + about in centered shell ── */
@media (min-width: 640px) {
  #ugh-guides,
  #ugh-about { padding-left: 5% !important; padding-right: 5% !important; }
}
@media (min-width: 1100px) {
  #ugh-guides { max-width: 1000px; margin: 0 auto; padding-left: 0 !important; padding-right: 0 !important; }
  #ugh-about { padding-left: 10% !important; padding-right: 10% !important; }
  #ugh-hero { padding: 56px 10% 44px; }
  #ugh-stats { padding: 16px 10%; }
}
