/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-right: 15px;
    padding: 5px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Dark Mode Overrides */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .top-bar {
    background-color: #1a1a1a;
}

.dark-mode .legal-links a,
.dark-mode .social-icons a {
    color: #bbb;
}

.dark-mode .main-logo {
    color: #ecf0f1;
}

.dark-mode .main-nav {
    background: #121212;
    border-color: #333;
}

.dark-mode .main-nav ul li a {
    color: #ecf0f1;
}

.dark-mode .hero-post {
    background-color: #1a1a1a;
}

.dark-mode .hero-content h2,
.dark-mode .post-info h3,
.dark-mode .seo-text-block h2 {
    color: #ecf0f1;
}

.dark-mode .excerpt,
.dark-mode .seo-text-block p,
.dark-mode .footer-about,
.dark-mode .footer-disclaimer {
    color: #aaa;
}

.dark-mode .main-footer,
.dark-mode .seo-text-block,
.dark-mode .post-item {
    border-color: #333;
}

.dark-mode .main-footer {
    background-color: #121212;
}

.dark-mode .read-more {
    color: #e67e22;
}

.dark-mode .cookie-modal {
    background-color: #1e1e1e;
    border-color: #333;
}

.dark-mode .cookie-content h3 {
    color: #fff;
}

.dark-mode .cookie-content p {
    color: #bbb;
}

/* Top Bar */
.top-bar {
    background-color: #fdf7f5;
    padding: 10px 5%;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links a {
    margin-right: 15px;
    text-decoration: none;
    color: #666;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 40px 0;
}

.main-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main Navigation */
.main-nav {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    transition: background 0.3s;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin: 0 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #e67e22;
}

.search-btn {
    margin-left: 30px;
    cursor: pointer;
}

/* Kontener */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Slider */
.hero-slider-wrapper {
    position: relative;
    margin-bottom: 60px;
    overflow: hidden;
    border-radius: 8px;
}

.hero-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-post {
    display: flex;
    flex-wrap: wrap;
    background-color: #fdf7f5;
    min-width: 100%;
    transition: background-color 0.3s;
}

.hero-image {
    flex: 1 1 500px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    flex: 1 1 400px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 20px 0;
    color: #2c3e50;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: #2c3e50;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: #e67e22;
    color: #fff;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.slider-pagination {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #e67e22;
    width: 30px;
    border-radius: 6px;
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 60px;
}

.post-item {
    display: flex;
    gap: 40px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 50px;
    transition: border-color 0.3s;
}

.post-img {
    flex: 0 0 350px;
}

.post-img img {
    width: 100%;
    border-radius: 4px;
}

.post-info {
    flex: 1;
}

.post-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 15px 0;
}

.tags {
    display: flex;
    gap: 10px;
}

.tag {
    border: 1px solid #ddd;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
}

.author {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.post-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.excerpt {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-style: italic;
}

/* SEO Text Block */
.seo-text-block {
    padding: 60px 0;
    border-top: 1px solid #eee;
    transition: border-color 0.3s;
}

.seo-text-block .content-wrapper {
    max-width: 800px;
}

.seo-text-block h2 {
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.seo-text-block p {
    color: #555;
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding-top: 60px;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-logo .main-logo {
    font-size: 1.4rem;
    text-align: left;
    letter-spacing: 1px;
    padding: 0;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
    max-width: 250px;
}

.footer-about {
    flex: 2 1 300px;
    color: #666;
    font-size: 0.9rem;
}

.footer-popular {
    flex: 1 1 200px;
}

.footer-popular h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-popular ul {
    list-style: none;
}

.footer-popular ul li {
    margin-bottom: 10px;
}

.footer-popular ul li a {
    text-decoration: none;
    color: #e67e22;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: left;
    padding: 30px 5%;
    border-top: 1px solid #f9f9f9;
    font-size: 0.8rem;
    color: #999;
}

/* Cookie Modal Style */
.cookie-modal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 360px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 25px;
    z-index: 1000;
    display: none;
    animation: slideUp 0.5s ease-out;
    border-left: 5px solid #e67e22;
}

.cookie-content h3 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-btn {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.cookie-btn:hover {
    background-color: #e67e22;
}

.cookie-link {
    color: #999;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
}

.cookie-link:hover {
    text-decoration: underline;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsywność */
@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-img {
        flex: 0 0 auto;
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .main-logo {
        font-size: 1.8rem;
    }

    .cookie-modal {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 20px;
    }

    .hero-post {
        flex-direction: column;
    }

    .hero-image {
        flex: 0 0 300px;
        width: 100%;
    }

    .footer-logo {
        flex: 1 1 100%;
        justify-content: center;
        align-items: center;
    }

    .footer-logo .main-logo {
        text-align: center;
    }

    .footer-disclaimer {
        text-align: center;
    }
}
.article-body h1 {
    font-size: 2.8rem;
    margin-top: 0;
}
.article-body p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}
.article-body h2 {
    font-size: 2.2rem;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
}
.article-body table th {
    background-color: #fdf7f5;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.article-body h3 {
    font-size: 1.8rem;
}
.article-body blockquote {
    border-left: 4px solid #e67e22;
    padding: 10px 25px;
    margin: 30px 0;
    font-style: italic;
    background: #fdf7f5;
}
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}
.comments-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
}
.comment-item {
    background: #fdf7f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    min-height: 120px;
}
.submit-comment {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    transition: background 0.3s;
}
.article-body table th, .article-body table td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
}
/* =========================
   ARTICLE LIST STYLES
========================= */

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 0;
}

.article-body ul {
    list-style: none;
}

.article-body ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Custom bullet for UL */
.article-body ul li::before {
    content: "🍷";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Ordered list styling */
.article-body ol {
    counter-reset: custom-counter;
}

.article-body ol li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Custom number styling */
.article-body ol li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #2c3e50;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nested lists */
.article-body ul ul,
.article-body ol ul,
.article-body ul ol,
.article-body ol ol {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

/* Better spacing inside content */
.article-body li p {
    margin: 0.4rem 0;
}
/* =========================
   ARTICLE CONTENT IMAGES
========================= */

.article-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
}

.article-container a img {
    display: block;
}
.article-container figure {
    margin: 2rem 0;
    text-align: center;
}

.article-container figure img {
    max-width: 100%;
    height: auto;
}

.article-container figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}