/* ==================== RESET I ZMIENNE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #27ae60;
    --secondary-color: #16a085;
    --accent-color: #f39c12;
    --text-color: #2c3e50;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAWIGACJA ==================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span {
    background-color: var(--white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==================== HERO SEKCJA ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideInLeft 0.8s ease;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image {
    font-size: 8rem;
    animation: bounce 2s infinite;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #e67e22;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ==================== STRONY TREŚCI ==================== */
.page {
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ==================== GRID ARTYKUŁÓW ==================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.article-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.article-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-card p {
    margin-bottom: 1.5rem;
    color: #555;
}

.highlight-box {
    background-color: #f0f9f7;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    border-radius: 5px;
    margin-top: 1rem;
}

.highlight-box strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-box ul {
    list-style: none;
    padding-left: 0;
}

.highlight-box li {
    padding: 0.5rem 0;
    padding-left: 25px;
    position: relative;
}

.highlight-box li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==================== PIRAMIDA ŻYWIENIA ==================== */
.info-section {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
}

.pyramid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.pyramid-level {
    padding: 20px;
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.pyramid-level:hover {
    transform: scale(1.02);
}

.level-4 {
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 100%;
}

.level-3 {
    background: linear-gradient(135deg, #27ae60, #16a085);
    width: 85%;
    margin: 0 auto;
}

.level-2 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    width: 70%;
    margin: 0 auto;
}

.level-1 {
    background: linear-gradient(135deg, #e67e22, #d35400);
    width: 55%;
    margin: 0 auto;
}

/* ==================== PORADY I TIPY ==================== */
.tips-container {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.tips-container h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tip-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 25px;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 80px;
}

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

.tip-number {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.3;
}

.tip-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tip-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==================== PRZEPISY ==================== */
.recipes-section {
    margin-top: 50px;
}

.recipes-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.recipe-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    border-top: 5px solid var(--accent-color);
    transition: all 0.3s ease;
}

.recipe-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(5px);
}

.recipe-card h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.recipe-card p {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 1rem 0 0.5rem 0;
}

.recipe-card ul,
.recipe-card ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}

.recipe-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ==================== MITY VS FAKTY ==================== */
.myth-section {
    margin-top: 50px;
}

.myth-section h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.myth-box {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #e74c3c;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.myth-box:hover {
    box-shadow: var(--shadow-hover);
}

.myth-box h4 {
    color: #c0392b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.myth-box p {
    color: #555;
    line-height: 1.6;
}

/* ==================== STATYSTYKI ==================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.stats-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-box p {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ==================== KONTAKT ==================== */
.contact-section {
    background: var(--light-bg);
    padding: 60px 20px;
    text-align: center;
}

.contact-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section > .container > p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(22, 160, 133, 0.3);
}

.submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.footer p:first-child {
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==================== RESPONSYWNOŚĆ ==================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 3px solid rgba(255, 255, 255, 0.3);
        border-bottom: 3px solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        clip-path: inset(0 0 100% 0);
    }

    .nav-links.active {
        max-height: 400px;
        clip-path: inset(0);
    }

    .nav-link {
        padding: 1rem 20px;
        border-radius: 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
        display: block;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image {
        font-size: 5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-card h3,
    .recipes-section h3,
    .myth-section h3 {
        font-size: 1.3rem;
    }

    .contact-form {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 3px solid rgba(255, 255, 255, 0.3);
        border-bottom: 3px solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        clip-path: inset(0 0 100% 0);
    }

    .nav-links.active {
        max-height: 400px;
        clip-path: inset(0);
    }

    .nav-link {
        padding: 1rem 20px;
        border-radius: 0;
        border-bottom: 2px solid rgba(255, 255, 255, 0.15);
        display: block;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-image {
        font-size: 3rem;
    }

    .page {
        padding: 30px 15px;
    }

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .article-card {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer p {
        font-size: 0.9rem;
    }
}

/* ==================== ANIMACJE ZAŁADOWANIA ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page,
.article-card,
.recipe-card {
    animation: fadeIn 0.6s ease;
}
