/*
Theme Name: Simplest
Theme URI: http://example.com/
Description: Najprostszy możliwy motyw dla WordPressa
Author: Twoje nazwisko
Author URI: http://example.com/
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;800&family=Nunito:wght@400;600;800&display=swap');

/* ----- Zmienne CSS ----- */
:root {
    --navy: #1a366b;
    --bright-yellow: #ffdd00;
    --orange: #ff6b3d;
    --light-blue: #6bc0ff;
    --golden: #ffcb69;
    --green: #3a9668;
    --red: #e53e51;
    --dark-gray: #252c3a;
    font-family: 'Nunito', sans-serif;
}

/* ----- Podstawowe style ----- */
.no-margin {
	margin: 0;
}

.groszek-page {
    font-family: 'Nunito', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.groszek-page h1, 
.groszek-page h2, 
.groszek-page h3, 
.groszek-page h4 {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
}

.groszek-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ----- Hero Section ----- */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, #2d69af 100%);
    color: white;
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.floating-paws {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.paw {
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' width='50px' height='50px'%3E%3Cpath fill='%23ffcb69' d='M28.5,3.1c-1.8,1.1-2.5,3.5-1.7,5.5c0.8,2,3.1,2.9,5,2.1c1.8-0.8,2.7-3,2.2-4.8C33.4,3.9,31.1,1.5,28.5,3.1z M16.4,8.1c-1.8,0.9-2.6,3.2-1.9,5.1c0.7,1.9,2.8,2.9,4.7,2.2c1.9-0.7,2.9-2.8,2.2-4.7C20.7,8.8,18.6,7,16.4,8.1z M37.6,13.3c-1.5,1.3-1.7,3.8-0.4,5.4c1.3,1.6,3.8,1.9,5.4,0.6c1.5-1.3,1.9-3.8,0.6-5.4C41.9,12.3,39.4,11.7,37.6,13.3z M6.5,18.1c-1.4,1.2-1.6,3.5-0.4,5.1c1.2,1.5,3.5,1.9,5.1,0.8c1.6-1.1,2-3.4,0.8-5C10.8,17.4,8.4,16.5,6.5,18.1z M36.4,25.5c-7.4-4.9-12.6,2.1-17.1,4.3c-4.5,2.2-9.2,0.1-9.6,7.4c-0.2,3.7,1.4,7.1,6.9,8.4c11.2,2.7,18.1-10.2,23.8-15.9C45.1,25.1,39.6,27.7,36.4,25.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    opacity: 0.4;
}

.paw:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: float 30s linear infinite; /* Spowolnione z 15s do 30s */
}

.paw:nth-child(2) {
    top: 20%;
    left: 40%;
    animation: float 25s linear infinite; /* Spowolnione z 12s do 25s */
}

.paw:nth-child(3) {
    top: 35%;
    left: 65%;
    animation: float 20s linear infinite; /* Spowolnione z 10s do 20s */
}

.paw:nth-child(4) {
    top: 70%;
    left: 20%;
    animation: float 28s linear infinite; /* Spowolnione z 14s do 28s */
}

.paw:nth-child(5) {
    top: 60%;
    left: 80%;
    animation: float 22s linear infinite; /* Spowolnione z 11s do 22s */
}

.hero-section h1 {
    font-size: 72px;
    color: var(--bright-yellow);
    margin-bottom: 10px;
    text-shadow: 3px 3px 0px var(--navy);
    animation: pulse 4s infinite; /* Spowolnione z 2s do 4s */
}

.hero-section p {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ----- Book Preview Section ----- */
.book-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 70px 0;
    flex-wrap: wrap;
    position: relative;
}

.book-preview::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,109,61,0) 0%, rgba(255,109,61,1) 50%, rgba(255,109,61,0) 100%);
}

.book-info {
    flex-basis: 50%;
    padding-right: 50px;
}

/* Wyśrodkowanie nagłówka "Poznaj Groszka" */
#ohistorii.container .book-info h2 {
    text-align: center;
    width: 100%;
}

.book-cover {
    flex-basis: 40%;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.book-cover img {
    max-width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transform: rotateY(10deg);
    transition: transform 0.5s ease;
}

.book-cover:hover img {
    transform: rotateY(0deg);
}

.book-cover::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);
    transform: rotateY(10deg) translateZ(-10px);
    filter: blur(15px);
    transition: transform 0.5s ease;
}

.book-cover:hover::before {
    transform: rotateY(0deg) translateZ(-10px);
}

/* ----- Character Section ----- */
.character-section {
    background-color: #f0f7ff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.character-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(107, 192, 255, 0.1);
    top: -100px;
    left: -100px;
    z-index: 1;
}

.character-section::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 221, 0, 0.1);
    bottom: -50px;
    right: -50px;
    z-index: 1;
}

.characters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.character-card {
    flex-basis: 300px;
    margin: 20px;
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
}

.character-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.character-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--bright-yellow));
}

.character-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.character-card img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 25px;
    transition: transform 0.5s;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.character-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* ----- Story Section ----- */
.story-section {
    background: linear-gradient(135deg, #fff8e8 0%, #fffbf2 100%);
    padding: 100px 0;
    position: relative;
}

.story-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffdd00' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ----- Value Cards - zmiana na grid ----- */
.value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
}

