/* =============================================
   PLUTONIUM INTERACTIVE — INNER PAGES STYLES
   (about, games, faq, contact, team, history)
   ============================================= */

/* ===== ABOUT PAGE ===== */
.about-intro {
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-intro p {
  color: var(--off-white);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
}
.about-aside {
  padding-top: 20px;
}
.about-pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: var(--toxic);
  text-shadow: var(--glow-sm);
  border-left: 2px solid var(--eerie);
  padding-left: 28px;
  margin-bottom: 40px;
}
.about-mission-vision {
  padding: 0 80px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(0,255,0,0.06);
}
.mv-block {
  background: var(--black);
  padding: 52px 48px;
}
.mv-block h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--eerie);
  margin-bottom: 20px;
}
.mv-block p {
  color: var(--off-white);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== OUR TEAM PAGE ===== */
.team-grid {
  padding: 60px 80px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.team-collaborators {
  padding: 0 80px 80px;
}

/* ── Flip card container ── */
.team-card {
  position: relative;
  overflow: hidden;
  background: var(--grey);
  cursor: none;
  /* Fixed height so front and back are the same size */
  min-height: 320px;
}

/* ── Front face: avatar + name + role ── */
.team-card-front {
  position: absolute;
  inset: 0;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

/* ── Back face: bio + socials ── */
.team-card-back {
  position: absolute;
  inset: 0;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0d1a0d;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  z-index: 3;
  border-left: 2px solid var(--eerie);
}

/* ── Bottom green line (front only) ── */
.team-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--eerie), transparent);
  transform: scaleX(0);
  transition: transform 0.45s ease;
  z-index: 4;
}

/* ── Hover state ── */
.team-card:hover .team-card-front {
  transform: translateX(-100%);
  opacity: 0;
}
.team-card:hover .team-card-back {
  transform: translateX(0);
  opacity: 1;
}
.team-card:hover::before {
  transform: scaleX(1);
}

/* ── Avatar ── */
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eerie-dim), #001a00);
  border: 1px solid rgba(0,255,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--eerie);
  overflow: hidden;
  flex-shrink: 0;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
  filter: grayscale(20%);
}

/* ── Back face content ── */
.team-card-back p {
  font-size: 0.88rem;
  color: var(--off-white);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 24px;
}
.team-card-back-role {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--eerie);
  display: block;
  margin-bottom: 12px;
}
.team-card-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.team-card-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,255,0,0.2);
  color: var(--off-white);
  font-size: 0.85rem;
  transition: border-color var(--transition), color var(--transition),
              background var(--transition);
  text-decoration: none;
}
.team-card-socials a:hover {
  border-color: var(--eerie);
  color: var(--eerie);
  background: rgba(0,255,0,0.05);
}

/* Collaborator grid */
.team-grid-collaborators {
  margin-top: 32px;
}
.team-card-collab {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,255,0,0.07);
  text-align: center;
  padding: 36px 28px;
}
.team-card-collab .team-avatar-collab {
  margin: 0 auto 20px;
}
.team-avatar-collab {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
}

/* Touch fallback — tap to reveal on mobile */
.team-card.is-flipped .team-card-front {
  transform: translateX(-100%);
  opacity: 0;
}
.team-card.is-flipped .team-card-back {
  transform: translateX(0);
  opacity: 1;
}

/* Collaborators section header spacing */
.team-collaborators-header {
  margin-bottom: 8px;
}
.team-collaborators-header p {
  max-width: 680px;
  margin-top: 12px;
}

/* CTA line at bottom of collaborators */
.team-collab-cta {
  margin-top: 40px;
  font-size: 0.96rem;
  color: var(--off-white);
  opacity: 0.6;
}
.team-collab-cta a {
  color: var(--eerie);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.team-collab-cta a:hover { color: var(--toxic); }
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.team-role {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--eerie);
  display: block;
  margin-bottom: 16px;
}
.team-card p {
  font-size: 0.88rem;
  color: var(--off-white);
  opacity: 0.65;
  line-height: 1.65;
}
.team-collaborators-header {
  padding: 0 0 40px;
}
.team-collaborators-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.team-collaborators-header p {
  color: var(--off-white);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
  opacity: 0.75;
}

.team-grid-collaborators {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 40px;
}

