/* 
* Tolchyonaya-Pitstsa - Portal Kuchennych Lifehacków
* główny arkusz stylów
* Copyright 2025 Tolchyonaya-Pitstsa
*/

/* ---------- ZMIENNE I RESET ---------- */
:root {
    /* Paleta kolorów zainspirowana polską kuchnią */
    --primary-color: #d32f2f;      /* Czerwony - jak pomidory */
    --secondary-color: #388e3c;    /* Zielony - jak świeże zioła */
    --accent-color: #ffa000;       /* Bursztynowy - jak miód */
    --text-color: #333333;         /* Ciemny szary - główny tekst */
    --light-text: #666666;         /* Jaśniejszy szary - drugorzędny tekst */
    --background-color: #ffffff;   /* Biały - tło */
    --light-bg: #f5f5f5;           /* Jasnoszary - tło sekcji */
    --border-color: #e0e0e0;       /* Jasny szary - obramowania */
    
    /* Czcionki */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Rozmiary */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 4px;
    
    /* Przejścia */
    --transition: all 0.3s ease;
}

/* Importowanie czcionek Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Reset CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
}

/* ---------- UKŁAD STRONY ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

/* ---------- TYPOGRAFIA ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-color);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    margin-bottom: 4rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 6rem;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    h3 {
        font-size: 2.2rem;
    }
}

/* ---------- PRZYCISKI ---------- */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-family: var(--heading-font);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b71c1c;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2e7d32;
    color: white;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* ---------- NAGŁÓWEK ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 5rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

@media (max-width: 990px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        transition: var(--transition);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
}

/* ---------- HERO SECTION ---------- */
.hero {
    padding-top: calc(var(--header-height) + 8rem);
    padding-bottom: 8rem;
    background-color: var(--light-bg);
}

.hero .container {
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    padding-right: 4rem;
}

.hero-image {
    flex: 1;
}

.hero h1 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--light-text);
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }
}

