@import "tailwindcss";
@plugin '@tailwindcss/typography';
@config "../../../../../../../tailwind.config.js";

@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400..800;1,400..800&display=swap');

@theme {
  --color-primary: #47A94E;
  --color-primary-dark: #005E07;
}

@layer base {
    html { scroll-behavior: smooth; }
    body { font-family: 'Rethink Sans', sans-serif; }
}

@media (min-width: 1024px) {
    .group ul li a, 
    .group-sub ul li a,
    [role="menubar"] a {
        color: #231F20;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .group:hover > ul, 
    .group:focus-within > ul,
    .group-sub:hover > ul, 
    .group-sub:focus-within > ul { 
        opacity: 1; 
        visibility: visible; 
        display: block; 
    }
}

@media (min-width: 1440px) and (max-width: 1920px) {
    .custom-logo-size {
        width: 147px;
        height: 39px;
    }
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    display: block;
    background: #47A94E;
    color: white;
    padding: 12px 24px;
    z-index: 9999;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid white;
}

#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    background: white;
    z-index: 70;
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 1024px) {
    #mobile-menu, .mobile-overlay {
        display: none;
    }
}

.contact-link {
    text-decoration: none;
}
.contact-link:hover {
    text-decoration: underline;
}

.hero-image-container {
    width: 896px;
    height: 470px;
    overflow: hidden;
    border-radius: 1rem; 
}

.hero-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prose p, 
.prose ul, 
.prose ol, 
.prose .wp-block-image, 
.prose .wp-block-embed,
.prose .wp-block-gallery {
    margin-bottom: 1.5rem;
}

.prose ul {
    list-style-type: none;
    padding-left: 0;
    max-width: 768px;
}

.prose li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem; 
    font-weight: 400; 
}

.prose li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.625rem; 
    width: 4px;
    height: 4px;
    background-color: #47A94E;
    border-radius: 50%;
}

.prose li a {
    color: #47A94E;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.prose li a:hover {
    color: #000000;
    opacity: 1;
}

.prose h2 {
    font-size: 2.25rem; 
    font-weight: 600; 
    line-height: 2.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.prose iframe {
    width: 768px;
    height: 431.88px;
    max-width: 100%;
    border-radius: 1rem;
    margin: 2rem 0;
}

.prose .wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 16px;
    width: 896px;
    margin-left: calc(50% - 448px);
    margin-right: calc(50% - 448px);
    max-width: 100vw;
    height: auto;
    padding: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    list-style: none;
}

.prose .wp-block-gallery .wp-block-image {
    margin: 0;
    width: 212px;
    height: 153.25px;
    flex-basis: 212px;
    flex-grow: 0;
    flex-shrink: 0;
}

.prose .wp-block-gallery img {
    width: 212px;
    height: 153.25px;
    object-fit: cover;
    border-radius: 1rem;
    margin: 0;
}

@media (max-width: 896px) {
    .hero-image-container, .prose .wp-block-gallery {
        width: 100%;
        height: auto;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-image-container {
        aspect-ratio: 896/470;
    }
}

/* Vypnutí rádiusů pouze pro video */
.prose iframe, 
.prose video, 
.prose .ytmCuedOverlayHost { 
    border-radius: 0; 
}


/* Styly pro Lightbox */
#custom-lightbox {
    display: none; 
    position: fixed;
    inset: 0; 
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9); 
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out; 
}

#custom-lightbox img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    cursor: default; 
    transition: transform 0.3s ease;
}

body:has(#custom-lightbox[style*="display: flex"]) {
    overflow: hidden;
}