/* style.css */

/* Podstawowe style ciała */
body {
    font-family: 'Inter', sans-serif;
    background-image: linear-gradient(to bottom right, #E0F2F7, #E0BBE4); /* odpowiednik bg-gradient-to-br from-blue-100 to-purple-100 */
    color: #4A5568; /* odpowiednik text-gray-800 */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Style nagłówka */
header {
    background-color: rgba(255, 255, 255, 0.8); /* odpowiednik bg-white bg-opacity-80 */
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -5px rgba(0, 0, 0, 0.1); /* odpowiednik shadow-md */
    position: sticky;
    top: 0;
    z-index: 10;
}

header .max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a.text-blue-600 {
    color: #2563EB;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-decoration: none;
}

header a span.font-bold {
    font-weight: 700;
}

header nav.hidden {
    display: none;
}

@media (min-width: 768px) {
    header nav.hidden {
        display: block;
    }
}

header nav ul {
    display: flex;
    space-x: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li a {
    color: #4A5568;
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #2B6CB0;
}

header button#hamburger-btn {
    color: #718096;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    outline: none;
}

header button#hamburger-btn:hover {
    color: #2B6CB0;
}

@media (min-width: 768px) {
    header button#hamburger-btn {
        display: none;
    }
}

/* Style menu mobilnego */
#mobile-menu.hidden {
    display: none;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 32, 44, 0.9);
    z-index: 20;
    overflow: auto;
}

#mobile-menu > div {
    background-color: #fff;
    width: 20rem;
    height: 100%;
    position: absolute;
    right: 0;
    padding: 1.5rem;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
}

#mobile-menu .flex.justify-end.mb-4 {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

#mobile-menu button#close-menu-btn {
    color: #718096;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    outline: none;
}

#mobile-menu button#close-menu-btn:hover {
    color: #E53E3E;
}

#mobile-menu nav.block {
    display: block;
}

#mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    space-y: 1rem;
}

#mobile-menu nav ul li a {
    display: block;
    color: #4A5568;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

#mobile-menu nav ul li a:hover {
    color: #2B6CB0;
}

/* Style głównej treści */
main.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    main.max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    main.max-w-7xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Style stopki */
footer {
    background-color: #2D3748;
    color: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Dodatkowe style używane w treści */
.text-center {
    text-align: center;
}

.mb-12 {
    margin-bottom: 3rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

@media (min-width: 640px) {
    .text-4xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .text-4xl {
        font-size: 3.75rem;
        line-height: 1;
    }
}

.font-bold {
    font-weight: 700;
}

.text-blue-700 {
    color: #2B6CB0;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-gray-700 {
    color: #4A5568;
}

.mb-8 {
    margin-bottom: 2rem;
}

.bg-gradient-to-r\.from-green-400\.to-blue-500 {
    background-image: linear-gradient(to right, #68D391, #4299E1);
}

.hover\:from-green-500\:hover {
    background-image: linear-gradient(to right, #48BB78, #3182CE);
}

.text-white {
    color: #fff;
}

.font-semibold {
    font-weight: 600;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hover\:shadow-lg\:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bg-gradient-to-br\.from-blue-50\.to-teal-50 {
    background-image: linear-gradient(to bottom right, #EFF6FF, #CCFBF1);
}

.bg-opacity-70 {
    opacity: 0.7;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.leading-relaxed {
    line-height: 1.625;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    padding-left: 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid-cols-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-cols-1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

.bg-white {
    background-color: #fff;
}

.overflow-hidden {
    overflow: hidden;
}

/* Style dla obrazków w sekcjach */
section img {
    max-width: 100%; /* Zapobiega wychodzeniu obrazków poza kontener */
    height: auto; /* Zachowaj proporcje obrazka */
}

/* Style dla linków "Czytaj więcej" na blogu */
section a.text-blue-500 {
    color: #60A5FA; /* odpowiednik text-blue-500 */
    text-decoration: none;
    font-weight: 600; /* odpowiednik font-semibold */
    transition: color 0.3s ease; /* odpowiednik transition duration-300 */
}

section a.text-blue-500:hover {
    color: #2B6CB0; /* odpowiednik hover:text-blue-700 */
}

/* Style dla sekcji newslettera */
section form.flex.flex-col.sm\:flex-row {
    display: flex;
    flex-direction: column; /* Domyślnie kolumna */
    align-items: center; /* Wyśrodkuj elementy w kolumnie */
    gap: 1rem; /* Odstęp między elementami */
}

@media (min-width: 640px) { /* Dla większych ekranów zmień na rząd */
    section form.flex.flex-col.sm\:flex-row {
        flex-direction: row;
        justify-content: center; /* Wyśrodkuj elementy w rzędzie */
    }
}

section form input[type="email"] {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -5px rgba(0, 0, 0, 0.1); /* odpowiednik shadow */
    appearance: none; /* Usuń domyślne style przeglądarki */
    border-width: 1px; /* odpowiednik border */
    border-color: #CBD5E0; /* Domyślny kolor obramowania */
    border-radius: 0.25rem; /* odpowiednik rounded */
    width: 100%; /* Domyślnie pełna szerokość */
    padding: 0.5rem 0.75rem; /* odpowiednik py-2 px-3 */
    color: #4A5568; /* odpowiednik text-gray-700 */
    line-height: 1.5; /* odpowiednik leading-tight */
    outline: none; /* Usuń domyślne obramowanie focus */
}

@media (min-width: 640px) { /* Dla większych ekranów */
    section form input[type="email"] {
        width: auto; /* Automatyczna szerokość w rzędzie */
    }
}

section form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); /* odpowiednik focus:shadow-outline (przybliżony) */
    border-color: #66A7E0; /* Jaśniejszy kolor obramowania focus */
}

section form button[type="submit"] {
    background-color: #48BB78; /* odpowiednik bg-green-500 */
    color: #fff; /* odpowiednik text-white */
    font-weight: 700; /* odpowiednik font-bold */
    padding: 0.5rem 1.5rem; /* odpowiednik py-2 px-6 */
    border-radius: 0.25rem; /* odpowiednik rounded */
    outline: none; /* Usuń domyślne obramowanie focus */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* odpowiednik shadow-outline (przybliżony) */
    transition: background-color 0.2s ease-in-out; /* Płynniejsze przejście hover */
    border: none; /* Usuń domyślny border buttona */
    cursor: pointer; /* Zmień kursor na wskazujący */
}

section form button[type="submit"]:hover {
    background-color: #38A169; /* odpowiednik hover:bg-green-700 */
}

/* Style dla sekcji kontaktu */
section#kontakt form input[type="text"],
section#kontakt form input[type="email"],
section#kontakt form textarea {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -5px rgba(0, 0, 0, 0.1);
    appearance: none;
    border-width: 1px;
    border-color: #CBD5E0;
    border-radius: 0.25rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    color: #4A5568;
    line-height: 1.5;
}
