/* ==========================================================================
   DMGPLEX VHS Theme — Static GitLab Pages Replacement (SPA Layout)
   Replaces: West theme + Live Composer inline styles + sccss custom CSS
   
   Color system (from Live Composer DSLC_Html preset html2):
   - Background:     #0a0a0a (body), rgba(0,0,0,0.67) (module cards)
   - Cyan (text):    #15d5d2
   - Purple (h1):    #9c83f5
   - Pink (links):   #df5dcb
   - Border:         rgba(21,213,210,0.75)
   - Fonts:          Questrial (body), Unica One (headings)
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background — dark texture from bkgd.png, fixed attachment per original */
body {
  background-color: #0a0a0a;
  background-image: url('../images/bkgd-3.png');
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: repeat;
  color: #15d5d2;
  font-family: 'Questrial', sans-serif;
  min-height: 100vh;
}

/* ==========================================================================
   VHS Logo — sticky container so nav stays visible on scroll
   ========================================================================== */

.vhs-logo {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
}

.logo-image {
  max-width: 550px;
  width: 100%;
  height: auto;
  display: block;
}

/* Logo wrapper — positions nav + status overlays relative to image */
.logo-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Navigation overlay — positioned on top of VHS logo image */
.vhs-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(21, 213, 210, 0.2);
}

.vhs-nav a {
  color: #15d5d2;
  text-decoration: none;
  font-family: 'Unica One', cursive;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.vhs-nav a:hover {
  color: #df5dcb;
  text-shadow: 0 0 8px rgba(223, 93, 203, 0.5);
}

/* Active nav link — cyan glow underline + brighter color */
.vhs-nav a.active {
  color: #15d5d2;
  text-shadow: 0 0 10px rgba(21, 213, 210, 0.6);
}

.vhs-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #15d5d2;
  box-shadow: 0 0 8px rgba(21, 213, 210, 0.6);
  border-radius: 1px;
}

/* Status overlay — bottom of logo */
.logo-status-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  text-align: center;
}

/* Status indicator dot + text */
.status-indicator {
  font-family: "Unica One", cursive;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.status-indicator.status-green {
  color: #00ff00;
  text-shadow: 0 0 6px rgba(0, 255, 0, 0.5);
}

.status-indicator.status-red {
  color: #ff4444;
  text-shadow: 0 0 6px rgba(255, 68, 68, 0.5);
}

/* ==========================================================================
   SPA Content Container
   ========================================================================== */

.spa-content {
  position: relative;
  min-height: 60vh;
}

/* ==========================================================================
   Sections — SPA visibility & fade transitions
   All sections hidden by default; .active section is visible
   ========================================================================== */

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 19%;
  /* SPA: hidden by default */
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Fade transition */
  transition: opacity 0.4s ease-in-out, visibility 0s 0.4s;
}

/* Active section — visible and faded in */
.section.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transition: opacity 0.4s ease-in-out, visibility 0s 0s;
}

/* ==========================================================================
   Content modules — replaces DSLC_Html preset html2
   Background: rgba(0,0,0,0.67), border: 8px solid rgba(21,213,210,0.75),
   border-radius: 30px
   ========================================================================== */

.module-content {
  background-color: rgba(0, 0, 0, 0.67);
  border: 8px solid rgba(21, 213, 210, 0.75);
  border-radius: 30px;
  padding: 2.5rem;
  width: 100%;
  max-width: 900px;
}

/* Posts module — thicker border, larger radius (DSLC_Posts preset) */
.module-posts {
  border-width: 15px;
  border-radius: 45px;
}

