/* === CSS Variables === */
:root {
  /* Main Color Scheme (Split-Complementary) */
  --primary-color: #4a6fdb;
  --primary-dark: #3457c0;
  --primary-light: #7991e5;
  --secondary-color: #db4a6f;
  --secondary-dark: #c03457;
  --secondary-light: #e57991;
  --accent-color: #6fdb4a;
  --accent-dark: #57c034;
  --accent-light: #91e579;
  
  /* Neutral Colors */
  --dark: #1a1a2e;
  --dark-gray: #333344;
  --mid-gray: #777788;
  --light-gray: #ddddee;
  --light: #f5f5f8;
  
  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --box-shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
  --box-shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === Base Styles === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Layout Helpers === */
.warped-grid {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.warped-grid > div {
  transition: transform var(--transition-medium);
}

.warped-grid > div:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
  z-index: 1;
}

/* === Animations === */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* === Components === */

/* Buttons */
.btn, 
button, 
input[type='submit'] {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  border: 2px solid transparent;
}

.btn:hover, 
button:hover, 
input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-medium);
}

.btn:active, 
button:active, 
input[type='submit']:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-medium);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  width: 100%;
}

.card-body {
  padding: var(--spacing-md);
}

/* Forms */
.form-control, .form-select {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 111, 219, 0.2);
}

/* === Header & Navigation === */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--box-shadow-light);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark-gray);
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
}

.navbar-light .navbar-nav .nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.navbar-light .navbar-nav .nav-link:hover:after {
  transform: scaleX(1);
}

/* === Hero Section === */
.hero-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  padding: 8rem 0;
  text-align: center;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p {
  color: white;
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* === Sections Styling === */

/* Čtvrti Section */
.ctvrti-section {
  padding: var(--spacing-xl) 0;
}

/* Ceny Section */
.ceny-section {
  padding: var(--spacing-xl) 0;
}

.price-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.price-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-info {
  padding: var(--spacing-md);
  width: 100%;
}

.price-table {
  overflow-x: auto;
}

/* External Sources Section */
.zdroje-section {
  padding: var(--spacing-xl) 0;
}

.resource-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--box-shadow-light);
  height: 100%;
  transition: transform var(--transition-medium);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
}

.resource-card h3 {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.resource-card .list-group-item {
  padding: 0.75rem 0;
  border-color: var(--light-gray);
}

.resource-card a {
  font-weight: 600;
}

/* Historie Section */
.historie-section {
  padding: var(--spacing-xl) 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--primary-light);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  padding: var(--spacing-md) 0;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-image {
  width: 40%;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-medium);
}

.timeline-content {
  width: 60%;
  padding: 0 var(--spacing-md);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Calendar Section */
.calendar-section {
  padding: var(--spacing-xl) 0;
}

.event-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.event-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  padding: var(--spacing-md);
  width: 100%;
}

.event-list {
  list-style: none;
  padding: 0;
}

.event-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
}

.event-date {
  font-weight: 600;
  color: var(--secondary-color);
}

.event-title {
  margin-top: 5px;
}

/* Community Section */
.community-section {
  padding: var(--spacing-xl) 0;
}

.community-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-content {
  padding: var(--spacing-md);
  width: 100%;
}

/* Behind the Scenes Section */
.behind-section {
  padding: var(--spacing-xl) 0;
}

.behind-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.behind-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.behind-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.behind-content {
  padding: var(--spacing-md);
  width: 100%;
}

/* Press Section */
.press-section {
  padding: var(--spacing-xl) 0;
}

.press-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.press-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.press-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.press-content {
  padding: var(--spacing-md);
  width: 100%;
}

.press-quote {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--secondary-color);
  border-left: 3px solid var(--secondary-light);
  padding-left: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xl) 0;
}

.contact-info, .contact-form {
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-light);
  height: 100%;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-map {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
}

.contact-map img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
}

.footer h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.footer h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
}

.footer p {
  color: var(--light-gray);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--light-gray);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.newsletter h4 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.copyright {
  color: var(--mid-gray);
  margin-top: var(--spacing-md);
}

/* === Special Pages === */

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-md);
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
}

/* Privacy & Terms Pages */
.privacy-page, .terms-page {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.privacy-content, .terms-content {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-light);
}

/* === Media Queries === */
@media (max-width: 991.98px) {
  .timeline:before {
    left: 31px;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    margin-left: 50px;
  }

  .timeline-image, .timeline-content {
    width: 100%;
    padding: var(--spacing-sm) 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .warped-grid > div:hover {
    transform: none;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .price-image, 
  .event-image, 
  .community-image, 
  .behind-image, 
  .press-image {
    height: 200px;
  }
  
  .contact-map {
    margin-top: var(--spacing-md);
  }
}

@media (max-width: 575.98px) {
  :root {
    --spacing-xl: 3rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .hero-section {
    padding: 6rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
}