/* Radosny Maluszek - Custom Styles */
/* Complements Tailwind CSS */

:root {
    --primary: #F07C00;
    --primary-dark: #D06A00;
    --primary-light: #FFF3E6;
    --secondary: #009EE0;
    --accent: #009035;
    --text-dark: #333333;
    --cream: #FFFAF5;
}

/* Cookie Consent - branding colors */
#cc-main .cm__btn {
    border-radius: 9999px;
}

#cc-main .cm__btn[data-role="all"] {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

#cc-main .cm__btn[data-role="all"]:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

#cc-main .cm__btn[data-role="necessary"] {
    background: transparent !important;
    color: var(--text-dark) !important;
    border-color: #d1d5db !important;
}

#cc-main .cm__btn[data-role="necessary"]:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

#cc-main .cm__btn[data-role="show"] {
    color: var(--primary) !important;
    background: transparent !important;
    border-color: transparent !important;
}

#cc-main .cm__btn[data-role="show"]:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

/* Preferences modal */
#cc-main .pm__btn[data-role="all"] {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

#cc-main .pm__btn[data-role="all"]:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

#cc-main .pm__btn[data-role="save"] {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

#cc-main .pm__btn[data-role="save"]:hover {
    background: #007A2D !important;
    border-color: #007A2D !important;
}

/* Toggle switch */
#cc-main .section__toggle:checked {
    background: var(--primary);
}

/* Base styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--cream);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Playful card hover effect */
.card-playful {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-playful:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(240, 124, 0, 0.15);
}

/* Button bounce animation */
.btn-bounce {
    transition: transform 0.2s ease;
}

.btn-bounce:hover {
    transform: scale(1.05);
}

.btn-bounce:active {
    transform: scale(0.98);
}

/* Photo gallery grid */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Facebook embed responsive fix */
.fb-page,
.fb-page iframe[style],
.fb-page span {
    width: 100% !important;
}

.fb-container {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Pricing card */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(240, 124, 0, 0.15);
}

