/* --- Midnight Modern Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Merriweather:wght@400;700&display=swap');


html{
    scroll-behavior: smooth;
}

:root {
  --base: rgba(46, 52, 86, 1);
  --grey: #ccdce1;
  --accent: #7181d7;
  --text-light: #ededed;
  --text-dim: rgba(255, 255, 255, 0.7);
}

body {
  background: var(--base);
  color: var(--text-light);
  font-family: "Montserrat", Arial, sans-serif;
  margin: 0;
  line-height: 1.6;

}

/* HEADER */
header {
  text-align: center;
  border-bottom: 2px solid var(--grey);
  padding: 2rem 1rem;
}

header h1 {
  color: var(--grey);
  font-weight: 700;
  margin: 0;
  font-family: 'Merriweather', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);

}


/* --- NAVIGATION BAR --- */

.navbar {
  width: 100%;
  background: var(--base);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-light);
}

#logo{
  height:2rem;
  margin-top:1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--grey);
  font-weight: 500;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* --- MOBILE TOGGLE BUTTON --- */

.nav-toggle {
  display: none;
  border: none;
  width: 2rem;
  height: 2rem;
  background: none;
  cursor: pointer;
    transition: 0.3s ease;

}

.nav-toggle-line {
  height:0.2rem;
  margin-bottom:0.2rem;
  margin-top:0.2rem;
  background-color: var(--grey);
  display:block;
  width: 100%;
  position: relative;

}

.nav-toggle:hover {

}


/* --- MOBILE STYLES --- */
@media (max-width: 800px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--base);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0;
    display: none; /* Hidden by default */
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-links.open {
    display: flex;
  }
}

/* --- HERO SLIDESHOW --- */

.hero-slider {
  position: relative;
  
  height: 50vw;
  max-height:40vh;
  overflow: hidden;
  
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;


}

.hero-slider .slide.active {
  opacity: 1;


}

/* Overlay tint */
.hero-slider .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
      backdrop-filter: blur(2px);

}

.slide-content {
  width: 100%;
  position: relative;
  margin-right:auto;
  margin-top:auto;
  z-index: 2;
  text-align: left;
  color: var(--accent-light);
  padding: 1rem;

  animation: fadeUp 0.3s ease forwards;
  

}

.slide-content h1 {
  font-size: 2.8rem;
  color: var(--accent-light);

  text-shadow: 1px 1px 1px rgba(13,39,69,0.5);
}

.slide-content p {
  font-size: 1.2rem;
  color: var(--accent-light);
  margin-top:0rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 1px rgba(13,39,69,0.5);
}

/* Call to Action Button */
.hero-btn {
  background: var(--accent);
  color: var(--main-bg);
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;

}

.hero-btn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* Dots Navigation */
.slider-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  z-index: 5;
}

.slider-dots button {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: auto;
  margin-bottom: auto;
  border-radius: 50%;
  border: none;
  background: none;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.3s ease;
}

.slider-dots button.active {
  
  background: white;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Fade-up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 2rem;
  }
  .slide-content p {
    font-size: 1rem;
  }
}



/* --- HERO / INTRO SECTION --- */