/* Collaborator card — dashed border, dimmer avatar to differentiate from core */
.team-card-collab {
  background: transparent;
  border: 1px dashed rgba(0, 255, 0, 0.12);
}
.team-card-collab:hover {
  background: rgba(0, 255, 0, 0.02);
  border-style: solid;
  border-color: rgba(0, 255, 0, 0.18);
}
.team-card-collab::before {
  background: linear-gradient(90deg, transparent, rgba(0,214,88,0.15), transparent);
}
.team-avatar-collab {
  background: transparent;
  border-color: rgba(0, 255, 0, 0.12);
  color: var(--eerie-dim);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.team-collab-cta {
  font-size: 0.92rem;
  color: var(--off-white);
  opacity: 0.55;
  font-style: italic;
}
.team-collab-cta a {
  color: var(--eerie);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.team-collab-cta a:hover { color: var(--toxic); }

@media (max-width: 900px) {
  .team-grid-collaborators { grid-template-columns: 1fr; }
}

/* ===== OUR HISTORY PAGE ===== */
.history-timeline {
  padding: 60px 80px 100px;
  position: relative;
}
.history-timeline::before {
  content: '';
  position: absolute;
  top: 60px;
  bottom: 100px;
  left: calc(80px + 8px);
  width: 1px;
  background: linear-gradient(180deg, var(--eerie) 0%, transparent 100%);
  opacity: 0.3;
}
.timeline-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  margin-bottom: 64px;
  position: relative;
}
.timeline-marker {
  text-align: right;
  padding-top: 4px;
  position: relative;
}
.timeline-marker::after {
  content: '';
  position: absolute;
  top: 10px;
  right: -20px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--eerie);
  background: var(--black);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(0,214,88,0.4);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--eerie);
}
.timeline-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--eerie-dim);
  display: block;
  margin-top: 4px;
}
.timeline-content {
  padding: 4px 0 4px 40px;
  border-left: 1px solid rgba(0,255,0,0.08);
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.timeline-content p {
  color: var(--off-white);
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.75;
}
.timeline-milestones {
  padding: 0 80px 60px;
}
.milestones-track {
  display: flex;
  overflow-x: auto;
  gap: 2px;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.milestones-track::-webkit-scrollbar { display: none; }
.milestone-item {
  flex: 0 0 220px;
  background: rgba(0,255,0,0.03);
  border: 1px solid rgba(0,255,0,0.1);
  padding: 28px 24px;
}
.milestone-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--white);
}
.milestone-item p {
  font-size: 0.82rem;
  color: var(--off-white);
  opacity: 0.55;
  line-height: 1.5;
}
.milestone-dot {
  width: 8px;
  height: 8px;
  background: var(--eerie);
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 0 6px rgba(0,214,88,0.6);
}

/* ===== OUR GAMES PAGE ===== */
.games-featured {
  padding: 60px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(0,255,0,0.015);
  border-bottom: 1px solid rgba(0,255,0,0.08);
}
.games-featured-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0a1a0a, #020802);
  position: relative;
  overflow: hidden;
}
.games-featured-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.games-featured-visual svg {
  width: 100%;
  height: 100%;
  opacity: 0.2;
}
.games-featured-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.games-featured-info .game-genre {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--eerie);
  display: block;
  margin-bottom: 16px;
}
.games-featured-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 20px;
}
.games-featured-info p {
  color: var(--off-white);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 32px;
}
.game-meta {
  margin-bottom: 28px;
}
.game-meta-row {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}
.game-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.game-meta-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--eerie-dim);
}
.game-meta-value {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

/* Status badge */
.game-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  padding: 6px 14px 6px 10px;
  border: 1px solid;
}
.game-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-concept {
  color: rgba(200, 196, 188, 0.6);
  border-color: rgba(200, 196, 188, 0.18);
  background: rgba(200, 196, 188, 0.04);
}
.status-concept .game-status-dot {
  background: rgba(200, 196, 188, 0.5);
}