/* Map container */
.map-container {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Feature list checkmarks */
.feature-list li {
    position: relative;
    padding-left: 1.75rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Decorative dots background */
.dots-bg {
    background-image: radial-gradient(circle, var(--primary) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.05;
}

/* ==========================================
   ENTRANCE ANIMATIONS - Scroll Reveal
   ========================================== */

/* Base state - hidden before animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from left */
.animate-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.animate-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for children */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Hero-specific animations - instant on load */
.hero-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-animate-delay-1 { animation-delay: 0.1s; }
.hero-animate-delay-2 { animation-delay: 0.2s; }
.hero-animate-delay-3 { animation-delay: 0.3s; }
.hero-animate-delay-4 { animation-delay: 0.5s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero image special animation */
.hero-image-animate {
    opacity: 0;
    transform: scale(0.95) translateX(20px);
    animation: heroImageIn 1s ease-out 0.3s forwards;
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Subtle floating animation for decorative elements */
.float-subtle {
    animation: floatSubtle 6s ease-in-out infinite;
}

@keyframes floatSubtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   PLAYFUL ANIMATIONS - Child-friendly effects
   ========================================== */

/* 1. Bouncy entrance for icons/emojis */
@keyframes bounce-in {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    70% {
        transform: scale(0.9) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.icon-bounce {
    opacity: 0;
}

.icon-bounce.is-visible {
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Staggered bounce delays */
.bounce-delay-1 { animation-delay: 0.1s !important; }
.bounce-delay-2 { animation-delay: 0.2s !important; }
.bounce-delay-3 { animation-delay: 0.3s !important; }
.bounce-delay-4 { animation-delay: 0.4s !important; }

/* 2. Tilt on hover for cards */
.card-tilt {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-tilt:hover {
    transform: translateY(-8px) rotate(1.5deg);
    box-shadow: 0 25px 50px rgba(240, 124, 0, 0.2);
}

.card-tilt:nth-child(even):hover {
    transform: translateY(-8px) rotate(-1.5deg);
}

/* 3. Wiggle animation for CTA buttons */
@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    25% { transform: rotate(2deg); }
    50% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

.btn-wiggle {
    animation: wiggle 0.5s ease-in-out;
    animation-iteration-count: 3;
    animation-delay: 2s;
}

.btn-wiggle:hover {
    animation: none;
    transform: scale(1.05);
}

/* 4. Pulse glow for pricing cards */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(240, 124, 0, 0.1),
                    0 0 0 0 rgba(251, 146, 60, 0);
    }
    50% {
        box-shadow: 0 15px 40px rgba(240, 124, 0, 0.2),
                    0 0 30px 5px rgba(251, 146, 60, 0.15);
    }
}

.card-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

.card-pulse:hover {
    animation: none;
    box-shadow: 0 20px 50px rgba(240, 124, 0, 0.25);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* 5. Spin-in for decorative elements */
@keyframes spin-in {
    0% {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.spin-in {
    opacity: 0;
}

.spin-in.is-visible {
    animation: spin-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 6. Wave text animation */
@keyframes wave-char {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wave-text span {
    display: inline-block;
    animation: wave-char 0.6s ease-in-out infinite;
}

.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }
.wave-text span:nth-child(5) { animation-delay: 0.4s; }
.wave-text span:nth-child(6) { animation-delay: 0.5s; }
.wave-text span:nth-child(7) { animation-delay: 0.6s; }
.wave-text span:nth-child(8) { animation-delay: 0.7s; }

/* 7. Floating decorations with different paths */
@keyframes float-wobble {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(5deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(-5deg);
    }
}

@keyframes float-diagonal {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10px, -15px);
    }
}

.float-wobble {
    animation: float-wobble 4s ease-in-out infinite;
}

.float-diagonal {
    animation: float-diagonal 5s ease-in-out infinite;
}

/* 8. Rainbow border on focus/hover */
@keyframes rainbow-border {
    0% { border-color: #F07C00; box-shadow: 0 0 20px rgba(240, 124, 0, 0.3); }
    25% { border-color: #009EE0; box-shadow: 0 0 20px rgba(0, 158, 224, 0.3); }
    50% { border-color: #009035; box-shadow: 0 0 20px rgba(0, 144, 53, 0.3); }
    75% { border-color: #FFD93D; box-shadow: 0 0 20px rgba(255, 217, 61, 0.3); }
    100% { border-color: #F07C00; box-shadow: 0 0 20px rgba(240, 124, 0, 0.3); }
}

.rainbow-border:focus-visible,
.rainbow-border:hover {
    border-width: 3px;
    animation: rainbow-border 2s linear infinite;
}

/* 9. Pop-in for emoji decorations */
@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.emoji-pop {
    opacity: 0;
    display: inline-block;
}

.emoji-pop.is-visible {
    animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* 10. Jiggle for attention */
@keyframes jiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg) scale(1.05); }
    75% { transform: rotate(3deg) scale(1.05); }
}

.jiggle-hover:hover {
    animation: jiggle 0.3s ease-in-out;
}

/* 11. Shake for fun interaction */
@keyframes fun-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-hover:hover {
    animation: fun-shake 0.5s ease-in-out;
}

/* ==========================================
   HERO WOW EFFECTS - Gradient text + Parallax
   ========================================== */

/* Animated gradient text for main title */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text-animated {
    background: linear-gradient(135deg, #F07C00, #FFD93D, #009EE0, #F07C00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* 3D Parallax tilt effect for hero image (desktop only) */
.hero-parallax {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Extended reduced motion - disable ALL playful animations */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .animate-fade-left,
    .animate-fade-right,
    .animate-scale,
    .hero-animate,
    .hero-image-animate,
    .icon-bounce,
    .spin-in,
    .emoji-pop {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .float-subtle,
    .float-wobble,
    .float-diagonal,
    .wave-text span,
    .card-pulse,
    .btn-wiggle,
    .gradient-text-animated {
        animation: none;
    }

    /* Keep gradient visible but static */
    .gradient-text-animated {
        background-position: 0% 50%;
    }

    /* Disable parallax transform */
    .hero-parallax {
        transform: none !important;
        transition: none;
    }

    .card-tilt:hover,
    .card-playful:hover {
        transform: none;
    }

    .rainbow-border:focus-visible,
    .rainbow-border:hover {
        animation: none;
        border-color: var(--primary);
    }
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }

    body {
        background: white;
    }
}