.hero {
  position: relative;
  height: 50vh;
  min-height: 240px;
  background: url(../images/retro.jpg);
  
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay{
  padding: 2rem;
  border-radius: rem;
}



@keyframes glowMove {
  from { transform: translateX(-10%) translateY(-10%) scale(1); opacity: 0.6; }
  to { transform: translateX(10%) translateY(5%) scale(1.2); opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  padding: 0 1rem;
  max-width: 800px;
  animation: fadeUp 0.3s ease forwards;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--grey);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.hero-content .tagline {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Hero button matches your global .button style */
.hero-button {
  background: var(--grey);
  color: var(--base);
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;

}

.hero-button:hover {
  background: var(--accent);
  transform: translateY(-3px);

}

/* Responsive typography */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .tagline {
    font-size: 1rem;
  }
}

/* MAIN STRUCTURE */
body {

}

main {
  
  margin: 2rem auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  color: var(--grey);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
}

/* --- SPLIT VIEW FILM LAYOUT --- */

/* Grid container for each film */
.film {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 60rem;
  margin: auto;
  background: var(--base);
  color: #fff;

  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Poster styling */
.film img {
  margin: 2rem;
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.film:hover img {
  filter: brightness(1);
}

/* Text/info column */
.film-details {
  padding: 1.2rem 1.4rem;
}

.film-details h3 {
  font-size: 1.8rem;
  margin: 0 0 0rem;
}

.film-details .meta {
  /*color: var(--text-dim);*/
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;

  
}

.film-details p {
  color:var(--grey);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  
}

/* Showtime table on the right */
.film-details table.showtimes {
  background-color: var(--base);
  width: 100%;
  margin-top: 0.6rem;
  border-collapse: collapse;


}

.film-details table.showtimes th,
.film-details table.showtimes td {
  
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.film-details table.showtimes th {
  color: var(--accent);
  text-align: left;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.film-details table.showtimes td:first-child {
  color: var(--grey);
  font-weight: 600;
  
}

.film-details table.showtimes td:last-child {
  color: var(--text-light);
}

/* On tablets/smaller screens switch to stacked layout */
@media (max-width: 900px) {
  .film {
    grid-template-columns: 1fr;
  }
  .film img {
    margin-left:auto;
    margin-right:auto;
    max-width:340px;
  }
  .film-details {
    padding: 1rem;
  }
  .film-details h3 {
    font-size: 1.4rem;
  }
}

/* Minor spacing and typography tune-up */
#film-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* --- Showtime Table Styling (Compact + Responsive) --- */

table.showtimes {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);

  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  table-layout: fixed;
}

table.showtimes thead {
  background: var(--grey);
}

table.showtimes th {
  text-align: left;
  color: var(--accent);
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(73, 217, 168, 0.2);
}

table.showtimes td {
  padding: 0.4rem 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

table.showtimes tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

table.showtimes tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s ease-in-out;
}

table.showtimes td:first-child {
  color: #49d9a8;
  font-weight: 500;
  width: 25%;
  white-space: nowrap;
}

table.showtimes td:last-child {
  color: #e8fef6;
  font-weight: 400;
}

/* --- FEATURED HOLIDAY GIFT SECTION --- */

.featured {

  background: black;
  padding: 4rem 1rem;
  color: var(--text-light);
  border-top: 2px solid rgba(73,217,168,0.15);
  border-bottom: 2px solid rgba(73,217,168,0.15);
}

.featured-content {
  max-width: 60rem;
  margin: auto;;
  padding-left:1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;

  margin: 0 auto;
}

.featured-text {
  text-align: left;
}

.featured-text h2 {
  font-size: 2rem;
  color: var(--grey);
  margin-bottom: 0.5rem;

}

.featured-text h3 {
  line-height: 0;
  margin-bottom: 0rem;
}

.featured-text .subtitle {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 500;
}

.featured-text p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}



/* Call to action button */
.featured-button {
  display: inline-block;
  background: var(--grey);
  color: var(--base);
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;

  transition: all 0.3s ease;
}

.featured-button:hover {
  background: var(--accent);
  transform: translateY(-3px);

}

/* Image styling */
.featured-image img {
  width: 100%;
  max-width: 20rem;
  max-height: 20rem;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Responsive design */
@media (max-width: 900px) {
  .featured-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .featured-text {
    order: 2;
  }

  .featured-image {
    order: 1;
  }

  .featured-text h2 {
    font-size: 1.6rem;
  }

  .featured-text p {
    font-size: 0.95rem;
  }
}


/* CALENDAR */
#calendar {
  max-width: 60rem;
  margin: auto;
}

#calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  
}

.cal-btn {
  background: transparent;
  border: 1px solid var(--grey);
  color: var(--grey);
  border-radius: 5px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: 0.3s;
}

.cal-btn:hover {
  background: var(--grey);
  color: var(--base);
}

#calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.calendar-day-header {
  text-align: center;
  font-weight: bold;
  opacity: 0.7;
}

.calendar-cell {
  background: rgba(255,255,255,0.05);
  
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
}

.calendar-cell:hover {
  background: var(--accent);
}



.calendar-cell.today {
  outline: 1px solid var(--accent);
  outline-offset: 1px;

}

.calendar-cell.has-show {
  border: 1px solid var(--accent);
}

.calendar-cell.past {
  opacity: 0.4;
  pointer-events: none;
  border:none;
}


/* DETAILS */
#calendar-details {
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.calendar-film {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0;
}

.calendar-film img {
  width: 70px;
  height: 95px;
  border-radius: 6px;
  object-fit: cover;
}



/* BUTTONS */
a.button {
  display: inline-block;
  background: var(--grey);
  color: var(--base);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

a.button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
  font-size: 0.9rem;
}


@media (max-width: 600px) {
  table.showtimes th,
  table.showtimes td {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
}


/* --- TIMELINE SECTION --- */

.timeline-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-title {
  text-align: center;
  font-size: 2rem;
  color: var(--grey);
  margin-bottom: 3rem;

}

/* Line down the center */
.timeline {
  position: relative;
  padding: 2rem 0;
}


/* Items */
.timeline-item {
  width: 50%;
  padding: 1rem 2rem;
  position: relative;
}


.timeline-content {
  background: rgba(255,255,255,0.05);
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}


.timeline-content h3 {
  color: var(--grey);
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
}

.timeline-content p {
  color: var(--text-light);
  opacity: 0.9;
  line-height: 1.4;
}

/* Dot markers */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  background: var(--grey);
  border-radius: 50%;

}

.timeline-item.left::before {
  right: -7px;
}

.timeline-item.right::before {
  left: -7px;
}


/* Mobile stack */
@media (max-width: 800px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    text-align: left;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item.right .timeline-content {
    border-right: none;
  }

  .timeline-item::before {
    left: 13px;
  }
}
