/* ===========================================================
   Niepubliczne Przedszkole "Szafranek" - styl dodatkowy
   (Tailwind ładuje się z CDN; tutaj dopisujemy unikalne reguły)
   =========================================================== */

:root {
    --pink-50:  #fff1f7;
    --pink-100: #ffe2ee;
    --pink-300: #fbb0d2;
    --pink-500: #f472b6;
    --pink-600: #ec4899;
    --pink-700: #db2777;
    --mint-100: #d1fae5;
    --mint-300: #6ee7b7;
    --mint-500: #34d399;
    --mint-700: #047857;
    --cream-50: #fffbeb;
    --cream-100:#fef3c7;
    --cream-300:#fcd34d;
    --ink:      #1f2433;
    --ink-soft: #4b5366;
}

html { scroll-behavior: smooth; }
body { font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); }

.font-script { font-family: 'Caveat', cursive; }
.font-display { font-family: 'Quicksand', sans-serif; font-weight: 700; letter-spacing: -0.01em; }

/* Hero z chmurkami i dziećmi */
.hero-bg {
    background-image: url('/assets/img/site/bg-children.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

/* Tekst hero - mocny biały halo + cień, czytelny na każdym tle ilustracji */
.hero-text {
    text-shadow:
        0 0 8px rgba(255, 255, 255, .95),
        0 0 16px rgba(255, 255, 255, .8),
        0 1px 0 rgba(255, 255, 255, .9),
        0 2px 4px rgba(0, 0, 0, .15);
}

/* Subtelne tło sekcji */
.bg-clouds {
    background-image: url('/assets/img/site/bg-children.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
}

/* Falka oddzielająca sekcje (CSS clip path) */
.wave-divider {
    position: relative;
}
.wave-divider::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 60px;
    background: inherit;
    clip-path: ellipse(60% 60% at 50% 100%);
}

/* Karty z lekkim cieniem i hoverem */
.card-hover {
    transition: transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(244, 114, 182, .4);
}

/* Linkowy podkreślnik animowany */
.link-anim {
    position: relative;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size .25s ease;
}
.link-anim:hover { background-size: 100% 2px; }

/* Overlay dla galerii */
.gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}
.gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5), transparent 40%);
    opacity: 0;
    transition: opacity .25s;
}
.gallery-thumb:hover::after { opacity: 1; }

/* Mobile menu */
.mobile-menu { transform: translateX(100%); transition: transform .25s ease; }
.mobile-menu.open { transform: translateX(0); }

/* Treści edytora (z TinyMCE / textarea) */
.prose-page h2 { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.75rem; margin: 1.5rem 0 .75rem; color: var(--pink-700); }
.prose-page h3 { font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 1.35rem; margin: 1.25rem 0 .5rem; color: var(--mint-700); }
.prose-page p { margin: 0 0 1rem; line-height: 1.75; }
.prose-page ul { list-style: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.prose-page ol { list-style: decimal; padding-left: 1.5rem; margin: 0 0 1rem; }
.prose-page li { margin: .25rem 0; line-height: 1.6; }
.prose-page a { color: var(--pink-600); text-decoration: underline; }
.prose-page a:hover { color: var(--pink-700); }
.prose-page strong { font-weight: 700; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: .75rem;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,.6);
}
.lightbox-close, .lightbox-nav {
    position: absolute;
    color: white; background: rgba(255,255,255,.1);
    border-radius: 999px;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; font-size: 1.5rem;
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,.25); }

/* Drobiazgi */
.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem; top: 1rem; z-index: 1000;
    background: var(--pink-600); color: #fff;
    padding: .5rem 1rem; border-radius: .5rem;
}
