/*
Theme Name: Kontynenty Travel Log
Theme URI: https://kontynenty.net
Author: Antigravity
Description: A minimalist, content-focused theme designed for travel logs with gallery support.
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: kontynenty
*/

:root {
    /* Safe Light Theme Defaults */
    --primary-color: #2c3e50;
    --accent-color: #d35400;
    /* Burnt Orange for "Travel" feel */
    --text-color: #333333;
    --bg-color: #f4f1ea;
    /* Warm Paper White */
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --font-heading: 'Georgia', serif;
    /* Classic Journal feel */
    --font-body: 'Segoe UI', system-ui, sans-serif;
    --container-width: 1200px;
}

/* Dark Mode Overrides via attribute */
[data-theme="dark"] {
    --primary-color: #ecf0f1;
    --accent-color: #e67e22;
    --text-color: #e0e0e0;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --border-color: #404040;
}

/* Reset & Basics */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Header */
.site-header {
    background: var(--card-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.site-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Navigation */
.main-navigation {
    margin-top: 10px;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-navigation a {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 20px;
}

/* Posts */
.post {
    background: var(--card-bg);
    margin-bottom: 50px;
    padding: 50px;
    border-radius: 2px;
    /* Slight paper feel */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: background-color 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.post-header {
    margin-bottom: 25px;
    text-align: center;
    /* Journal style header */
}

.entry-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: bold;
}

.entry-location {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

[data-theme="dark"] .entry-location {
    color: #aaa;
}

.entry-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.entry-content {
    font-size: 1.15rem;
}

.entry-content p {
    margin-bottom: 1.6em;
}

/* Read More Button */
.more-link {
    display: inline-block;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.more-link:hover {
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.nav-links .page-numbers {
    padding: 10px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.nav-links .current {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 50px 0;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        margin: 20px auto;
    }

    .post {
        padding: 25px;
    }

    .entry-title {
        font-size: 1.6rem;
    }
}

/* FIX: Poprawka na zdjęcia w wersji mobilnej */
.entry-content img,
.entry-content figure,
.wp-caption {
    max-width: 100%;
    height: auto;
}