.value-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.value-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--light-blue), var(--green));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ----- Resources Section ----- */
.resources-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #f6f9ff 0%, #f0f7ff 100%);
    position: relative;
}

.resources-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--navy), var(--light-blue), var(--navy));
}

.resources {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 60px;
}

.resource-item {
    flex-basis: 300px;
    margin: 20px;
    padding: 40px 30px;
    background-color: white;
    border-radius: 20px;
    transition: all 0.5s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
}

.resource-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.resource-item::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background-color: var(--bright-yellow);
    border-radius: 0 0 0 60px;
    transition: all 0.3s;
    z-index: 1;
}

.resource-item:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    top: 0;
    right: 0;
    z-index: -1;
}

.resource-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: var(--navy);
}

.resource-item:hover .button {
    background-color: var(--navy);
    box-shadow: 0 10px 20px rgba(26, 54, 107, 0.3);
}

/* ----- CTA Section ----- */
.cta-section {
    background-color: var(--navy);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 192, 255, 0.2) 0%, rgba(107, 192, 255, 0) 70%);
    top: -250px;
    left: -100px;
}

.cta-section::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 221, 0, 0.2) 0%, rgba(255, 221, 0, 0) 70%);
    bottom: -200px;
    right: -100px;
}

/* Eksplicytnie ustawiony żółty kolor w tytule niebieskiej sekcji */
.cta-section h2 {
    color: var(--bright-yellow) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4) !important;
}

.cta-section p {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.cta-buttons {
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

/* ----- Buttons ----- */
.button {
    display: inline-block;
    background-color: var(--orange);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    margin: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(255, 107, 61, 0.3);
}

.button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 61, 0.4);
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
    z-index: -1;
}

.button:hover::before {
    left: 100%;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--navy);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s;
    margin: 10px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    color: white;
    background-color: var(--orange);
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

/* ----- Footer ----- */
.footer-groszek {
	font-family: 'Nunito', sans-serif;
    background-color: var(--dark-gray) !important;
    color: white !important;
    padding: 60px 0 30px;
    text-align: center;
    position: relative;
}

.footer-groszek::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--bright-yellow), var(--light-blue));
}

.footer-groszek a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0 10px;
}

.footer-groszek a:hover {
    color: var(--bright-yellow) !important;
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 10px;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--orange);
    transform: translateY(-5px);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.footer-links a {
    color: white !important;
    margin: 0 10px;
    text-decoration: none;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--bright-yellow) !important;
}

.copyright {
    margin-top: 30px;
    font-size: 14px;
    color: #7a8195;
}

/* ----- Typography ----- */
.groszek-page h1 {
    font-size: 72px;
    color: var(--bright-yellow);
    margin-bottom: 30px;
    text-shadow: 3px 3px 0px var(--navy);
}

.groszek-page h2 {
    font-size: 42px;
    color: var(--navy);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.groszek-page h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.groszek-page h2:hover::after {
    width: 100%;
}

.groszek-page h3 {
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 20px;
}

.groszek-page p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ----- Dodanie marginesu do sekcji "Poznaj Groszka" ----- */
#ohistorii.container {
    margin: 100px auto;
    padding: 0 30px;
}

/* ----- Animations ----- */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-40px) rotate(0deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02); /* Zmniejszona skala - mniej skacze */
    }
    100% {
        transform: scale(1);
    }
}

/* ----- Animation Classes ----- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* ----- Animate.css Classes ----- */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__bounceIn {
    animation-name: bounceIn;
    animation-duration: 0.75s;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

.animate__infinite {
    animation-iteration-count: infinite;
}

.animate__pulse {
    animation-name: pulse;
    animation-timing-function: ease-in-out;
}

@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* ----- Responsive Media Queries ----- */

/* General responsive adjustments */
@media screen and (max-width: 768px) {
    .groszek-page .container {
        padding: 0 15px;
    }
    
    /* Fix for the title being cut off on mobile */
    .hero-section h1 {
        font-size: 48px; /* Reduced from 72px */
        line-height: 1.2;
        margin-bottom: 20px;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* For extra small screens */
    @media screen and (max-width: 380px) {
        .hero-section h1 {
            font-size: 40px;
        }
    }
    
    /* Fix for "Poznaj Groszka" section */
    .book-preview {
        flex-direction: column;
        margin: 40px 0;
    }
    
    .book-info {
        flex-basis: 100%;
        padding-right: 0;
        margin-bottom: 40px;
        width: 100%;
    }
    
    .book-cover {
        flex-basis: 100%;
        width: 100%;
    }
    
    .book-cover img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
    
    /* Fix for value cards in "O czym opowiada książka" section */
    .value-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Additional responsive adjustments */
    .character-card {
        flex-basis: 100%;
        margin: 15px 0;
    }
    
    .resource-item {
        flex-basis: 100%;
        margin: 15px 0;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        margin: 10px 0;
        width: 80%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links a {
        display: block;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Medium screen adjustments */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .value-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section h1 {
        font-size: 60px;
    }
    
    .book-info {
        flex-basis: 60%;
    }
    
    .book-cover {
        flex-basis: 40%;
    }
}