/* Shared components for content pages */

/* Lightbox styles */
.content-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 24px;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  margin-bottom: 16px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  max-width: 80%;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  font-size: 32px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Images in content - no longer clickable */
.content-image {
  cursor: default;
  transition: none;
}

/* Error message styling */
.error {
  text-align: center;
  padding: 3rem;
  font-size: 18px;
  color: #D32F2F;
  background: #FFEBEE;
  border-radius: 4px;
  margin: 2rem 0;
}

/* Error page styles */
.error-page {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.error-message {
    font-size: 20px;
    color: #76777a;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.error-link {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-link:hover {
    background: #333;
    transform: translateY(-2px);
}

.error-link.secondary {
    background: transparent;
    color: #000;
    border: 1px solid #ddd;
}

.error-link.secondary:hover {
    background: #f5f5f5;
    border-color: #000;
}

/* Tablet Responsive adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .error-code {
        font-size: 100px;
    }
    
    .error-title {
        font-size: 42px;
    }
    
    .error-message {
        font-size: 19px;
        max-width: 550px;
    }
    
    .error-actions {
        gap: 1.2rem;
    }
    
    .error-link {
        padding: 11px 22px;
        font-size: 15px;
    }
    
    .lightbox-img {
        max-width: 85%;
        max-height: 75vh;
    }
    
    .lightbox-caption {
        font-size: 15px;
        max-width: 75%;
    }
    
    .lightbox-close {
        font-size: 28px;
        top: 20px;
        right: 20px;
    }
}

/* Mobile Responsive adjustments */
@media (max-width: 768px) {
    .error-page {
        padding: 2rem 1rem;
        min-height: 40vh;
    }
    
    .error-code {
        font-size: 70px;
        margin-bottom: 0.8rem;
    }
    
    .error-title {
        font-size: 28px;
        margin-bottom: 0.8rem;
    }
    
    .error-message {
        font-size: 16px;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .error-link {
        width: 180px;
        text-align: center;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .content-lightbox {
        padding: 16px;
    }
    
    .lightbox-img {
        max-width: 95%;
        max-height: 70vh;
        margin-bottom: 12px;
    }
    
    .lightbox-caption {
        font-size: 14px;
        max-width: 90%;
        line-height: 1.4;
    }
    
    .lightbox-close {
        font-size: 24px;
        top: 16px;
        right: 16px;
    }
    
    .error {
        padding: 2rem 1rem;
        font-size: 16px;
        margin: 1.5rem 0;
    }
}
