@charset "utf-8";
/*
  Zaynab Ahmed's room.css file
      
  Author:          Zaynab Ahmed
  Created:         November 9, 2026 
  Last Modified:   November 9, 2026

  Filename:         room.css
  Supporting files: room.css
                      journal.js
                      profile.js
                      account.js
                      room.js
                      room.html
                      profile.html
                      test.html
                      blog.html
                      profile.html
                      index.html
                      layout.css
                      reset.css
                      room.css
                      styles.css
                      george-cox-NFpvXe7sSJM-unsplash.jpg
                      waves_audio.mp3
                      waves_visual.mp4
                      Web_Project_Notes.docx

  Description:   CSS styles for the Room page of the CWME test site.
*/
/* Establish the full-screen room canvas and its shared foreground colors. */
.room-page {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: #14201e;
  color: #fff;
}

/* Keep the site navigation and footer readable while letting the video show through. */
.room-page .site-header,
.room-page .site-footer {
  position: fixed;
  z-index: 2;
  left: 0;
  width: 100%;
  max-width: none;
  padding-right: clamp(1.25rem, 5vw, 5rem);
  padding-left: clamp(1.25rem, 5vw, 5rem);
  border-color: rgb(255 255 255 / 18%);
  background: rgb(15 25 24 / 22%);
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.room-page .site-header {
  top: 0;
  min-height: 76px;
}

.room-page .site-footer {
  bottom: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}

.room-page .site-name,
.room-page nav a,
.room-page nav a.active,
.room-page .footer-note {
  color: #fff;
}

.room-page nav a {
  opacity: 0.82;
}

.room-page nav a:hover,
.room-page nav a.active {
  opacity: 1;
}

.room-page .footer-note {
  opacity: 0.78;
}

/* Center the room content above the fixed background media. */
.room-main {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  gap: clamp(1.5rem, 5vh, 3rem);
  isolation: isolate;
  padding: 7.5rem 1.5rem;
  text-align: center;
}

/* Stretch the ambient video and contrast shade across the viewport. */
.room-background,
.room-shade {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.room-background {
  max-width: none;
  object-fit: cover;
}

.room-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(9 19 18 / 36%), transparent 36%, rgb(9 19 18 / 42%)),
    rgb(9 19 18 / 15%);
}

/* Style the welcome text and the smaller translucent journal prompt card. */
.room-intro {
  max-width: 720px;
  text-shadow: 0 2px 24px rgb(0 0 0 / 28%);
}

.room-eyebrow {
  margin-bottom: 0.8rem;
  color: #d3ded7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.room-intro h1 {
  margin-bottom: 0.8rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
}

.room-intro > p:last-child {
  color: rgb(255 255 255 / 88%);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

/* Restore the compact translucent reflection card and its input controls. */
.room-journal {
  width: min(100%, 560px);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 18px;
  background: rgb(15 25 24 / 42%);
  text-align: left;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.room-journal .room-eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.62rem;
}

.room-journal h2 {
  margin-bottom: 0.9rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

.room-journal textarea {
  display: block;
  width: 100%;
  min-height: 82px;
  padding: 0.75rem 0.85rem;
  resize: vertical;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 10px;
  background: rgb(6 16 15 / 32%);
  color: #fff;
  font-size: 0.9rem;
}

.room-journal textarea::placeholder {
  color: rgb(255 255 255 / 62%);
}

.room-journal-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
}

.room-entry-status {
  color: #f2d8be;
  font-size: 0.75rem;
}

.room-journal-link {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 38%);
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.room-journal-link:hover {
  transform: translateX(2px);
  background: rgb(255 255 255 / 24%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keep a discreet button available to open the player controls. */
.media-toggle {
  position: fixed;
  z-index: 3;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 6.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 999px;
  background: rgb(18 31 29 / 68%);
  color: #fff;
  font-size: 0.84rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 160ms ease, transform 160ms ease;
}

.media-toggle:hover {
  transform: translateY(-2px);
  background: rgb(18 31 29 / 88%);
}

.media-toggle-icon {
  font-size: 1.1rem;
}

/* Place the media players in a matching glass-style dialog. */
.media-panel {
  position: fixed;
  inset: auto clamp(1rem, 3vw, 2rem) 8rem auto;
  width: min(420px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100svh - 10rem);
  margin: 0;
  padding: 1.35rem;
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 18px;
  background: rgb(22 33 31 / 94%);
  color: #fff;
  box-shadow: 0 20px 70px rgb(0 0 0 / 34%);
}

.media-panel::backdrop {
  background: rgb(5 12 11 / 18%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.media-panel[open] {
  animation: panel-arrive 180ms ease-out;
}

.media-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.media-panel-heading .room-eyebrow {
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
}

.media-panel-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
}

.media-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.media-control + .media-control {
  margin-top: 1.1rem;
}

.media-control label {
  display: block;
  margin-bottom: 0.45rem;
  color: #d8e1db;
  font-size: 0.8rem;
  font-weight: 600;
}

.media-control video,
.media-control audio {
  display: block;
  width: 100%;
  max-width: none;
  border-radius: 10px;
}

.media-control video {
  max-height: 205px;
  background: #0c1514;
  object-fit: cover;
}

.media-control audio {
  height: 44px;
}

/* Use a short entrance motion for the controls dialog. */
@keyframes panel-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  /* Fit navigation, prompt card, and controls on smaller screens. */
  .room-page .site-header {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
    padding-top: 0.65rem;
    padding-bottom: 0.6rem;
  }

  .room-page nav {
    gap: clamp(0.55rem, 3vw, 1.2rem);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .room-page nav::-webkit-scrollbar {
    display: none;
  }

  .room-page nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .room-page .site-footer {
    gap: 0.35rem 1rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .room-page .site-footer .site-name {
    font-size: 0.95rem;
  }

  .room-page .footer-note {
    font-size: 0.64rem;
  }

  .room-page .footer-note:nth-of-type(2) {
    display: none;
  }

  .room-main {
    gap: 1.5rem;
    padding: 8.5rem 1.1rem 9rem;
  }

  .room-journal {
    border-radius: 15px;
  }

  .media-toggle {
    right: 1rem;
    bottom: 5.2rem;
  }

  .media-panel {
    right: 1rem;
    bottom: 8.6rem;
    max-height: calc(100svh - 11rem);
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Respect users who prefer less interface motion. */
  .media-panel[open] {
    animation: none;
  }

  .media-toggle {
    transition: none;
  }

  .room-journal-link {
    transition: none;
  }
}
