/*
Theme Name: Kamery PRO V10
Theme URI: https://kamery.info.pl
Author: Ty
Description: Wersja ostateczna. Wkurwiście ładna, z animacjami i nowymi fontami.
Version: 10.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@700;900&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1c1c1c;
    --text-primary: #e6e6e6;
    --text-secondary: #888888;
    --accent-red: #d32f2f;
    --accent-hover: #b71c1c;
    --border-color: #2a2a2a;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin-top: 0; }
a { text-decoration: none; color: var(--text-primary); transition: all 0.3s ease; }
a:hover { color: var(--accent-red); }

/* --- HEADER I LOGO --- */
header {
    background-color: var(--bg-secondary);
    border-bottom: 3px solid var(--accent-red);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding { display: flex; align-items: center; }
.site-branding img { max-height: 70px; width: auto; transition: transform 0.3s; }
.site-branding img:hover { transform: scale(1.05); }
.site-branding h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: 1px; }
.site-branding h1 span { color: var(--accent-red); }

/* Menu */
.main-navigation ul { margin: 0; padding: 0; list-style: none; display: flex; }
.main-navigation li { margin-left: 35px; position: relative; }
.main-navigation a { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.main-navigation a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--accent-red); transition: width 0.3s;
}
.main-navigation a:hover::after { width: 100%; }

/* --- GŁÓWNY UKŁAD --- */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

main { flex: 7; }
sidebar { flex: 3; }

/* --- NEWSY W BIEGU --- */
.w-biegu-box {
    background-color: var(--bg-card);
    border-left: 5px solid var(--accent-red);
    padding: 30px;
    margin-bottom: 50px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.w-biegu-header { margin: 0 0 20px 0; font-size: 18px; color: var(--accent-red); text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; }
.w-biegu-list { list-style: none; padding: 0; margin: 0; }
.w-biegu-list li { margin-bottom: 15px; font-size: 14px; border-bottom: 1px dashed var(--border-color); padding-bottom: 15px; transition: transform 0.2s; }
.w-biegu-list li:hover { transform: translateX(5px); }
.w-biegu-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.w-biegu-list li span { color: var(--accent-red); font-weight: bold; margin-right: 10px; font-size: 16px; }

/* --- WPISY (KAFELKI Z EFEKTAMI) --- */
.post-entry {
    background-color: var(--bg-card);
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.post-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-color: #333;
}

.post-thumbnail img { max-width: 240px; height: auto; border-radius: 6px; object-fit: cover; }
.post-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.post-title { font-size: 24px; line-height: 1.3; margin-bottom: 10px; }
.post-meta { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-bottom: 15px; }
.post-excerpt { color: #b3b3b3; font-size: 15px; margin-bottom: 20px; }

/* Zajebisty przycisk */
.read-more-btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    align-self: flex-start;
    transition: background 0.3s;
}
.read-more-btn:hover { background-color: var(--accent-hover); }

/* --- SIDEBAR --- */
.widget { background: var(--bg-card); padding: 25px; border-radius: 10px; border: 1px solid var(--border-color); margin-bottom: 40px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.widget-title { font-size: 16px; text-transform: uppercase; border-bottom: 2px solid var(--accent-red); padding-bottom: 10px; margin-bottom: 20px; color: #fff; letter-spacing: 1px; }

/* --- FOOTER --- */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    width: 100%;
    margin-top: auto;
}
.footer-content { font-size: 14px; color: var(--text-secondary); }
/* --- NAPRAWA WIDOKU MOBILNEGO (DOKLEJONE NA SAMYM DOLE) --- */
@media (max-width: 782px) {
    /* Główny kontener układa się jedno pod drugim */
    .container {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Pasek boczny i artykuły zajmują 100% szerokości ekranu */
    main, sidebar {
        width: 100%;
        flex: none;
    }

    /* Kafelki z artykułami - obrazek ląduje nad tekstem */
    .post-entry {
        flex-direction: column;
        gap: 15px;
    }

    /* Obrazek dopasowuje się do szerokości telefonu */
    .post-thumbnail img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    /* Nagłówek i menu układają się na środku */
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-navigation li {
        margin: 5px 15px;
    }
}
/* Poprawa rozmiaru obrazka w pojedynczym wpisie */
.post-entry img {
    max-width: 100%;
    height: auto;
}
/* --- ODCHUDZANIE NAGŁÓWKA NA TELEFONIE --- */
@media (max-width: 782px) {
    header {
        padding: 10px 0 !important; /* Zmniejszamy marginesy góra/dół */
    }

    .site-branding img {
        max-height: 45px !important; /* Zmniejszamy samo logo */
    }

    .site-branding h1 {
        font-size: 18px !important; /* Zmniejszamy główny napis */
    }

    .site-branding p {
        font-size: 9px !important; /* Zmniejszamy slogan pod spodem */
    }

    .header-inner {
        gap: 10px !important; /* Zmniejszamy odstęp między logo a tekstem */
    }
}