
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Header styling */
header {
    top: 0;
    width: 100%;
  background-color: rgba(35, 34, 34, 1);
  padding: 0.25rem 1rem;
  position: fixed;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav img {
  height: 60px;
  width: auto;
}

.header-title h1 {
  color: white;
  font-size: 2rem;
  margin-left: 1rem;
}

/* Menu styling */
.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu a {
  border-radius: 5px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding: 6px 10px;
  transition: background 0.3s ease;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* CTA dropdown */
.cta-menu {
  position: relative;
}

.cta-menu .cta {
  cursor: pointer;
  background-color: #a149f3 ;
  color: #000;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: bold;
}

.cta-menu .cta:hover {
background-color: #872fcc ;
}

/* Hero */
.hero-games {
  background-image: url('/Images/gamehero.png');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 3rem 2rem;
  color: #f3f3f3;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  margin-top: 3rem;
}

.hero-games::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); 
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px !important;
  text-align: left;
}

.hero-games h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-games p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  width: 85%;
}

.btn.primary {
  background-color: #7c3aed;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn.primary:hover {
  background-color: #5b21b6;
}

/* active games */

.active-games-section {
  padding: 4rem 2rem;
  background: #111;
  color: #eee;
}

.section-header {
  width: 100%;
  background: #1a1a1a;
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  border-radius: 5px;
}

.section-header h2 {
  font-size: 2rem;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1rem;
  color: #bbb;
}

.active-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.game-card {
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 2.5rem 2rem; 
  gap: 2rem;
  align-items: center;
  min-height: 220px; 
}

.game-info {
  flex: 1;
  line-height: 1.7;
  font-size: 1.05rem; 
}

.map-thumb {
  height: 213px; 
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.view-game-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #6b46c1;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  text-decoration: none;
}

.view-game-btn:hover {
  background: #7c3aed;
}

/* Placeholder card styling */
.placeholder-card {
  background: #1a1a1a;
  border: 1px dashed #444;
  opacity: 0.8;
}

.placeholder-card h3 {
  color: #ccc;
}

.placeholder-card p {
  color: #888;
}

.placeholder-card .view-game-btn {
  background: #444;
  color: #ccc;
}

.placeholder-card .view-game-btn:hover {
  background: #555;
  color: #fff;
}

.gray {
  filter: grayscale(85%);
}


/* upcoming */

.upcoming-games-section {
  padding: 4rem 2rem;
  background-color: #1d1d1d;
  color: #eee;
}

.upcoming-games-section h2::before {
  content: "";
  display: block;
  height: 5rem; 
  margin-top: -5rem; 
  visibility: hidden;
}

.upcoming-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.upcoming-header {
  max-width: 300px;
}

.upcoming-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.upcoming-header p {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.5;
}

.upcoming-list {
  flex: 2 1 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.upcoming-item {
  background: #111;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border-left: 5px solid rgb(154, 38, 164);
  transition: background 0.2s ease;
}

.upcoming-item:hover {
  background: rgba(35, 34, 34, 1);
}

.game-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.game-meta {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 0.5rem;
}

.join-link {
  color: rgb(154, 38, 164);
  font-weight: bold;
  text-decoration: none;
}

.join-link:hover {
  text-decoration: underline;
}

.custom-game-cta {
  margin-top: 2rem;
}

.custom-game-cta p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.75rem;
}

.custom-game-cta .btn.primary {
  background-color: #7c3aed;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-block;
}

.custom-game-cta .btn.primary:hover {
  background-color: #5b21b6;
}


/* custom */

.diplomacy-section {
  width: 100%;
  background-color: #111;
  color: #eee;
  padding: 4rem 2rem;
  margin: 0;
}

.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.left-content {
  flex: 1 1 500px;
}

.left-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.game-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ccc;
}

.btn.primary {
  background-color: #7c3aed;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-block;
  margin-bottom: 2rem;
}

.btn.primary:hover {
  background-color: #5b21b6;
}

