/* ==========================================================================
   GEMEENSCHAPPELIJKE STIJLEN - HET TOLHUISJE
   ========================================================================== */

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Verbeterde navigatie */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Verbeterde animaties */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Verbeterde buttons */
.fancy, .fancy2 {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fancy:hover, .fancy2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Verbeterde afbeeldingen */
.img, .img-fluid {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.img:hover, .img-fluid:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Verbeterde secties */
.cafe, .about_section, .about {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    margin: 2rem 0;
}

/* QR code verbetering */
.qr-code {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

/* Toegankelijkheid verbeteringen */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Focus states */
button:focus, a:focus, input:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Carousel verbeteringen */
.carousel-control-prev, .carousel-control-next {
    transition: all 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 0.8;
}

.carousel-item img {
    transition: all 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

/* About image verbeteringen */
.about-img {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Menu section verbeteringen */
.about-menu {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Iframe verbeteringen */
iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

iframe:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Responsive verbeteringen */
@media (max-width: 768px) {
    .navbar-brand img {
        width: 200px !important;
    }
    
    .fade-in, .slide-in-left, .slide-in-right {
        transform: none;
        opacity: 1;
    }
    
    .img:hover, .img-fluid:hover, .about-img:hover {
        transform: none;
    }
}

/* Smooth scrolling voor hele pagina */
html {
    scroll-behavior: smooth;
}

/* Verbeterde focus voor toegankelijkheid */
.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Loading state voor afbeeldingen */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}