/*
Theme Name: Main
Text Domain: Main
Version: 2.1
Tested up to: 6.0
Requires at least: 4.7
Requires PHP: 5.2.4
Description: Main
Author: the WordPress team
Author URI: https://wordpress.org/
Theme URI: https://wordpress.org/themes/twentytwenty/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   CSS VARIABLES - PALETA KOLORÓW
   ============================================
   Zmień te wartości aby dostosować całą paletę!
============================================ */

:root {
    /* === KOLORY GŁÓWNE === */
    --color-primary: #3498db;           /* Niebieski - główny akcent */
    --color-primary-dark: #2980b9;      /* Ciemniejszy niebieski - hover */
    --color-secondary: #34495e;         /* Ciemnoszary - secondary */
    --color-accent: rgba(235,235,235,0.8);                /* Czerwony - akcenty */
    
    /* === KOLORY TEMATYCZNE === */
    --color-background: black;          /* Tło strony */
    --color-surface: rgba(255, 255, 255, 0.95); /* Tło kart/postów */
    --color-header: rgba(0,0,0,0.8);    /* Tło nagłówka */
    --color-footer: rgba(0,0,0,0.8);    /* Tło stopki */
    --color-overlay: rgba(0,0,0,0.8);   /* Overlay na obrazkach */
    
    /* === KOLORY TEKSTU === */
    --color-text-primary: #2c3e50;      /* Nagłówki, główny tekst */
    --color-text-secondary: #555;       /* Treść postów */
    --color-text-meta: #7f8c8d;         /* Daty, meta informacje */
    --color-text-light: #ecf0f1;        /* Jasny tekst (na ciemnym tle) */
    --color-text-white: white;          /* Biały tekst */
    --color-text-body: #333;            /* Główny kolor body */
    
    /* === KOLORY BADGE === */
    --color-badge-reader: #e74c3c;      /* Czerwony - "Od Czytelników" */
    --color-badge-promo: #27ae60;       /* Zielony - "Promo" */
    
    /* === KOLORY UI (przyciski, linki, etc.) === */
    --color-link: color: rgba(255,255,255,0.7);;  /* Linki w footerze */
    --color-link-hover: rgba(255,255,255,0.9); /* Linki hover */
    --color-border: #34495e;            /* Bordery */
    --color-border-light: #ddd;         /* Jasne bordery */
    
    /* === KOLORY PAGINACJI === */
    --color-pagination-bg: #ecf0f1;     /* Tło przycisków paginacji */
    --color-pagination-text: #2c3e50;   /* Tekst paginacji */
    --color-pagination-active: #3498db; /* Aktywna strona */
    --color-pagination-nav: #2c3e50;    /* Prev/Next buttons */
    --color-pagination-nav-hover: #34495e; /* Prev/Next hover */
    --color-pagination-dots: #7f8c8d;   /* Kropki "..." */
    
    /* === CIENIE === */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-xl: 0 6px 12px rgba(0,0,0,0.15);
    --shadow-2xl: 0 10px 25px rgba(0,0,0,0.3);
    --shadow-badge: 0 2px 5px rgba(0,0,0,0.3);
    --shadow-header: 0 2px 5px rgba(0,0,0,0.2);
    --shadow-header-scroll: 0 4px 8px rgba(0,0,0,0.3);
    --shadow-search: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-reader: 0 5px 15px rgba(0,0,0,0.2);
    
    /* === INNE === */
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --border-radius-sm: 5px;
    --border-radius-badge: 5px;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. CSS Reset
   2. Base Styles
   3. Layout System (Wrapper & Grid)
   4. Components
   5. Sections
   6. Footer
   7. Pagination
   8. Utilities
   9. Media Queries
============================================ */


/* ============================================
   1. CSS RESET
   ============================================ */

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


/* ============================================
   2. BASE STYLES
   ============================================ */

body {
    background: var(--color-background);
    color: var(--color-text-body);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ============================================
   3. LAYOUT SYSTEM
   ============================================ */

.wrapper {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    margin-bottom: 30px;
    padding: 0 15px;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

.intro {
    padding: 32px 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.6);
}

.intro h1 {
    text-transform: capitalize;
}


/* ============================================
   4. COMPONENTS
   ============================================ */

/* --- Badges --- */
.post-badge {
    background-color: var(--color-badge-reader);
    border-radius: var(--border-radius-badge);
    box-shadow: var(--shadow-badge);
    color: var(--color-text-white);
    font-size: 0.85rem;
    font-weight: bold;
    left: 15px;
    padding: 8px 15px;
    position: absolute;
    top: 15px;
    z-index: 10;
}

.post-badge.promo {
    background-color: var(--color-badge-promo);
}

.post-badge.reader {
    background-color: var(--color-badge-reader);
}

/* --- Header & Navigation --- */
.header-nav {
    background-color: var(--color-header);
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    transition: box-shadow var(--transition-speed) ease;
    z-index: 1000;
}

.header-nav.at-top {
    box-shadow: var(--shadow-header-scroll);
}

.header-nav-container {
    align-items: center;
    display: flex;
    gap: 30px;
    justify-content: space-between;
    min-height: 70px;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo a {
    color: var(--color-text-white);
    display: block;
    transition: opacity var(--transition-speed);
}

.logo a:hover {
    opacity: 0.8;
}

.logo h4 {
    font-family: 'Metal Mania';
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.logo h2 {
    color: var(--color-text-white);
    font-size: 18px;
    text-align: center;
}

.logo .tagline {
    color: var(--color-text-light);
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 2px;
}

/* Navigation */
.main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    border-bottom: transparent;
    color: var(--color-text-white);
    display: block;
    font-size: 0.95rem;
    padding: 15px 20px;
    transition: background-color var(--transition-speed);
    border-bottom: 1px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    border-bottom: 1px solid var(--color-text-white);
}

/* --- Search --- */
.header-search {
    flex-shrink: 0;
    position: relative;
}

.search-toggle {
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--color-text-white);
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 10px;
    transition: opacity var(--transition-speed);
}

.search-toggle:hover {
    background-color: var(--color-secondary);
}

.search-toggle svg {
    height: 22px;
    width: 22px;
}

.search-dropdown {
    background: var(--color-text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-search);
    min-width: 300px;
    opacity: 0;
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    visibility: hidden;
}

.search-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.search-dropdown::before {
    background: var(--color-text-white);
    content: '';
    height: 12px;
    position: absolute;
    right: 15px;
    top: -6px;
    transform: rotate(45deg);
    width: 12px;
}

.search-dropdown form {
    display: flex;
    gap: 8px;
}

.search-input {
    border: 2px solid var(--color-border-light);
    border-radius: var(--border-radius-sm);
    flex: 1;
    font-size: 0.95rem;
    outline: none;
    padding: 10px 15px;
    transition: border-color var(--transition-speed);
}

.search-input:focus {
    border-color: var(--color-primary);
}

.search-submit {
    align-items: center;
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-white);
    cursor: pointer;
    display: flex;
    justify-content: center;
    padding: 10px 15px;
    transition: background-color var(--transition-speed);
}

.search-submit:hover {
    background-color: var(--color-primary-dark);
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.mobile-menu-toggle span {
    background: var(--color-text-white);
    border-radius: 2px;
    height: 3px;
    transition: all var(--transition-speed) ease;
    width: 25px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* ============================================
   5. SECTIONS
   ============================================ */

article.single-post img {
    margin: 16px auto;
}
article.single-post p {
    margin-bottom: 24px;
}
article.single-post blockquote p {
    padding: 10px;
    border-left: 1px solid grey;
    background: rgba(0,0,0,0.1);
    margin-bottom: 0;
    margin-bottom: 24px;
}
article.single-post h2, article.single-post h3 {
    width: 100%;
    text-align: center;
    margin: 16px 0;
}

/* --- Featured Posts Section --- */
.featured-section {
    margin: 30px 0;
    padding: 40px 0;
}

.featured-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 3fr 1fr;
}

.featured-main {
    grid-column: 1;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-column: 2;
}

/* Main Featured Post */
.main-post {
    background-position: center;
    background-size: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    color: var(--color-text-white);
    display: block;
    height: 100%;
    min-height: 360px;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-speed);
    width: 100%;
}

.main-post:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.02);
}

