/* -------------------- */
/* Font Face Declarations */
/* -------------------- */

/* Watch Dogs fanmade title font for headings / ticker */
@font-face {
  font-family: 'WD Title';
  src: url('fonts/HACKED.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Helvetica Neue for body text */
@font-face {
  font-family: 'Neue Helvetica';
  src: url('fonts/HelveticaNeue-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* -------------------- */
/* Body and background */
body {
  margin: 0;
  background: url('images/vcr.gif') center center / cover no-repeat fixed;
  color: #F5F5F5;
  font-family: 'Neue Helvetica', monospace;
  position: relative;
}

/* Dark overlay for readability */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 1;
}

/* CRT Scanlines overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0.05) 1px
  );
  pointer-events: none;
  z-index: 3;
  animation: flicker 0.15s infinite;
}

/* Flicker effect */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 22%, 24%, 55% { opacity: 0.85; }
}

/* -------------------- */
/* Main content */
main {
  max-width: 800px;
  margin: 6rem auto 2rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

/* Headings */
h1, h2 {
  color: #39BBE8;
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
}

/* Bold titles in content */
strong, b {
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
}

/* -------------------- */
/* Ticker */
.ticker {
  position: fixed;
  top: 0;
  width: 100%;
  background: #000;
  border-bottom: 1px solid #39BBE8;
  overflow: hidden;
  z-index: 4;
  font-family: 'Neue Helvetica', monospace;
}

.ticker-text {
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll 25s linear infinite;
}

.ticker-text span {
  margin-right: 2rem;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* -------------------- */
/* Nav buttons */
.top-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  max-width: 800px;
  margin: 4rem auto 2rem;
  z-index: 4;
  position: relative;
}

.top-buttons .btn {
  background: #000;
  color: #39BBE8;
  padding: 0.5rem 1rem;
  border: 1px solid #39BBE8;
  text-decoration: none;
  font-family: 'Neue Helvetica', monospace;
  transition: background 0.2s, color 0.2s;
}

.top-buttons .btn:hover {
  background: #39BBE8;
  color: #000;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .ticker-text {
    animation: none;
    padding-left: 1rem;
  }
}

/* -------------------- */
/* Images / Media */
img {
  max-width: 100%;
  height: auto;
  border: 1px solid #39BBE8;
  position: relative;
  z-index: 2;
}

/* Media grid for photos, GIFs, audio */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.media-item {
  flex: 1 1 300px;
  max-width: 400px;
  background: rgba(0,0,0,0.85);
  border: 1px solid #39BBE8;
  border-radius: 2px;
  padding: 1rem;
  box-shadow: 0 0 5px #39BBE8;
  position: relative;
  z-index: 2;
}

.media-note {
  margin-top: 0.5rem;
  color: #39BBE8;
  font-size: 0.9rem;
  font-family: 'Neue Helvetica', monospace;
}


/* -------------------- */
/* Site Profile */
.site-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 4rem; /* push below ticker */
  margin-bottom: 1.5rem; /* less spacing before buttons */
  z-index: 2;
  position: relative;
}

.profile-avi {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #39BBE8;
  object-fit: cover;
  box-shadow: 0 0 5px #39BBE8;
  margin-bottom: 0.8rem; /* slightly tighter */
}

.site-profile h2 {
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
  margin-bottom: 0.2rem; /* reduce space before pronouns */
}

.site-profile .pronouns {
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.9rem;
  color: #39BBE8;
  margin-bottom: 0.5rem; /* keep small spacing before bio */
}

.site-profile .bio {
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.95rem;
  max-width: 400px;
  line-height: 1.4;
  margin-bottom: 0; /* remove extra space below bio */
}

/* -------------------- */
/* Navigation Buttons */
.top-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 2rem; /* remove top margin, buttons sit right below profile */
  z-index: 4;
  position: relative;
}


/* -------------------- */
/* Blog entries */
.blog-entry {
  background: rgba(0,0,0,0.85);
  border: 1px solid #39BBE8;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 2rem;
  box-shadow: 0 0 5px #39BBE8;
  position: relative;
  z-index: 2;
}

.blog-entry h2 {
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
  color: #39BBE8;
  margin-bottom: 0.3rem;
}

.entry-date {
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.85rem;
  color: #39BBE8;
  margin-bottom: 0.7rem;
}

.entry-content {
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.95rem;
  color: #F5F5F5;
  line-height: 1.4;
}


/* -------------------- */
/* Media Grid / Media Items */
.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.media-item {
  flex: 1 1 280px; /* responsive width */
  max-width: 360px; /* slightly smaller cards for consistency */
  background: rgba(0,0,0,0.7); /* semi-transparent so background is visible */
  border: 1px solid #39BBE8;
  border-radius: 3px;
  padding: 0.8rem;
  box-shadow: 0 0 5px #39BBE8;
  text-align: center;
  font-family: 'Neue Helvetica', monospace;
  color: #F5F5F5;
}

