/* --- Globala Variabler & Återställning --- */
:root {
  --bg-body: #121212;
  --bg-card: #1e1e1e;
  --text-main: #e0e0e0;
  --text-muted: #aaaaaa;
  --text-on-primary: #ffffff;
  
  --primary: #b30000;
  --primary-light: #e60000;
  --accent: #d4af37;
  --accent-glow: rgba(212, 175, 55, 0.3);

  --border-color: #333333;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);

  --font-main: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Knappar & Kort --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-on-primary);
  box-shadow: 0 4px 15px rgba(179, 0, 0, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(179, 0, 0, 0.6);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: #121212;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.card {
  background-color: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #444444;
}

.card-content {
  padding: 2.5rem;
}

/* --- Header & Navigation --- */
.main-header {
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logotyp bildformat */
.logo-icon {
  width: 200px;
  height: 125px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-on-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-on-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* --- Hero Sektion --- */
.hero-section {
  position: relative;
  height: 80vh;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-on-primary);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(18, 18, 18, 1));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
  color: var(--primary-light);
  position: relative;
}

.hero-subtitle {
  font-size: 1.55rem;
  color: #cccccc;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* --- Delad Hero-knapp --- */
.hero-btn-group {
  display: inline-flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-split-btn {
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-bio {
  background-color: var(--primary);
  color: var(--text-on-primary);
}

.btn-bio:hover {
  background-color: var(--primary-light);
}

.btn-lokal {
  background-color: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(5px);
  color: var(--accent);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-lokal:hover {
  background-color: var(--accent);
  color: #121212;
}

/* --- Huvudinnehåll --- */
.container {
  max-width: 1100px;
  margin: -50px auto 4rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 20;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.info-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px var(--accent-glow);
}

.info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-on-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.info-card a {
  color: var(--primary-light);
}

.info-card a:hover {
  text-decoration: underline;
}

/* Om-sektion */
.about-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  color: var(--text-on-primary);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

.lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.cinema-text {
  color: var(--accent);
  font-weight: 600;
}

.about-section p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Bildsektion */
.image-container {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.image-container img {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

/* Biljett-inforuta */
.ticket-info-box {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a0000 100%);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0rem;
  box-shadow: 0 0 20px rgba(179, 0, 0, 0.3);
}

.ticket-icon-big {
  font-size: 3rem;
  color: var(--accent);
  transform: rotate(-15deg);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.ticket-text h3 {
  color: var(--text-on-primary);
  margin-bottom: 0.5rem;
}

.ticket-text p {
  color: #cccccc;
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Bioprogram Sektion & Filmkort --- */
#bioprogram {
  padding: 40px 1rem;
  max-width: 1200px;
  margin: 20px auto;
}

#movieGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.movie-card {
  background: #141414;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: #555555;
  box-shadow: var(--shadow-lg);
}

.movie-poster-wrap {
  position: relative;
  height: 380px;
  background: #000000;
}

.movie-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-light);
  color: #ffffff;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.movie-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.movie-title {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: var(--text-on-primary);
}

.movie-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.movie-price {
  color: #ffffff;
  font-weight: 700;
}

.movie-desc {
  color: #aaaaaa;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 16px 0;
  flex: 1;
}

/* --- Footer --- */
.main-footer {
  background-color: #0a0a0a;
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-welcome {
  font-weight: 600;
  color: var(--text-on-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-copy {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.5rem;
}

.footer-social a:hover {
  color: var(--primary-light);
  transform: scale(1.1);
}

/* --- Responsivitet --- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .hero-section {
    height: 60vh;
  }

  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-btn-group {
    flex-direction: column;
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
  }

  .hero-split-btn {
    justify-content: center;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .container {
    margin-top: -30px;
    padding: 0 1rem;
  }

  .card-content {
    padding: 1.5rem;
  }
  
  .ticket-info-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  #movieGrid {
    grid-template-columns: 1fr;
  }
}

/* --- Trailer Overlay & Play-knapp --- */
.trailer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.trailer-play-icon {
  width: 58px;
  height: 58px;
  background: rgba(179, 0, 0, 0.9);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 10px var(--accent-glow);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.trailer-play-icon i {
  margin-left: 4px; /* Optisk centrering av play-triangeln */
}

/* Hover-effekt på dator */
.movie-poster-wrap:hover .trailer-overlay {
  opacity: 1;
}

.movie-poster-wrap:hover .trailer-play-icon {
  transform: scale(1.15);
  background: var(--primary-light);
}

/* Mobilanpassning: knappen visas alltid på pekskärmar */
@media (max-width: 768px) {
  .trailer-overlay {
    opacity: 1;
    background: transparent;
    pointer-events: none; /* Tillåter klick direkt på knappen */
  }

  .trailer-overlay a,
  a.trailer-overlay {
    pointer-events: auto;
  }

  .trailer-play-icon {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.75);
  }
}