/* =============================================
   The Witches Circle — Site Styles
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:        #0e0a14;
  --color-bg-dark:   #0a0710;
  --color-surface:   #1a1228;
  --color-accent:    #9b59b6;
  --color-accent-2:  #c39bd3;
  --color-text:      #e8dff0;
  --color-muted:     #9a8aaa;

  --font-heading: 'IM Fell English', Georgia, serif;
  --font-body:    'Segoe UI', system-ui, sans-serif;
  --font-game:    'Special Elite', 'Courier New', monospace;

  --max-width: 1200px;
  --section-padding: 4rem 1.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 19px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
header {
  background-color: var(--color-bg-dark);
  background-image: url('../images/header-banner.png');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--color-surface);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 16, 0.6);
}

header .container {
  position: relative;
  z-index: 1;
}

.logo {
  display: block;
  line-height: 0;
}

.logo-img {
  max-height: 90px;
  width: auto;
  max-width: 100%;
  filter: invert(1) brightness(0.9);
}

.tagline {
  color: var(--color-text);
  font-size: 1rem;
  margin-top: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
}

.section--dark {
  background-color: var(--color-bg-dark);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--color-accent-2);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-surface);
}

.section p {
  color: var(--color-text);
}

/* --- Game Card --- */
.game-card {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  padding: 2rem;
  font-family: var(--font-game);
}

.game-logo {
  display: block;
  max-width: 320px;
  width: 100%;
  margin-bottom: 1rem;
  /* Black logo on white bg — invert to white; screen blend removes the resulting black bg on dark cards */
  filter: invert(1) brightness(0.9);
  mix-blend-mode: screen;
}


.game-description {
  color: var(--color-text);
  margin-top: 0.75rem;
  line-height: 1.8;
}

.game-features {
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.game-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  transition: opacity 0.2s;
}

.game-btn:hover {
  opacity: 0.85;
}

.game-btn--secondary {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent-2);
}

.game-btn--secondary:hover {
  background: var(--color-accent);
  color: #fff;
  opacity: 1;
}

/* --- Trailer + Steam Row --- */
.trailer-steam-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 646px;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: start;
}

.steam-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.steam-widget iframe {
  display: block;
}

.steam-wishlist-mobile {
  display: none;
}

/* --- Trailer --- */
.trailer-embed {
  position: relative;
  margin-top: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #000;
}

.trailer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.trailer-embed:hover .trailer-thumb {
  opacity: 0.7;
}

.trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(155, 89, 182, 0.85);
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.75rem;
  padding-left: 4px; /* optical centering of play icon */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.trailer-embed:hover .trailer-play {
  background: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.1);
}

/* --- Screenshots --- */
.screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.screenshots img {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--color-surface);
  cursor: zoom-in;
  transition: transform 0.2s, border-color 0.2s;
}

.screenshots img:hover {
  transform: scale(1.02);
  border-color: var(--color-accent);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(155, 89, 182, 0.4);
  cursor: zoom-out;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(155, 89, 182, 0.25);
  border: 1px solid var(--color-accent);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
  padding: 0;
}

.lightbox-btn img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  display: block;
}

.lightbox-btn:hover {
  background: var(--color-accent);
}

.lightbox-btn--prev {
  left: 1.5rem;
  transform: translateY(-50%) scaleX(-1);
}

.lightbox-btn--next { right: 1.5rem; }

/* --- Team --- */
.team-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team-member {
  background: var(--color-surface);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.member-photo {
  width: 130px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top;
  display: block;
}

.member-info {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.member-name {
  font-weight: 600;
  color: var(--color-accent-2);
  font-family: var(--font-heading);
}

.member-title {
  color: var(--color-accent);
  font-style: italic;
  font-family: var(--font-heading);
}

.member-role {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.member-quote {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.4;
}

/* --- Social Links --- */
#connect .container {
  text-align: center;
}


.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent-2);
  text-decoration: none;
  font-size: 1.3rem;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.social-icon-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* --- Footer --- */
footer {
  background-color: var(--color-bg-dark);
  border-top: 1px solid var(--color-surface);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .trailer-steam-row {
    grid-template-columns: 1fr;
  }
}

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

  .team-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 645px) {
  .steam-widget {
    display: none;
  }

  .steam-wishlist-mobile {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  header {
    padding: 2rem 1rem 1.5rem;
  }

  .logo-img {
    max-height: 60px;
  }

  .game-card {
    padding: 1.25rem;
  }

  .game-logo {
    max-width: 100%;
  }

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

  .member-photo {
    display: none;
  }

  .social-icon-btn {
    width: 46px;
    height: 46px;
  }
}