/* ---------- O NAS SEKCJA ---------- */
.about {
    background-color: var(--background-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 4rem;
}

.about-stats {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.stat {
    flex: 1;
    min-width: 150px;
    margin: 1rem;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    transition: var(--transition);
}

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

.stat h3 {
    font-size: 3.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ---------- PORADY SEKCJA ---------- */
.tips {
    background-color: var(--light-bg);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.tip-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tip-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 1rem;
}

/* ---------- USŁUGI SEKCJA ---------- */
.services {
    background-color: var(--background-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.service-card {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    transition: var(--transition);
}

.service-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.service-card:hover h3 {
    color: white;
}

.service-icon {
    margin: 0 auto 2rem;
    width: 7rem;
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: white;
}

/* ---------- NAJNOWSZE ARTYKUŁY SEKCJA ---------- */
.latest-articles {
    background-color: var(--light-bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.article-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 2rem;
}

.article-content h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.more-articles {
    text-align: center;
}

/* ---------- OPINIE SEKCJA ---------- */
.testimonials {
    background-color: var(--background-color);
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2rem;
    padding: 2rem;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 auto;
    width: calc(33.333% - 2rem);
    scroll-snap-align: start;
    margin-right: 2rem;
    padding: 3rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-size: 6rem;
    font-family: var(--heading-font);
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.testimonial-author p {
    font-style: italic;
    color: var(--light-text);
}

@media (max-width: 992px) {
    .testimonial {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 576px) {
    .testimonial {
        width: calc(100% - 2rem);
    }
}

/* ---------- NEWSLETTER SEKCJA ---------- */
.newsletter {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.newsletter .container {
    display: flex;
    align-items: center;
}

.newsletter-content {
    flex: 1;
    padding-right: 4rem;
}

.newsletter-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-group {
    display: flex;
    margin-bottom: 1.5rem;
}

.form-group input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: var(--body-font);
    font-size: 1.6rem;
}

.form-group button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
}

.form-check input {
    margin-right: 1rem;
    margin-top: 0.4rem;
}

@media (max-width: 768px) {
    .newsletter .container {
        flex-direction: column;
    }
    
    .newsletter-content {
        padding-right: 0;
        margin-bottom: 4rem;
        text-align: center;
    }
    
    .form-check {
        justify-content: center;
    }
}

/* ---------- STOPKA ---------- */
footer {
    background-color: #222;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 3rem;
    padding-right: 2rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 4rem;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

address {
    font-style: normal;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 2rem 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.cookie-settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cookie-settings-panel.active {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-settings-content h3 {
    margin-bottom: 2rem;
}

.cookie-option {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option label {
    font-weight: 600;
    margin-left: 1rem;
}

.cookie-option p {
    margin-top: 0.5rem;
    margin-left: 2.5rem;
    color: var(--light-text);
}

.cookie-settings-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* ---------- STRONA DZIĘKUJEMY ---------- */
.thank-you {
    padding-top: calc(var(--header-height) + 8rem);
    padding-bottom: 8rem;
    text-align: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    margin: 4rem auto;
}

.next-steps {
    margin: 4rem 0;
    text-align: left;
}

.next-steps ul {
    list-style: disc;
    padding-left: 2rem;
}

.next-steps li {
    margin-bottom: 1rem;
}

/* ---------- STRONY PRAWNE ---------- */
.legal-page {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.last-updated {
    color: var(--light-text);
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.legal-section h3 {
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.legal-section h4 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section ul, .legal-section ol {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.legal-section ul {
    list-style: disc;
}

.legal-section ol {
    list-style: decimal;
}

.legal-section li {
    margin-bottom: 1rem;
}

/* ---------- STRONA BLOGA ---------- */
.blog-banner {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background-color: var(--light-bg);
    text-align: center;
}

.blog-content {
    padding: 6rem 0;
    display: flex;
}

.blog-filters {
    flex: 0 0 25%;
    padding-right: 3rem;
}

.blog-filters h3 {
    margin-bottom: 2rem;
}

.blog-filters ul li {
    margin-bottom: 1rem;
}

.blog-filters ul li a {
    color: var(--text-color);
}

.blog-filters ul li a:hover, .blog-filters ul li a.active {
    color: var(--primary-color);
}

.blog-posts {
    flex: 0 0 75%;
}

.blog-post {
    display: flex;
    margin-bottom: 4rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
    flex: 0 0 35%;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    flex: 0 0 65%;
    padding: 2.5rem;
}

.blog-post-content h2 {
    margin-bottom: 1rem;
}

.blog-post-content h2 a {
    color: var(--text-color);
}

.blog-post-content h2 a:hover {
    color: var(--primary-color);
}

.blog-post-meta {
    display: flex;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-size: 1.4rem;
}

.post-date {
    margin-right: 2rem;
}

@media (max-width: 992px) {
    .blog-content {
        flex-direction: column;
    }
    
    .blog-filters {
        margin-bottom: 4rem;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .blog-post {
        flex-direction: column;
    }
    
    .blog-post-image {
        height: 200px;
    }
}

/* ---------- ARTYKUŁ BLOGA ---------- */
.blog-article {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--light-text);
    margin-bottom: 3rem;
}

.article-image {
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 2.8rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.article-content h3 {
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content h4 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 1rem;
}

.article-tips {
    margin: 4rem 0;
    padding: 2rem;
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-share {
    margin: 4rem 0;
    text-align: center;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-share a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
}

.social-share a svg {
    margin-right: 1rem;
}

.share-facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-email:hover {
    background-color: #ea4335;
    color: white;
}

.related-articles {
    margin-top: 6rem;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-article {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-article h4 {
    padding: 1.5rem;
    color: var(--text-color);
}

.related-article:hover h4 {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- TABELA PRZECHOWYWANIA (DLA ARTYKUŁU O WARZYWACH) ---------- */
.storage-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0 4rem;
}

.storage-table th, .storage-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.storage-table th {
    background-color: var(--light-bg);
    font-weight: 600;
}

.storage-table tr:hover {
    background-color: var(--light-bg);
}

@media (max-width: 768px) {
    .storage-table {
        display: block;
        overflow-x: auto;
    }
}
