/* =================================================================
   Magiczny Design 2026 - Strona o Hodowli Kur
   ================================================================= */

/* 1. Import czcionki i definicja palety kolorów */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00695c; /* Deep Emerald */
    --primary-light: #4db6ac;
    --secondary-color: #ffca28; /* Warm Amber */
    --accent-color: #ff7043; /* Burnt Orange */

    --bg-color: #f4f7f6;
    --text-main: #263238;
    --text-light: #546e7a;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);

    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);

    --hero-gradient: linear-gradient(135deg, #009688 0%, #004d40 100%);
    --card-gradient: linear-gradient(145deg, #ffffff, #f9f9f9);

    --border-radius: 20px;
}

/* 2. Podstawowe style */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 10% 10%, rgba(77, 182, 172, 0.1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(255, 112, 67, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    padding-top: 90px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* 3. Nawigacja Glassmorphism */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-link {
    font-weight: 600;
    color: var(--text-light) !important;
    margin: 0 5px;
    padding: 8px 16px !important;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(0, 150, 136, 0.08);
}

/* 4. Sekcja Hero */
.hero-section {
    position: relative;
    padding: 6rem 1rem;
    background: var(--hero-gradient);
    color: white;
    border-radius: 0 0 3rem 3rem;
    margin-bottom: 5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Pattern overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    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='%23ffffff' fill-opacity='0.05'%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");
    opacity: 0.8;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
}

.hero-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-section .lead {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 5. Karty */
.card {
    border: none;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

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

.card-title {
    color: var(--primary-color);
}

/* 6. Przyciski */
.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), #ffca28);
    border: none;
    color: #3e2723;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 202, 40, 0.4);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #ffca28, var(--secondary-color));
    color: #3e2723;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 7. Animacje */
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* 8. Dodatki */
.border-bottom {
    border-bottom: 2px solid rgba(0,0,0,0.05) !important;
}

/* Jajkowa ikona */
.egg-display .bi-egg-fill {
    font-size: 80px;
    line-height: 1;
    width: 60px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background-color: #f0f0f0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 -4px 6px rgba(0,0,0,0.05);
}

footer {
    padding: 3rem 0;
    text-align: center;
    color: white;
    background-color: var(--text-main);
    font-size: 0.9rem;
    margin-top: auto;
}

/* 9. Kategorie Artykułów */
.category-filters { margin-bottom: 2rem; }
.btn-category { background: white; color: var(--text-light); border: none; border-radius: 50px; padding: 8px 20px; font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-sm); transition: all 0.3s ease; margin-bottom: 5px; }
.btn-category:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary-color); }
.btn-category.active { background: var(--hero-gradient); color: white; box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3); }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 20px;
    right: 20px;
    background: white;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    padding: 20px;
    border-radius: 15px;
    z-index: 1050;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

@media (min-width: 768px) {
    .cookie-banner {
        width: 700px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.cookie-banner.show {
    bottom: 30px;
}

.cookie-content {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.cookie-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
}

.cookie-content a {
    color: #4CAF50;
    font-weight: 600;
}
