/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0; 
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: black;
}

body {
  font-family: 'Bahnschrift', 'Segoe UI', 'Roboto', sans-serif;
  background: #F6F0F0;
  color: #222;
  line-height: 1.4;
}

/* Header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
}

.logo, .logo a {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: black;
}

.logo .red {
  color: red;
}

.header-icons a {
  margin-left: 20px;
  text-decoration: none;
  color: #444;
  font-size: 1.2rem;
}

.nav-bar {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  gap: 5%;
  background: #D5D0D0;
  padding: 10px 0;
}

.nav-bar a {
  margin: 0 20px;
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

/* Hero (not used on this page, but kept for consistency) */
.hero {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-content {
  position: absolute;
  bottom: 20px;
  right: 20px;
  transform: none;
  text-align: right;
  max-width: calc(100% - 40px);
}

.hero-logo {
  max-width: 400px;
  margin-bottom: 20px;
}

.cta-box { 
  color: white;
  padding: 20px 25px;
  border-radius: 10px;
  text-align: center;
  width: auto;
  max-width: 350px;
}

.cta-box p {
  background-color: rgb(68, 68, 68);
  padding: 10px 50px;
  border-radius: 20px;
}

.release-date {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background: rgb(68, 68, 68);
  color: rgb(255, 255, 255);
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
}

/* Trending Sections */
.trending {
  padding: 30px 60px;
}

.trending h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.card-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: #FFFFFF;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

.card {
  background: #FFFFFF;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  flex: 1 1 150px;
  max-width: 500px;

  display: flex;
  flex-direction: column;
  max-height: 400px;
}

.card-image {
  width: 100%;
  height: 250px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-image img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 15px;
  display: block;
}

.game-title,
.price {
  margin: 2px 0;
  padding: 0;
  line-height: 1.2;
}

.price {
  color: #000000;
  font-size: 1rem;
}

.game-title {
  color: black;
  font-size: 1.5rem;
}

/* Product Page Layout */
.content {
  display: flex;
  justify-content: center;
  align-items: stretch;   /* ensures equal column height */
  gap: 20px;
  padding: 40px 20px;
  background: #ffffff;
  margin-top: 30px;
  margin-left: 5%;
  margin-right: 5%;
  border-radius: 20px;
  height: 452px;
}


/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  border: 1px solid #ccc;
  cursor: pointer;
  object-fit: cover;
}

/* Main Image */
.main-image {
  background-color: #F6F0F0;
  padding: 10px;
  border-radius: 10px;
  flex: 1;               /* allows it to stretch */
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-image img {
  height: 95%;
  border-radius: 10px;
}

/* Product Info */
.product-info {
  background: #F6F0F0;
  padding: 20px;
  border-radius: 10px;
  min-width: 220px;
  flex: 1;               /* equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps total at bottom */
}

.product-info h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

/* Options */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex-grow: 1;          /* fills vertical space */
}

.options label {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

/* Status + Total */
.status {
  background: #ddd;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

#total {
  font-size: 20px;
  font-weight: bold;
  text-align: right;
}


/* Footer */
footer {
   background: #FFFFFF;
  border-color: #D5D0D0;
  border-top: 3px solid #D5D0D0;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
}

.search-bar {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 20px;
    font-family: 'Bahnschrift', 'Segoe UI', 'Roboto', sans-serif;
}

.search-bar form {
  display: flex;
  width: 100%;
  max-width: 400px;
    font-family: 'Bahnschrift', 'Segoe UI', 'Roboto', sans-serif;
}

.search-bar input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
    font-family: 'Bahnschrift', 'Segoe UI', 'Roboto', sans-serif;
  border-radius: 4px 0 0 4px;
}

.search-bar button {
  padding: 6px 12px;
  border: none;
  background: #e63946; /* matches your .red theme */
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
    font-family: 'Bahnschrift', 'Segoe UI', 'Roboto', sans-serif;
}

.search-bar button:hover {
  background: #b82c36;
    font-family: 'Bahnschrift', 'Segoe UI', 'Roboto', sans-serif;
}

.platform-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two columns */
  gap: 12px;
  max-width: 400px;  /* optional: limit width */
  margin: 0 auto;    /* center the grid container */
}

.platform-btn {
  padding: 12px 20px;
  text-align: center;
  border: 2px solid #999;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Hover style */
.platform-btn:hover {
  border-color: #666;
}

/* Active style */
input[type="radio"]:checked + .platform-btn {
  background-color: #444;
  color: #fff;
  border-color: #444;
}

/* If the last item is alone on its row, center it */
.platform-options > *:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Disabled / unavailable example */
.platform-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}