.status-in-development {
  color: var(--eerie);
  border-color: rgba(0, 214, 88, 0.3);
  background: rgba(0, 214, 88, 0.06);
}
.status-in-development .game-status-dot {
  background: var(--eerie);
  box-shadow: 0 0 6px rgba(0, 214, 88, 0.7);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-published {
  color: var(--toxic);
  border-color: rgba(0, 255, 0, 0.35);
  background: rgba(0, 255, 0, 0.06);
}
.status-published .game-status-dot {
  background: var(--toxic);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Compact meta variant for list cards */
.game-meta-sm .game-meta-row { gap: 20px; margin-bottom: 12px; }
.game-meta-sm .game-meta-value { font-size: 0.8rem; }

/* Game action button groups */
.game-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.game-actions-sm {
  margin-top: 16px;
}
.game-actions-sm .btn {
  font-size: 0.75rem;
  padding: 10px 22px;
}
.game-list-card-genre {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--eerie);
  display: block;
  margin-bottom: 8px;
}
.games-list {
  padding: 60px 80px 100px;
}
.games-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 40px;
}
.game-list-card {
  background: var(--grey);
  padding: 36px 32px;
  transition: background var(--transition);
  cursor: none;
}
.game-list-card:hover { background: #0d1a0d; }
.game-list-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a1a0a, #020802);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.game-list-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* .game-list-card-genre defined above in game-meta block */
.game-list-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.game-list-card p {
  font-size: 0.86rem;
  color: var(--off-white);
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ===== FAQ PAGE ===== */
.faq-intro {
  padding: 60px 80px 40px;
}
.faq-intro p {
  color: var(--off-white);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 640px;
}
.faq-section {
  padding: 40px 80px 80px;
}
.faq-category {
  margin-bottom: 60px;
}
.faq-category-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--eerie);
  display: block;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,255,0,0.1);
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-align: left;
  padding: 22px 0;
  cursor: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--toxic); }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0,255,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--eerie);
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--eerie);
  color: var(--black);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 0 24px;
  color: var(--off-white);
  font-size: 0.96rem;
  line-height: 1.8;
  opacity: 0.8;
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  padding: 60px 80px 100px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--off-white);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.75;
}
.contact-link-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-link-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,255,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--eerie);
}
.contact-link-text {
  font-size: 0.88rem;
  color: var(--off-white);
  line-height: 1.6;
}
.contact-link-text strong {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--eerie);
  display: block;
  margin-bottom: 4px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--eerie);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
  cursor: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--eerie);
  box-shadow: 0 0 0 3px rgba(0,214,88,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group select option { background: #111; color: var(--white); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit {
  margin-top: 8px;
  align-self: flex-start;
}
.form-note {
  font-size: 0.8rem;
  color: var(--off-white);
  opacity: 0.4;
  font-style: italic;
}
.form-success {
  display: none;
  padding: 20px 24px;
  border: 1px solid var(--eerie);
  background: rgba(0,214,88,0.05);
  color: var(--eerie);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

/* ── Responsive for inner pages ── */
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }
  .about-mission-vision { grid-template-columns: 1fr; padding: 0 24px 60px; }
  .team-grid { grid-template-columns: 1fr; padding: 40px 24px 60px; }
  .team-collaborators { padding: 0 24px 40px; }
  .history-timeline { padding: 40px 24px 60px; }
  .history-timeline::before { left: calc(24px + 8px); }
  .timeline-entry { grid-template-columns: 80px 1fr; gap: 20px; }
  .timeline-milestones { padding: 0 24px 40px; }
  .games-featured { grid-template-columns: 1fr; padding: 40px 24px; }
  .games-featured-info { padding: 32px 0 0; }
  .games-list { padding: 40px 24px 60px; }
  .games-list-grid { grid-template-columns: 1fr; }
  .faq-intro { padding: 40px 24px 20px; }
  .faq-section { padding: 20px 24px 60px; }
  .contact-layout { grid-template-columns: 1fr; padding: 40px 24px 60px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Game image fixes ─────────────────────────────────────── */
.games-featured-visual .games-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.game-list-card-img img,
.games-listcard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Make sure the container is positioned for absolute children */
.game-list-card-img {
  position: relative;
}

/* ===== ADDITIONS: server-rendered form states ===== */
/* The original form was JS-only. These carry the states the PHP handler
   produces when JavaScript is unavailable. */

.form-field-error {
  color: #e07070;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-top: 6px;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
  border-color: rgba(220, 50, 50, 0.55);
}

.form-consent span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--off-white);
  line-height: 1.6;
}

.form-consent a { color: var(--toxic); }

.contact-form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--toxic) 50%),
                    linear-gradient(135deg, var(--toxic) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1.3em), calc(100% - 14px) calc(1.3em);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form select:focus { outline: none; border-color: var(--toxic); }
.contact-form option { background: #0a0a0a; color: var(--white); }

.btn.is-loading { opacity: 0.6; pointer-events: none; }
