/* Global Logo Styles */
.global-logo-container {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 30;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.global-logo-container:hover {
    opacity: 1;
}

.global-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.global-logo-link:hover {
    transform: translateY(-1px);
}

.global-logo-image {
    width: auto;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
    border-radius: 8px;
}

.global-logo-image:hover {
    filter: brightness(1.3);
}

/* Default size - matches original index page logo */
.global-logo-image {
    height: 28px;
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .global-logo-container {
        top: 1rem;
        left: 1rem;
    }
    
    .global-logo-image {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .global-logo-container {
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .global-logo-image {
        height: 20px;
    }
}

/* Hide global logo when sidebar is present (authenticated pages) */
body:has(#sidebar) .global-logo-container {
    display: none;
}

/* Special handling for index page */
.index-page .global-logo-container,
body.index-page .global-logo-container {
    display: block !important; /* Ensure it shows on index page even if other rules try to hide it */
}

/* Ensure logo doesn't interfere with mobile menu button */
@media (max-width: 1023px) {
    body:has(#mobile-menu-btn) .global-logo-container {
        left: 4rem; /* Move right to avoid mobile menu button */
    }
}