.media-item img {
  max-width: 100%;
  height: auto;
  border: 1px solid #39BBE8;
  margin-bottom: 0.5rem;
}

.media-note {
  font-size: 0.9rem;
  color: #39BBE8;
  margin-top: 0.4rem;
}

.media-item audio {
  width: 100%;
  margin-top: 0.3rem;
}

.media-item iframe {
  border: 1px solid #39BBE8;
  box-shadow: 0 0 6px #39BBE8;
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 1rem auto 2.5rem;
  z-index: 2;
  position: relative;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: #39BBE8;
  filter: drop-shadow(0 0 4px #39BBE8);
  transition: transform 0.2s ease, fill 0.2s ease;
}

.social-links a:hover svg {
  transform: scale(1.15);
  fill: #ffffff;
}



.currently-playing {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.currently-playing h2 {
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
  margin-bottom: 1.5rem;
  color: #39BBE8;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; /* small, even spacing */
  justify-items: center; /* center each card */
}

.game-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem;
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-radius: 4px;
}

.game-card img {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border-radius: 2px;
}

.game-info h3 {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: #F5F5F5;
}

.game-info p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  color: #F5F5F5;
}




.gaming-log {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.gaming-log h2 {
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
  color: #39BBE8;
  margin-bottom: 1rem;
}

.backloggd-link {
  font-family: 'Neue Helvetica', monospace;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.backloggd-link a {
  color: #ff9900; /* Highlighted color for BacklogGD */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px dotted #ff9900;
}

.backloggd-link a:hover {
  color: #39BBE8;
  border-bottom-color: #39BBE8;
}

.game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.game-card {
  background: rgba(0,0,0,0.85);
  border: 1px solid #39BBE8;
  border-radius: 4px;
  box-shadow: 0 0 8px #39BBE8;
  width: 280px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s;
}

.game-card:hover {
  transform: translateY(-3px);
}

.game-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #39BBE8;
}

.game-info {
  padding: 0.75rem 1rem;
  color: #F5F5F5;
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.95rem;
}

.game-info h3 {
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
  color: #39BBE8;
  margin-bottom: 0.5rem;
}


.gaming-intro {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.95rem;
  color: #F5F5F5;
}

.gaming-intro a {
  color: #39BBE8;
  font-weight: bold;
  text-decoration: underline dotted #39BBE8;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.gaming-intro a:hover {
  color: #ff9900;
  text-decoration-color: #ff9900;
}

.gaming-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto;
}

.game-card {
  background: rgba(0,0,0,0.7);
  border: 1px solid #39BBE8;
  border-radius: 4px;
  box-shadow: 0 0 5px #39BBE8;
  width: 280px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.2s;
}

.game-card:hover {
  transform: translateY(-2px);
}

.game-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid #39BBE8;
}

.game-info {
  padding: 0.75rem 1rem;
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.95rem;
  color: #F5F5F5;
  line-height: 1.3;
}

.game-info h3 {
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
  color: #39BBE8;
  margin-bottom: 0.5rem;
}


/* -------------------- */
/* Scrollable Media Layout */
.media-scroll {
  overflow-x: auto; /* horizontal scroll */
  padding: 1rem 0;
}

.media-grid {
  display: flex;
  gap: 1.5rem;  /* spacing between cards */
  padding-left: 1rem;
}

.media-item {
  flex: 0 0 320px; /* fixed width for each card */
  background: rgba(0,0,0,0.85);
  border: 1px solid #39BBE8;
  border-radius: 4px;
  padding: 1rem;
  box-shadow: 0 0 5px #39BBE8;
  text-align: center;
}

.media-item img,
.media-item iframe {
  width: 100%;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.media-note {
  color: #F5F5F5;
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Optional: hide scrollbar for cleaner look */
.media-scroll::-webkit-scrollbar {
  height: 6px;
}
.media-scroll::-webkit-scrollbar-thumb {
  background: #39BBE8;
  border-radius: 3px;
}


/* -------------------- */
/* Blog page styling */
/* -------------------- */
.blog-entry {
  background: rgba(0, 0, 0, 0.85); /* semi-dark box */
  border: 1px solid #39BBE8;
  border-radius: 4px;
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 0 10px #39BBE8; /* subtle glow like terminal */
  color: #F5F5F5; /* white text for readability */
}

.blog-entry h2 {
  font-family: 'WD Title', 'Neue Helvetica', sans-serif;
  color: #39BBE8;
  margin-bottom: 0.3rem;
}

.blog-entry .entry-date {
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.85rem;
  color: #AAAAAA;
  margin-bottom: 0.8rem;
}

.blog-entry .entry-content {
  font-family: 'Neue Helvetica', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #F5F5F5;
}

/* Make the blog main scrollable if entries overflow */
main {
  overflow-y: auto;
}


