/* =====================================================
   MYHVN – Custom Styles
   ===================================================== */

:root {
  --primary:        #6d28d9;
  --primary-hover:  #5b21b6;
  --dark:           #0f172a;
  --dark-2:         #1e293b;
  --light-bg:       #f8fafc;
  --games-bg:       #f1f5f9;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --border:         #e2e8f0;
  --card-shadow:    0 2px 12px rgba(0,0,0,.08);
  --card-shadow-hover: 0 10px 32px rgba(0,0,0,.15);
  --radius:         14px;
}

/* ----- GLOBAL ----- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

/* ----- BUTTONS ----- */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ----- NAVBAR ----- */
.site-navbar {
  background-color: var(--dark) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.navbar-logo {
  height: 32px;
  width: auto;
  max-width: 148px;
}

.site-navbar .nav-link {
  color: rgba(255,255,255,.75) !important;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 6px;
  padding: .45rem .85rem !important;
  transition: color .15s, background .15s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(255,255,255,.08);
}

.site-navbar .dropdown-menu {
  background-color: var(--dark-2);
  border-color: rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .4rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  min-width: 220px;
}
.site-navbar .dropdown-item {
  color: rgba(255,255,255,.75);
  border-radius: 6px;
  font-size: .85rem;
  padding: .5rem .75rem;
  transition: background .15s, color .15s;
}
.site-navbar .dropdown-item:hover {
  background-color: rgba(109,40,217,.3);
  color: #fff;
}

/* ----- HERO ----- */
.hero-section {
  background: linear-gradient(150deg, var(--dark) 0%, #16213e 60%, #180c3a 100%);
  padding: 5rem 0 6rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(109,40,217,.28) 0%, transparent 65%);
  pointer-events: none;
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(109,40,217,.65));
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .4rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
}

/* ----- SECTION SHARED ----- */
.section-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .4rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ----- GAMES SECTION ----- */
.games-section { background-color: var(--games-bg); }

/* ----- GAME CARD ----- */
.game-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  background: #fff;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.game-card .card-img-wrapper {
  background-color: #f1f5f9;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}
.game-card .card-img-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.game-card .card-body {
  padding: 1.25rem 1.25rem .75rem;
}
.game-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .45rem;
}
.game-card .card-text {
  font-size: .865rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.game-card .card-actions {
  padding: .75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

/* ----- ABOUT SECTION ----- */
.about-section { background: #fff; }
.about-logo {
  max-width: 148px;
  opacity: .92;
}

/* ----- CONTACT SECTION ----- */
.contact-section { background-color: var(--light-bg); }

.contact-block {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.contact-block:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(109,40,217,.12);
  color: var(--primary);
}
.contact-block .contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(109,40,217,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: var(--primary);
}

/* ----- FOOTER ----- */
.site-footer {
  background-color: var(--dark);
  color: rgba(255,255,255,.45);
  font-size: .85rem;
}
.footer-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .65;
}
.footer-link {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}
.footer-link:hover { color: #fff; }

/* ----- INNER PAGE HERO ----- */
.page-hero {
  background: linear-gradient(150deg, var(--dark) 0%, #16213e 100%);
  padding: 2.5rem 0 3rem;
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .3rem;
}
.page-hero p { color: rgba(255,255,255,.65); margin-bottom: 0; }
.page-hero .breadcrumb { margin-bottom: .75rem; }
.page-hero .breadcrumb-item a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.35);
}

/* ----- PRIVACY CONTENT ----- */
.privacy-body { background-color: var(--light-bg); }

.privacy-doc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.privacy-doc .meta {
  font-size: .8rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.privacy-doc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: .65rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--games-bg);
}
.privacy-doc h2:first-of-type { margin-top: 0; }

.privacy-doc h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.1rem;
  margin-bottom: .4rem;
}

.privacy-doc p,
.privacy-doc li {
  color: #475569;
  font-size: .925rem;
  line-height: 1.7;
}
.privacy-doc ul { padding-left: 1.4rem; }
.privacy-doc li { margin-bottom: .35rem; }

.privacy-doc .contact-info {
  background: var(--games-bg);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}
.privacy-doc .contact-info a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.privacy-doc .contact-info a:hover { text-decoration: underline; }

/* ----- SUPPORT PAGE ----- */
.support-body { background-color: var(--light-bg); }

.support-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.support-contact-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, color .2s;
  margin-bottom: .65rem;
}
.support-contact-link:last-child { margin-bottom: 0; }
.support-contact-link:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(109,40,217,.1);
  color: var(--primary);
}
.support-contact-link .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(109,40,217,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 576px) {
  .hero-section { padding: 3.5rem 0 4.5rem; }
  .hero-logo { width: 72px; height: 72px; }
  .game-card .card-img-wrapper { height: 220px; }
  .privacy-doc { padding: 1.5rem; }
  .support-card { padding: 1.5rem; }
}
