/* =============================================
   BHP GAMES — Style Sheet
   Dark theme + Neon Purple Accents
   ============================================= */

:root {
  --bg-primary: #080B11;
  --bg-secondary: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #253349;
  --accent: #7B2CBF;
  --accent-light: #9D4EDD;
  --accent-glow: rgba(123, 44, 191, 0.4);
  --accent-glow-strong: rgba(123, 44, 191, 0.6);
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border: #334155;
  --border-hover: #7B2CBF;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 11, 17, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-social a {
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 4px;
}

.header-social a:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 11, 17, 0.92) 0%,
    rgba(8, 11, 17, 0.6) 50%,
    rgba(8, 11, 17, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
  max-width: 700px;
}

.hero-logo {
  width: 80px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(123, 44, 191, 0.3));
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 11, 17, 0.6);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero-arrow--left {
  left: 24px;
}

.hero-arrow--right {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.dot:hover {
  background: var(--accent-light);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 24px var(--accent-glow-strong);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
  border-radius: 8px;
}

/* =============================================
   FEATURED GAME
   ============================================= */

.featured-game {
  padding: 80px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.game-poster {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}

.game-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.featured-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.featured-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.featured-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.featured-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stat {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat:first-child {
  color: #FBBF24;
}

/* =============================================
   ALL GAMES
   ============================================= */

.all-games {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  transition: var(--transition);
}

.view-all:hover {
  color: var(--text-primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.game-card__platforms {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.game-card__platforms a {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  text-decoration: none;
}

.game-card__platforms a:hover {
  color: var(--accent-light);
  background: rgba(123, 44, 191, 0.15);
}

.game-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.game-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card__image img {
  transform: scale(1.1);
}

.game-card__rating {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(8, 11, 17, 0.75);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #FBBF24;
}

.game-card__body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-card__info {
  flex: 1;
  min-width: 0;
}

.game-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
   STUDIO & NEWS
   ============================================= */

.studio-news {
  padding: 80px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-studio {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 200px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.about-studio h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
}

.about-studio p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative;
}

.about-studio .btn {
  position: relative;
}

.latest-news h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 24px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.news-item:hover {
  background: var(--bg-card);
}

.news-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-text {
  flex: 1;
  min-width: 0;
}

.news-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-date {
  font-size: 13px;
  color: var(--text-muted);
}

.news-arrow {
  font-size: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition);
}

.news-item:hover .news-arrow {
  color: var(--accent-light);
  transform: translateX(4px);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.footer-store {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.footer-social a {
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--accent-light);
  transform: translateY(-3px);
}

.footer-center {
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-right {
  display: flex;
  align-items: center;
}

.globe-icon {
  font-size: 28px;
}

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  transition: var(--transition);
  cursor: pointer;
}

.lang-switcher:hover {
  border-color: var(--accent);
  background: rgba(123, 44, 191, 0.1);
}

.lang-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.lang-switcher select {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 0;
  letter-spacing: 0.5px;
}

.lang-switcher select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.header-lang {
  padding: 4px 8px;
}

.header-lang svg {
  width: 14px;
  height: 14px;
}

.header-lang select {
  font-size: 12px;
}

/* =============================================
   PAGE HERO (for inner pages)
   ============================================= */

.page-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* =============================================
   GAME DETAIL PAGE
   ============================================= */

.game-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.game-hero__bg {
  position: absolute;
  inset: 0;
}

.game-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-hero__overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(8,11,17,0.95) 0%, rgba(8,11,17,0.6) 50%, rgba(8,11,17,0.3) 100%);
  padding: 80px 0 60px;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
}

.breadcrumb {
  display: inline-block;
  font-size: 14px;
  color: var(--accent-light);
  margin-bottom: 16px;
  transition: var(--transition);
}

.breadcrumb:hover {
  color: var(--text-primary);
}

.game-hero__overlay h1 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.1;
}

.game-hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 600px;
}

.game-hero__stats {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.game-hero__stats .stat {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.game-hero__stats .stat:first-child {
  color: #FBBF24;
}

.game-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

.game-content {
  padding: 60px 0;
}

.game-content .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.game-description h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
}

.game-description h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--accent-light);
}

.game-description p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.game-description ul {
  list-style: none;
  margin-bottom: 20px;
}

.game-description li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-secondary);
  font-size: 15px;
}

.game-description li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.download-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.download-link {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.download-link:hover {
  border-color: var(--accent);
  background: rgba(123, 44, 191, 0.1);
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.sidebar-game {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-game:last-child {
  border-bottom: none;
}

.sidebar-game:hover {
  color: var(--accent-light);
}

.sidebar-game img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-game span {
  font-size: 14px;
  font-weight: 600;
}

.games-grid--full {
  grid-template-columns: repeat(3, 1fr);
}

/* =============================================
   BLOG
   ============================================= */

.blog-list {
  padding: 0 0 60px;
}

.blog-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.blog-card__image {
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  padding: 28px 28px 28px 0;
  display: flex;
  flex-direction: column;
}

.blog-card__date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card__content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.blog-card__content h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.blog-card__content h2 a:hover {
  color: var(--accent-light);
}

.blog-card__content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

/* =============================================
   RESPONSIVE (inner pages)
   ============================================= */

@media (max-width: 1024px) {
  .games-grid--full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .game-content .container {
    grid-template-columns: 1fr;
  }

  .game-hero__overlay h1 {
    font-size: 28px;
  }

  .game-hero__cta {
    flex-direction: column;
  }

  .game-hero__cta .btn {
    width: 100%;
    text-align: center;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__content {
    padding: 20px;
  }

  .games-grid--full {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 0 32px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: fit-content;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-arrow--left {
    left: 12px;
  }

  .hero-arrow--right {
    right: 12px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .featured-title {
    font-size: 28px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-studio {
    padding: 32px;
  }

  .about-bg-text {
    font-size: 120px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-center {
    order: -1;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    min-height: 350px;
  }

  .hero-title {
    font-size: 26px;
  }

  .featured-title {
    font-size: 24px;
  }

  .featured-buttons {
    flex-direction: column;
  }

  .featured-buttons .btn {
    width: 100%;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }

  .game-card__title {
    font-size: 14px;
  }
}