.dev-note {
  background-color: #1a1a1a;
  color: rgb(154, 38, 164);
  border-left: 5px solid rgb(154, 38, 164);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.right-image {
  flex: 1 1 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-card {
  background: #1c1c1c;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  width: 100%;
}

.map-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}


/* archive */
/* Game Archive Section */
.game-archive-section {
  padding: 5rem 2rem;
  background:  #111;
  color: #e2e2e2;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.archive-header h2 {
  font-size: 2.25rem;
  color: #fafafa;
  margin-bottom: 0.5rem;
}

.archive-header p {
  color: #aaa;
  font-size: 1rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.archive-card {
  background: #121212;
  border: 1px solid #292929;
  border-left: 6px solid #7c3aed;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.archive-card:hover {
  background-color: #181818;
  transform: translateY(-4px);
}

.archive-info h3.archive-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.archive-meta {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.status {
  font-weight: bold;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.status.completed {
  color: #22c55e;
  background-color: rgba(34, 197, 94, 0.1);
}

.status.abandoned {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.status.paused {
  color: #eab308;
  background-color: rgba(234, 179, 8, 0.1);
}


.site-footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 3rem 2rem;
  font-size: 0.9rem;
  border-top: 2px solid #333;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  flex: 1 1 250px;
}

.footer-logo {
  width: 60px;
  margin-bottom: 1rem;
}

.footer-links,
.footer-social {
  flex: 1 1 150px;
}

.footer-links h4,
.footer-social h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-social ul li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.footer-social a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    color: #eee;
}

.footer-privacy h4 {
  margin-bottom: 0.5rem;
}

.footer-privacy a {
  color: #ccc;
  text-decoration: none;
}

.footer-privacy a:hover {
  color: #fff;
}

.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 240px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 6px 10px;
  position: absolute;
  top: 120%; 
  right: 0; 
  font-size: 14px;
  line-height: 1.4;
  transition: opacity 0.2s ease-in-out;
  white-space: normal;
  pointer-events: none;
  z-index: 10;
}

.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* ===== Mobile: max-width 768px ===== */
@media screen and (max-width: 768px) {

  /* Active Games Grid */
  .active-games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .hero-content {
    margin-bottom: 24vh !important;
  }

  .game-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .map-thumb {
    width: 100%;
    height: auto;
    margin-top: 1rem;
  }

  /* Upcoming Games */
  .upcoming-container {
    flex-direction: column;
  }

  .upcoming-header {
    max-width: 100%;
  }

  .upcoming-list {
    flex: 1 1 100%;
  }

  .upcoming-item {
    padding: 1rem;
  }

  /* Game Archive */
  .archive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .archive-card {
    padding: 1.5rem;
  }

  .archive-info h3.archive-title {
    font-size: 1.25rem;
  }

  .archive-meta {
    font-size: 0.9rem;
  }

  /* Diplomacy Section */
  .content-container {
    flex-direction: column;
  }

  .left-content,
  .right-image {
    flex: 1 1 100%;
  }

  .right-image {
    margin-top: 2rem;
  }

  .map-card {
    max-width: 100%;
  }
}

/* ===== Small Laptops/Tablets: min-width 769px and max-width 880px ===== */
@media screen and (min-width: 769px) and (max-width: 880px) {

  .active-games-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .game-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .map-thumb {
    width: 100%;
    height: auto;
    margin-top: 1rem;
  }

  .upcoming-container {
    flex-direction: column;
  }

  .upcoming-header {
    max-width: 100%;
  }

  .upcoming-list {
    flex: 1 1 100%;
    width: 100%;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .content-container {
    flex-direction: column;
  }

  .right-image {
    margin-top: 2rem;
  }

  .map-card {
    max-width: 100%;
  }
}

/* ===== Medium Desktops / Large Tablets: min-width 881px and max-width 1200px ===== */
@media screen and (min-width: 881px) and (max-width: 1200px) {

  .active-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
  }

  .game-card {
    flex-direction: row;
    align-items: center;
    padding: 2rem;
  }

  .map-thumb {
    width: 45%;
    height: auto;
  }

  .upcoming-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .upcoming-header {
    max-width: 300px;
  }

  .upcoming-list {
    flex: 2 1 600px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .content-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .left-content,
  .right-image {
    flex: 1 1 45%;
  }

  .map-card {
    max-width: 100%;
  }
}

/* Hero Section Responsiveness */

/* Mobile: max-width 768px */
@media screen and (max-width: 768px) {
  .hero-games {
    padding: 2rem 1rem;
    min-height: 90vh;
    background-position: top center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 24vh !important;
  }

  .hero-games h1 {
    font-size: 2rem;
  }

  .hero-games p {
    font-size: 1rem;
    width: 100%;
  }

  .btn.primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* Small tablets / laptops: min-width 769px and max-width 880px */
@media screen and (min-width: 769px) and (max-width: 880px) {
  .hero-games {
    padding: 2.5rem 2rem;
    min-height: 90vh;
    background-position: center center;
  }

  .hero-content {
    text-align: left;
  }

  .hero-games h1 {
    font-size: 2.5rem;
  }

  .hero-games p {
    font-size: 1.1rem;
  }

  .btn.primary {
    padding: 0.7rem 1.3rem;
    font-size: 1rem;
  }
}

/* Medium desktops / large tablets: min-width 881px and max-width 1200px */
@media screen and (min-width: 881px) and (max-width: 1200px) {
  .hero-games {
    padding: 3rem 2rem;
    min-height: 90vh;
    background-position: center center;
  }

  .hero-content {
    max-width: 1200px !important;
    text-align: left;
  }

  .hero-games h1 {
    font-size: 3rem;
  }

  .hero-games p {
    font-size: 1.15rem;
    width: 85%;
  }

  .btn.primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}
