/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: #0e0e10;
  color: #ffffff;
}

/* =========================
   BUTTONS
========================= */
.btn {
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
  background: #0078f2;
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: #fff;
}

.btn.light {
  background: #ffffff;
  color: #000;
}

/* =========================
   TOP NAV
========================= */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 32px;
  background: #0e0e10;
  position: relative;
}

.logo {
  font-weight: 800;
  letter-spacing: 1px;
}

.main-nav a {
  margin-right: 24px;
  text-decoration: none;
  color: #bbb;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.nav-actions .btn {
  margin-left: 12px;
}

/* =========================
   SUB NAV
========================= */
.sub-nav {
  display: flex;
  align-items: center;
  padding: 0 32px 24px;
}

.search {
  width: 260px;
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  background: #1c1c1f;
  color: #fff;
  margin-right: 32px;
}

.sub-links a {
  margin-right: 24px;
  text-decoration: none;
  color: #aaa;
  font-weight: 500;
}

.sub-links a.active {
  color: #fff;
}

/* =========================
   MAIN LAYOUT
========================= */
.content {
  padding: 0 32px 40px;
}

/* =========================
   FEATURE CARD
========================= */
.feature {
  position: relative;
  height: 500px;
  border-radius: 16px;
  background:
    linear-gradient(to right, rgba(0,0,0,.75), rgba(0,0,0,.1)),
    url("main.png") center / cover;
  overflow: hidden;
}

.feature-overlay {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 420px;
}

.game-title {
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.game-title span {
  color: #ff3b3b;
}

.description {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.discount {
  background: #0078f2;
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 8px;
  font-size: 12px;
}

.old-price {
  text-decoration: line-through;
  color: #aaa;
  margin-right: 8px;
}

.new-price {
  font-weight: bold;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-item {
  padding: 12px 16px;
  background: #161618;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: #242428;
}

/* =========================
   EPIC DROPDOWN
========================= */
.epic-wrapper {
  position: relative;
}

.epic-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px 8px;
}

.epic-badge {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 4px 6px;
  border-radius: 4px;
}

.caret {
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.epic-wrapper:hover .caret {
  transform: rotate(180deg);
}

.epic-dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  width: 300px;
  background: linear-gradient(135deg, #2a2a2d, #3a3a3f);
  border-radius: 16px;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 1000;
}

.epic-wrapper:hover .epic-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================
   DROPDOWN CONTENT
========================= */
.dropdown-column h4 {
  font-size: 20px;
  margin-bottom: 14px;
}

.section-gap {
  margin-top: 28px;
}

.dropdown-column a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: #e6e6e6;
  text-decoration: none;
}

.dropdown-column a:hover {
  color: #ffffff;
}

.icon {
  width: 22px;
  text-align: center;
  font-size: 18px;
  opacity: 0.9;
}
/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* ---------- Tablets (≤ 1024px) ---------- */
@media (max-width: 1024px) {

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

  .sidebar {
    flex-direction: row;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
  }

  .sidebar-item {
    white-space: nowrap;
    min-width: 180px;
  }

  .epic-dropdown {
    width: 520px;
  }
}

/* ---------- Mobile (≤ 768px) ---------- */
@media (max-width: 768px) {

  /* Top Nav */
  .top-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .main-nav {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  /* Search */
  .sub-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search {
    width: 100%;
    margin-right: 0;
  }

  /* Feature Card */
  .feature {
    height: 360px;
  }

  .feature-overlay {
    left: 20px;
    bottom: 20px;
    max-width: 90%;
  }

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

  /* Sidebar becomes horizontal list */
  .sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar-item {
    min-width: 160px;
    font-size: 13px;
  }

  /* Dropdown full width */
  .epic-dropdown {
    width: calc(100vw - 32px);
    left: 16px;
    right: 16px;
  }
}

/* ---------- Small Mobile (≤ 480px) ---------- */
@media (max-width: 480px) {

  .top-nav {
    padding: 12px 16px;
  }

  .sub-nav {
    padding: 0 16px 20px;
  }

  .content {
    padding: 0 16px 32px;
  }

  .feature {
    height: 300px;
    border-radius: 12px;
  }

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

  .description {
    font-size: 13px;
  }

  .price-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Dropdown stacks */
  .epic-dropdown {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .dropdown-column h4 {
    font-size: 18px;
  }
}


/* store page css */
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #0b0b0b;
  color: #e5e5e5;
  line-height: 1.6;
}

/* HERO */
.hero {
  height: 100vh;
  background: url("images/main.png") center/cover no-repeat;
  position: relative;
}

.hero-overlay {
  background: rgba(0,0,0,0.65);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  letter-spacing: 4px;
}

.tagline {
  margin: 15px 0 30px;
  font-size: 1.2rem;
  color: #cfcfcf;
}

/* BUTTON */
.btn-primary {
  background: #b11212;
  color: #fff;
  padding: 14px 36px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #d41616;
}

/* INTRO */
.intro {
  padding: 60px 20px;
  text-align: center;
  font-size: 1.2rem;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 60px 10%;
}

.feature-card {
  background: #141414;
  padding: 30px;
  border-radius: 6px;
}

.feature-card h3 {
  color: #e03a3a;
  margin-bottom: 10px;
}

/* GAMEPLAY */
.gameplay {
  padding: 60px 10%;
}

.gameplay h2 {
  text-align: center;
  margin-bottom: 40px;
}

.gameplay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.shot {
  height: 180px;
  background: #222;
  border-radius: 6px;
}

/* ABOUT */
.about {
  padding: 60px 15%;
  text-align: center;
}

.about h2 {
  margin-bottom: 20px;
}

/* CTA */
.cta {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, #0b0b0b, #140000);
}

.cta p {
  font-size: 1.1rem;
  color: #bbb;
}

.cta h2 {
  margin: 10px 0 30px;
}
