/* --- 1. USTAWIENIA OGÓLNE --- */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

/* --- 2. HEADER (NAGŁÓWEK) --- */
#main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

#main-header.sticky {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- LOGO OKRĄGŁE --- */
.logo-icon {
    height: 45px; /* Ustalamy wielkość logo */
    width: 45px;  /* Musi być kwadratem w wymiarach, żeby kółko wyszło idealne */
    object-fit: cover; /* Ważne: przycina zdjęcie, jeśli nie jest idealnym kwadratem */
    border-radius: 50%; /* TO SPRAWIA, ŻE LOGO JEST KOŁEM */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Delikatny cień */
}

/* Ukryj obrazek logo, jeśli się nie załaduje */
img[src=""][alt] {
    display: none;
}

/* --- 3. MENU NAWIGACYJNE --- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #555;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    font-size: 0.95em;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- 4. HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-slogan {
    font-size: 1.3em;
    font-weight: 400;
}

/* --- 5. KATEGORIE I FILTRY --- */
.main-content {
    padding-bottom: 60px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.category-button {
    background-color: #eee;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 18px;
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-button:hover {
    background-color: #e0e0e0;
}

.category-button.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* --- 6. SIATKA WPISÓW (GRID) --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card-category {
    background-color: #e0f7fa;
    color: #007bff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.post-card-title {
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222;
}

.post-card-excerpt {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.post-card-date {
    font-size: 0.8em;
    color: #999;
    text-align: right;
    margin-top: auto;
}

/* --- 7. PODSTRONA WPISU (Szczegóły) --- */
.hidden-section {
    display: none;
}

.active-section {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#post-detail-section {
    padding: 40px 0;
}

#post-detail-section .container {
    max-width: 800px;
}

.back-button {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.back-button:hover {
    background-color: #007bff;
    color: #fff;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.post-content h1 {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1.5em;
    color: #444;
}

.post-content h2, .post-content h3 {
    margin-top: 40px;
    color: #222;
}

/* --- 8. PODSTRONY STATYCZNE (Social & Współpraca) --- */
.static-page {
    padding: 60px 0;
    min-height: 60vh;
}

.static-page h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
}

.content-box {
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.15em;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
}

.content-box ul {
    margin: 30px 0;
    padding-left: 20px;
}

.content-box ul li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.contact-data {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f5f5f5;
    text-align: center;
}

.email-address {
    font-size: 1.4em;
    font-weight: 700;
    color: #007bff;
    margin-top: 15px;
    word-break: break-all;
}

/* --- NOWE: STYLIZACJA PRZYCISKÓW SOCIAL MEDIA --- */
.social-links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.social-btn {
    display: block;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; /* Usuwa podkreślenie linku */
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #fff; /* Utrzymuje biały tekst */
}

/* Kolory poszczególnych platform */
.tiktok {
    background-color: #000;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.youtube {
    background-color: #FF0000;
}

/* --- 9. STOPKA I MOBILE --- */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
        text-align: center;
    }

    .main-nav ul.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2em;
    }
    
    .content-box {
        padding: 25px;
    }
}