/* ============================================
   Letní kino Jenštejn 2026 - Styles
   ============================================ */

:root {
  --color-primary: #0f1f4a;      /* Tmavá modrá */
  --color-accent: #e63946;        /* Akcent - červenka */
  --color-light: #f1faee;         /* Světlý text/background */
  --color-border: #457b9d;        /* Hraniční barva */
  --spacing-unit: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a52 100%);
  background-attachment: fixed;
  color: var(--color-light);
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-unit);
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.poster-container {
  width: 100%;
  max-width: 900px;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-container picture {
  width: 100%;
  height: 100%;
  display: block;
}

.poster-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(230, 57, 70, 0.3);
}

/* ============================================
   Header/Branding
   ============================================ */

header {
  text-align: center;
  padding: calc(var(--spacing-unit) * 1.5) var(--spacing-unit);
  border-bottom: 2px solid rgba(69, 123, 157, 0.3);
  margin-bottom: var(--spacing-unit);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--color-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  font-size: 1.1rem;
  color: rgba(241, 250, 238, 0.8);
  font-weight: 300;
  letter-spacing: 1px;
}

/* ============================================
   Footer
   ============================================ */

footer {
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 2px solid rgba(69, 123, 157, 0.3);
  padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
  margin-top: calc(var(--spacing-unit) * 2);
  text-align: center;
  animation: slideUp 0.8s ease-in 0.3s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-section p,
.footer-section a {
  font-size: 0.95rem;
  color: rgba(241, 250, 238, 0.9);
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-divider {
  height: 1px;
  background: rgba(69, 123, 157, 0.3);
  margin: calc(var(--spacing-unit) * 1.5) 0;
}

.footer-bottom {
  font-size: 0.75rem;
  color: rgba(241, 250, 238, 0.7);
}

.copyright-line {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  margin: 0;
  padding: 0.2rem 0.5rem;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.2;
  color: rgba(241, 250, 238, 0.7);
  background: transparent;
  backdrop-filter: none;
  z-index: 999;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .main-content {
    padding: 0.75rem;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: var(--spacing-unit);
  }
}

/* Mobile */
@media (max-width: 576px) {
  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  header {
    padding: var(--spacing-unit);
    margin-bottom: 0.5rem;
  }

  .poster-container {
    max-width: 100%;
  }

  .poster-container img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }

  footer {
    padding: var(--spacing-unit);
    margin-top: var(--spacing-unit);
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.85rem;
  }

  .copyright-line {
    font-size: 0.62rem;
    padding: 0.3rem 0.45rem;
  }
}

/* Landscape orientation optimization */
@media (orientation: landscape) and (max-height: 600px) {
  header {
    display: none;
  }

  .main-content {
    padding: 0.5rem;
  }

  body {
    justify-content: center;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* ============================================
   Accessibility & Performance
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0a1428 0%, #0f1f3a 100%);
  }
}