/* Headings — Unica One font, purple color */
.module-content h1 {
  color: #9c83f5;
  font-family: 'Unica One', cursive;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

/* Links — pink color */
.module-content a {
  color: #df5dcb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.module-content a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(223, 93, 203, 0.6);
}

/* ==========================================================================
   Tape images — center aligned, padding per original DSLC_Image modules
   ========================================================================== */

.tape-image {
  display: block;
  margin: 0 auto;
  padding: 10px 0;
  max-width: 768px;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   STATUS table
   ========================================================================== */

.status-table {
  width: 100%;
  border-collapse: collapse;
  color: #15d5d2;
  font-size: 1.1rem;
}

.status-table thead th {
  color: #9c83f5;
  font-family: 'Unica One', cursive;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(21, 213, 210, 0.3);
  text-align: left;
}

.status-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(21, 213, 210, 0.1);
}

.status-table td:first-child {
  font-family: 'Unica One', cursive;
  color: #9c83f5;
}

.status-green {
  color: #00ff00;
  font-family: 'Questrial', sans-serif;
}

.status-red {
  color: #ff4444;
  font-family: 'Questrial', sans-serif;
}

/* ==========================================================================
   JOIN form — Formspree replacement
   ========================================================================== */

.form-description {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: rgba(21, 213, 210, 0.8);
}

.module-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-content input[type="text"],
.module-content input[type="email"] {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(21, 213, 210, 0.4);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  color: #15d5d2;
  font-family: 'Questrial', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.module-content input[type="text"]:focus,
.module-content input[type="email"]:focus {
  outline: none;
  border-color: rgba(21, 213, 210, 0.8);
  box-shadow: 0 0 8px rgba(21, 213, 210, 0.3);
}

.module-content input::placeholder {
  color: rgba(21, 213, 210, 0.4);
}

.module-content button[type="submit"] {
  background: rgba(21, 213, 210, 0.15);
  border: 2px solid rgba(21, 213, 210, 0.75);
  border-radius: 5px;
  padding: 0.75rem 2rem;
  color: #15d5d2;
  font-family: 'Unica One', cursive;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.module-content button[type="submit"]:hover {
  background: rgba(21, 213, 210, 0.3);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(21, 213, 210, 0.3);
}

/* ==========================================================================
   REQUEST iframe
   ========================================================================== */

.iframe-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.module-content iframe {
  width: 100%;
  max-width: 1280px;
  height: 720px;
  border: none;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   UPDATES grid — replaces Live Composer post carousel
   ========================================================================== */

.updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.update-item {
  padding: 1.5rem;
  border: 1px solid rgba(21, 213, 210, 0.3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease;
}

.update-item:hover {
  border-color: rgba(21, 213, 210, 0.6);
}

.update-item h3 {
  color: #15d5d2;
  font-family: 'Questrial', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.update-item time {
  color: rgba(21, 213, 210, 0.5);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

.update-item p {
  color: rgba(21, 213, 210, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Loading / no-JS fallback text */
.loading-text,
.nojs-text {
  color: rgba(21, 213, 210, 0.5);
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .section {
    padding: 2rem 10%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 5%;
  }

  .module-content {
    padding: 1.5rem;
  }

  .module-content h1 {
    font-size: 1.8rem;
  }

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

  .module-content iframe {
    height: 400px;
  }

  /* Nav overlay responsive */
  .vhs-nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
  }

  .vhs-nav a {
    font-size: 1rem;
  }

  /* Logo responsive */
  .logo-image {
    max-width: 333px;
  }

  .logo-status-overlay {
    padding: 0.4rem 0.75rem;
  }

  .status-indicator {
    font-size: 0.85rem;
  }

  .status-table {
    font-size: 0.9rem;
  }

  .tape-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1.5rem 3%;
  }

  .module-content {
    padding: 1rem;
    border-width: 4px;
    border-radius: 15px;
  }

  .module-posts {
    border-width: 8px;
    border-radius: 25px;
  }

  .module-content h1 {
    font-size: 1.5rem;
  }

  /* Nav overlay responsive — small screens */
  .vhs-nav {
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .vhs-nav a {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  /* Logo responsive */
  .logo-image {
    max-width: 213px;
  }

  .logo-status-overlay {
    padding: 0.3rem 0.5rem;
  }

  .status-indicator {
    font-size: 0.75rem;
  }
}