/*
Theme Name: Motyw OS-CAR
Theme URI: https://oscauto.pl
Author: OS-CAR
Author URI: https://oscauto.pl
Description: Motyw bloga wzorowany na stronie oscauto.pl
Version: 1.5
License: GNU General Public License v2 or later
Text Domain: oscar-blog
*/

/* === GLOBALNE STYLE === */
:root {
    --accent: #ff3b30;
    --bg: #050505;
    --surface: #111111;
    --surface-light: #1a1a1a;
    --text: #ffffff;
    --subtext: #b0b0b0;
    --border: rgba(255,255,255,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* === HEADER (taki jak na stronie głównej) === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: var(--subtext);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    transition: 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    border-color: var(--accent);
}

/* === GŁÓWNY OBSZAR TREŚCI === */
.site-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* === ARTYKUŁY (WPISY NA BLOGU) === */
article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

article h1, article h2, article h3 {
    color: var(--accent);
}

article .post-meta {
    color: var(--subtext);
    font-size: 0.9em;
    margin: 10px 0;
}

article a {
    color: var(--accent);
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

/* === OBRAZKI W ARTYKULE === */
article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

/* === PRZYCISK POWROTU DO LISTY WPISÓW === */
.back-to-blog {
    margin: 20px 0 30px 0;
    text-align: left;
}

.back-button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--subtext);
    text-decoration: none;
    font-size: 0.9em;
    transition: 0.3s;
}

.back-button:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--surface);
    transform: translateX(-3px);
}

/* === STOPKA === */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    color: var(--subtext);
}

.site-footer a {
    color: var(--subtext);
    text-decoration: none;
    margin: 0 10px;
}

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

/* === DODATKOWE ULEPSZENIA WYGLĄDU === */

/* 1. Większy tytuł na stronie pojedynczego wpisu */
.single article h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

/* 2. Odstępy między nagłówkami a tekstem */
article h2, article h3 {
    margin-top: 2em;
    margin-bottom: 1em;
}

/* 3. Styl dla cytatów (blockquote) */
article blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 4px solid var(--accent);
    background: rgba(255,59,48,0.05);
    font-style: italic;
    color: #ddd;
}

/* 4. Listy punktowane i numerowane */
article ul, article ol {
    margin: 1.2em 0 1.8em 2.2em;
}

article li {
    margin-bottom: 0.6em;
    color: #ccc;
}

/* 5. Odstępy między akapitami (ZWIĘKSZONE) */
article p {
    margin-bottom: 2.2em !important;
    line-height: 1.8 !important;
}

/* 6. Pierwszy akapit po nagłówku – może być trochę mniejszy odstęp? Opcjonalne */
article h2 + p, article h3 + p {
    margin-top: 0.5em;
}

/* === RESPONSYWNOŚĆ (telefony) === */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .logo {
        font-size: 1.5em;
        text-align: center;
    }
    
    /* Przewijane menu bez widocznego paska */
    .nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        gap: 8px;
        justify-content: flex-start;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.85em;
        flex-shrink: 0;
    }
    
    .site-content {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    article {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    article h1 {
        font-size: 1.8em;
        line-height: 1.3;
    }
    
    .single article h1 {
        font-size: 2em;
    }
    
    article .post-meta {
        font-size: 0.8em;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    article p {
        margin-bottom: 1.8em !important;
        font-size: 0.95em;
    }
    
    article img {
        margin: 15px 0;
    }
    
    .back-button {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    
    .site-footer {
        padding: 20px 15px;
        font-size: 0.9em;
    }
    
    .site-footer div {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .site-footer a {
        margin: 0;
        display: inline-block;
    }
}

/* === MAŁE TELEFONY (poniżej 480px) === */
@media (max-width: 480px) {
    .logo {
        font-size: 1.3em;
    }
    
    .nav-links a {
        padding: 5px 10px;
        font-size: 0.8em;
    }
    
    article h1 {
        font-size: 1.5em;
    }
    
    .single article h1 {
        font-size: 1.8em;
    }
    
    article {
        padding: 15px;
    }
}