/* === General Layout === */
body {
  font-family: 'Segoe UI', sans-serif;
  padding: 0 20px 20px;
  background: #111;
  background-image: url(../garrett-church/back1.gif);
  color: #eee;
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.6;
}

footer {
  margin-top: 3rem;
  padding: 2rem 0 1.5rem;
  background: #111; /* matches body */
  color: #777;
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid #222;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.5;
}

h1, h2 {
  font-family: 'Creepster', serif;
  color: #e74c3c;
  text-shadow: 1px 1px 2px #000;
}

h1 {
  margin: 1rem 0 1rem 0;
  text-align: center;
  font-size: clamp(2rem, 6vw, 2.8rem);
}

h2 {
  font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  border-bottom: 1px solid #333;
  padding-bottom: 0.7rem;
  margin-top: 5px;
}

#home-image {
  height: 100px;
  position: relative;
  left: calc(50% - 30px);
  top: 20px;
  width: 60px;
  margin: 0;
}

.split-web-title {
  display: inline-block;
  margin: 0;
}

h5 {
  margin: -8px 0px 15px 0;
  color: #bd6e65;
  font-style: italic;
  font-family: serif;
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  body {
    padding: 0 14px;
  }
}

/* === Movie Night Card === */
.movie-night {
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

/* === Date + Host + Theme === */
.date-host-line {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Roboto Slab', serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #bbb;
}

.info-block {
  display: inline;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
  color: #bbb;
  font-family: 'Roboto Slab', serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.info-block > * {
  display: inline;
  margin-right: 0.8ch;
}

.info-icon {
  margin-bottom: -2px;
}

.date-line {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: #e74c3c;
  font-family: sans-serif;
}

.edit-link {
  margin-left: auto;
  color: #762020;
}

.edit-link:hover {
  cursor:pointer;
  text-decoration: underline;
}

.host-text {
  font-weight: 700;
  font-family: sans-serif;
  color: #eee;
}

.theme-line {
  font-style: italic;
  color: #aaa;
  font-family: 'Creepster';
  letter-spacing: 2px;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  margin-bottom: 4px;
}

/* === Tooltip === */
.tooltip-line {
  position: relative;
  display: inline-block;
  margin-top: 4px;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.changed-note {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #e74c3c;
  margin-left: 6px;
  cursor: pointer;
}

.tooltip-text {
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-top: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  white-space: nowrap;
  z-index: 10;
  font-family: sans-serif;
  line-height: 1.4;
  display: none;
}

.changed-note:focus + .tooltip-text,
.changed-note:hover + .tooltip-text,
.changed-note.active + .tooltip-text {
  display: block;
}

/* === Movie Titles Layout === */
.movies-row,
.movies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.movies-row {
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  margin-bottom: 4px;
}

.movie-title {
  flex: 1 1 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: #2a2a2a;
  border-radius: 8px;
  font-weight: bold;
  font-size: clamp(1rem, 2.5vw, 1.0rem);
  color: #f1f1f1;
  box-shadow: 0 0 6px 1px rgba(231, 76, 60, 0.7);
  font-family: Georgia, serif;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 601px) {
  .movie-title {
    flex: 1 1 48%;
    min-width: 250px;
  }
}

/* === Poster Layout === */
.movie-poster-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

@media (min-width: 601px) {
  .movie-poster-title {
    flex-direction: row;
  }
}

.movie-poster-title img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.movie-title-text {
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #fff;
  overflow-wrap: break-word;
    word-break: break-word;
}

/* === Links === */
a {
  color: #762020;
  text-decoration: none;
  font-weight: 600;
}

.host-text a {
  text-decoration: none;
  color: inherit;
}

.movie-title a {
  color: #f1f1f1;
}

a:hover {
  text-decoration: underline;
}

/* === Form Section === */
.form-section {
  background: #1f1f1f;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 14px 30px 7px 30px;
  margin: 2rem auto;
  max-width: 540px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-section h2 {
  text-align: center;
  margin-bottom: 1.6rem;
  margin-top: 0;
}

.form-section p {
  text-align: center;
}

label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
  color: #eee;
}

input,
select {
  width: 100%;
  padding: 12px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  border: 1px solid #666;
  border-radius: 6px;
  background: #2a2a2a;
  color: #eee;
  box-sizing: border-box;
}

input:focus,
select:focus {
  outline: none;
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.4);
}

/* === Buttons === */
button {
  margin-top: 1rem;
  padding: 14px;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  background-color: #e74c3c;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  background-color: #c0392b;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
}

/* === Form Feedback === */
#form-msg {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

#form-msg.success {
  color: #2ecc71;
}

#form-msg.error {
  color: #e74c3c;
}

/* === Optional Field Indicator === */
.optional-label::after {
  content: " (optional)";
  font-weight: normal;
  font-style: italic;
  color: #aaa;
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

/* === Archive Plan / Night Of === */
.plan-section,
.nightof-section {
  margin-top: 12px;
  padding: 12px;
  border-radius: 6px;
}

.plan-section {
  background: #1a1a1a;
  border: 1px dashed #444;
  color: #ccc;
  margin-bottom: 8px;
}

.nightof-section {
  background: #222;
  border: 1px solid #333;
  color: #ddd;
}

.section-label {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: bold;
  color: #999;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Creepster', cursive;
}

/* === Selection Highlight === */
::selection {
  background: #e74c3c;
  color: #fff;
}

/* === Back Link === */
#back-link {
  color: #e74c3c;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.5rem;
  display: inline-block;
}

#back-link:hover {
  text-decoration: underline;
}

/* === Images / Gifs === */

#archive-section {
  margin: 25px 0 20px 0px;
  display: grid;
  justify-content: center;
}

@media (min-width: 630px){
  #archive-section {
    display: flex;
  }
}

#archive-link {
  justify-content: center;
  display: inline-flex;
  padding: 0px 30px 0px 30px;
}

#archive-link-text {
  margin-top: 16px;
  padding: 0 10px 0 10px;
}

img {
  margin: 5px 10px 5px 5px;
}