.main-post .post-badge {
    font-size: 0.9rem;
    left: 20px;
    padding: 10px 18px;
    top: 20px;
}

.main-post .post-content {
    background: linear-gradient(0deg, var(--color-overlay) 0%, var(--color-overlay) 80%, rgba(0,0,0,0) 100%, transparent);
    bottom: 0;
    color: var(--color-text-white);
    left: 0;
    padding: 40px 30px 30px 30px;
    position: absolute;
    width: 100%;
}

.main-post h2 {
    color: var(--color-text-white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.main-post p {
    font-size: 1.1rem;
}

/* Sidebar Posts */
.sidebar-post {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    color: inherit;
    display: block;
    flex: 1;
    padding: 15px;
    transition: transform var(--transition-speed);
}

.sidebar-post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.sidebar-post img {
    border-radius: var(--border-radius-sm);
    height: 150px;
    margin-bottom: 10px;
    object-fit: cover;
    width: 100%;
}

.sidebar-post-content h3 {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sidebar-post-content .date {
    color: var(--color-text-meta);
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.sidebar-post-content p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Grid Posts Section --- */
.grid-section {
    margin: 30px 0;
    padding: 40px 0;
}

.grid-post {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    color: inherit;
    display: block;
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-speed);
}

.grid-post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.grid-post .post-badge {
    left: 15px;
    top: 15px;
}

.grid-post img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.grid-post-content {
    padding: 20px;
}

.grid-post-content h3 {
    color: var(--color-text-primary);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.grid-post-content .date {
    color: var(--color-text-meta);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.grid-post-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* --- Reader Posts Section --- */
.reader-posts-section {
    margin: 40px 0;
    padding: 60px 0;
}

.reader-posts-header {
    margin-bottom: 40px;
    text-align: center;
}

.reader-posts-header h2 {
    color: var(--color-text-white);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.reader-posts-grid {
    display: flex;
	flex-wrap: wrap;
    gap: 25px;
    margin: 0 auto;
    max-width: 1920px;
    padding: 0 25px;
	width: fit-content;
}
.reader-posts-grid a {
	max-width: 445px;
}

@media (min-width: 1921px) {
    .reader-posts-grid {
        max-width: 2400px;
        padding: 0 50px;
    }
}

.reader-post {
    background-color: var(--color-surface);
    border-radius: 10px;
    box-shadow: var(--shadow-reader);
    color: inherit;
    display: block;
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.reader-post:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-10px);
}

.reader-post .post-badge {
    left: 15px;
    top: 15px;
}

.reader-post img {
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-speed);
    width: 100%;
}

.reader-post:hover img {
    transform: scale(1.1);
}

.reader-post-content {
    padding: 20px;
}

.reader-post-content h3 {
    color: var(--color-text-primary);
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.reader-post-content .date {
    color: var(--color-text-meta);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.reader-post-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Classic Posts Section --- */
.classics-section {
    margin: 30px 0;
    padding: 40px 0;
}

.classics-header {
    margin-bottom: 40px;
    text-align: center;
}

.classics-header h2 {
    color: var(--color-text-white);
    display: inline-block;
    font-size: 2.5rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.classics-header h2::after {
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    bottom: -10px;
    content: '';
    height: 3px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 60%;
}

.classics-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
}

.classic-post {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    color: inherit;
    cursor: pointer;
    display: block;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.classic-post:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.classic-post img {
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition-speed);
    width: 100%;
}

.classic-post:hover img {
    transform: scale(1.08);
}

.classic-post-content {
    padding: 15px;
}

.classic-post-content h3 {
    color: var(--color-text-primary);
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 50px;
}

.classic-post-content .date {
    color: var(--color-text-meta);
    display: block;
    font-size: 0.85rem;
}


/* ============================================
   6. FOOTER
   ============================================ */

.footer {
    background-color: var(--color-footer);
    color: var(--color-link-hover);
    margin-top: 40px;
    padding: 40px 0 20px;
}

.footer a {
    opacity: 0.9;
    text-decoration: underline;
    transition: all var(--transition-speed);
}

.footer a:hover {
    color: var(--color-link-hover);
    opacity: 0.8;
}

.footer h4 {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer p {
    line-height: 1.8;
}

.contact-list li,
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--color-link-hover);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    font-size: 0.9rem;
    transition: background-color var(--transition-speed);
}

.tag-cloud a:hover {
    color: var(--color-link-hover);
}

.tag-cloud a:not(:last-child)::after {
    content: ', ';
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}


/* ============================================
   7. PAGINATION
   ============================================ */

.pagination {
    text-align: center;
}

.pagination .nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pagination a,
.pagination span {
    background: var(--color-pagination-bg);
    border-radius: var(--border-radius-sm);
    color: var(--color-pagination-text);
    display: inline-block;
    font-weight: 600;
    padding: 10px 18px;
    transition: all var(--transition-speed);
}

.pagination a:hover {
    background: var(--color-pagination-active);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--color-pagination-active);
    color: var(--color-text-white);
}

.pagination .prev,
.pagination .next {
    background: var(--color-pagination-nav);
    color: var(--color-text-white);
}

.pagination .prev:hover,
.pagination .next:hover {
    background: var(--color-pagination-nav-hover);
}

.pagination .dots {
    background: transparent;
    color: var(--color-pagination-dots);
}


/* ============================================
   8. UTILITIES
   ============================================ */

.archive-header {
    color: var(--color-text-white);
    margin-bottom: 32px;
    text-align: center;
    text-transform: capitalize;
}


/* ============================================
   9. MEDIA QUERIES
   ============================================ */

/* --- Tablet: 992px --- */
@media (max-width: 992px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo .tagline {
        font-size: 0.7rem;
    }
    
    .nav-menu li a {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-main,
    .featured-sidebar {
        grid-column: 1;
    }
    
    .featured-sidebar {
        flex-direction: row;
        gap: 15px;
    }
    
    .sidebar-post {
        flex: 1;
    }
    
    .col-6 {
        width: 100%;
    }
    
    .main-post h2 {
        font-size: 1.5rem;
    }
    
    .reader-posts-header h2,
    .classics-header h2 {
        font-size: 2rem;
    }
    
    .reader-posts-grid {
        gap: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .classics-grid {
        gap: 18px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Mobile: 768px --- */
@media (max-width: 768px) {
    .header-nav-container {
        flex-wrap: nowrap;
        position: relative;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .header-search {
        margin-right: 10px;
        order: 0;
    }
    
    .search-dropdown {
        min-width: 280px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 0;
    }
    
    .main-nav {
        background-color: var(--color-header);
        box-shadow: var(--shadow-header-scroll);
        left: 0;
        max-height: 0;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: 100%;
        transition: max-height var(--transition-speed) ease;
        width: 100%;
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        width: 100%;
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        border-radius: 0;
        padding: 15px 20px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-sidebar {
        flex-direction: column;
    }
    
    .sidebar-post {
        flex-direction: row;
        gap: 15px;
    }
    
    .sidebar-post img {
        flex-shrink: 0;
        height: 120px;
        width: 120px;
    }
    
    .main-post h2 {
        font-size: 1.3rem;
    }
    
    .main-post p {
        font-size: 0.95rem;
    }
    
    .main-post .post-content {
        padding: 20px;
    }
    
    .grid-post img {
        height: 200px;
    }
    
    .grid-post-content h3 {
        font-size: 1.2rem;
    }
    
    .reader-posts-section {
        padding: 40px 0;
    }
    
    .reader-posts-header h2 {
        font-size: 1.8rem;
    }
    
    .reader-posts-grid {
        gap: 20px;
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .reader-post img {
        height: 220px;
    }
    
    .reader-post-content h3 {
        font-size: 1.2rem;
    }
    
    .classics-section {
        padding: 30px 0;
    }
    
    .classics-header h2 {
        font-size: 1.8rem;
    }
    
    .classics-grid {
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .classic-post img {
        height: 160px;
    }
    
    .classic-post-content h3 {
        font-size: 1rem;
        min-height: auto;
    }
    
    .footer .col-3 {
        width: 100%;
    }
    
    .post-badge {
        font-size: 0.75rem;
        left: 10px;
        padding: 6px 12px;
        top: 10px;
    }
    
    .main-post .post-badge {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    
    .pagination a,
    .pagination span {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}

/* --- Small Mobile: 480px --- */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo .tagline {
        font-size: 0.65rem;
    }
    
    .header-search {
        margin-right: 5px;
    }
    
    .search-toggle svg {
        height: 20px;
        width: 20px;
    }
    
    .search-dropdown {
        min-width: 250px;
        right: -10px;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .mobile-menu-toggle {
        padding: 8px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
    }
    
    .sidebar-post {
        flex-direction: column;
    }
    
    .sidebar-post img {
        height: 180px;
        width: 100%;
    }
    
    .main-post h2 {
        font-size: 1.1rem;
    }
    
    .main-post p {
        font-size: 0.85rem;
    }
    
    .grid-post-content {
        padding: 15px;
    }
    
    .grid-post-content h3 {
        font-size: 1.1rem;
    }
    
    .reader-posts-header h2 {
        font-size: 1.5rem;
    }
    
    .reader-post img {
        height: 200px;
    }
    
    .reader-post-content {
        padding: 15px;
    }
    
    .reader-post-content h3 {
        font-size: 1.1rem;
    }
    
    .classics-header h2 {
        font-size: 1.5rem;
    }
    
    .classics-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }
    
    .classic-post img {
        height: 200px;
    }
    
    .classic-post-content {
        padding: 12px;
    }
    
    .classic-post-content h3 {
        font-size: 1.1rem;
    }
}

/* Lightbox */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 4px;
}

article.single-post a {
	color: maroon;
    text-decoration: underline;
}
hr {
	margin: 32px auto;
	max-width: 75%;
}