/* ============================================
   Schönbrunn Palace Website - Main Styles
   ============================================ */

/* Mobile Menu */
.mobile-menu-hidden {
  display: none;
}

/* Text Truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article Content Styling */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.85);
}

.article-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: #1A1A1A;
  line-height: 1.3;
}

.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1A1A1A;
  line-height: 1.35;
}

.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  color: #1A1A1A;
  line-height: 1.4;
}

.article-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #1A1A1A;
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.85);
}

.article-content p:first-child {
  font-size: 1.25rem;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.8);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: rgba(26, 26, 26, 0.85);
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  padding-left: 0.5rem;
}

.article-content li::marker {
  color: #D4AF37;
}

.article-content strong,
.article-content b {
  font-weight: 600;
  color: #1A1A1A;
}

.article-content em,
.article-content i {
  font-style: italic;
}

.article-content a {
  color: #D4AF37;
  text-decoration: underline;
  transition: color 0.2s;
}

.article-content a:hover {
  color: #A67C00;
}

.article-content blockquote {
  border-left: 4px solid #D4AF37;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background-color: rgba(212, 175, 55, 0.05);
  font-style: italic;
  color: rgba(26, 26, 26, 0.75);
  border-radius: 0.25rem;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-content hr {
  border: none;
  border-top: 2px solid rgba(26, 26, 26, 0.1);
  margin: 3rem 0;
}

.article-content code {
  background-color: rgba(26, 26, 26, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #A67C00;
}

.article-content pre {
  background-color: rgba(26, 26, 26, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
  color: rgba(26, 26, 26, 0.85);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.article-content table th,
.article-content table td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(26, 26, 26, 0.1);
  text-align: left;
}

.article-content table th {
  background-color: rgba(212, 175, 55, 0.1);
  font-weight: 600;
  color: #1A1A1A;
}

.article-content table tr:nth-child(even) {
  background-color: rgba(26, 26, 26, 0.02);
}

/* Raw HTML embeds (like GetYourGuide widgets) */
.article-content .raw-html-embed {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #F7F3E9;
  border-radius: 0.75rem;
}

/* First paragraph drop cap effect (optional) */
.article-content > p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  float: left;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: #D4AF37;
  font-family: 'Playfair Display', serif;
}

/* Floating CTA Button */
.floating-cta-button {
  position: fixed;
  z-index: 9999;
  padding: 16px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: floating-pulse 2s ease-in-out infinite;
}

.floating-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.floating-cta-button:active {
  transform: translateY(-1px);
}

/* Position variants */
.floating-cta-button.bottom-right {
  bottom: 30px;
  right: 30px;
}

.floating-cta-button.bottom-left {
  bottom: 30px;
  left: 30px;
}

.floating-cta-button.top-right {
  top: 100px;
  right: 30px;
}

.floating-cta-button.top-left {
  top: 100px;
  left: 30px;
}

/* Pulse animation */
@keyframes floating-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.5);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-cta-button {
    padding: 7px 10px;
    font-size: 14px;
  }
  
  .floating-cta-button.bottom-right,
  .floating-cta-button.bottom-left {
    bottom: 20px;
  }
  
  .floating-cta-button.bottom-right,
  .floating-cta-button.top-right {
    right: 20px;
  }
  
  .floating-cta-button.bottom-left,
  .floating-cta-button.top-left {
    left: 20px;
  }
  
  .floating-cta-button.top-right,
  .floating-cta-button.top-left {
    top: 80px;
  }
}

/* Hide on scroll down, show on scroll up (optional feature) */
.floating-cta-button.hidden {
  transform: translateY(150px);
  opacity: 0;
  pointer-events: none;
}

/* Timeline Pulse Animation */
@keyframes timeline-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.timeline-pulse {
  animation: timeline-pulse 2s infinite;
}

/* Timeline Connecting Lines */
.timeline-container {
  position: relative;
}

.timeline-container > div:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: calc(100% + 2rem); /* 100% + space-y-8 (2rem) */
  background-color: #D4AF37;
  margin-left: 1px; /* Aligns with the dot center */
  z-index: 0;
}

.z-5000 {
  z-index: 5000 !important;
}