/*
Theme Name: STREFA WOD
Theme URI: https://strefawod.pl
Author: Riomega
Author URI: https://riomega.pl
Description: Motyw magazynu crossfit - ciemny, mocny, profesjonalny. Klasyczny motyw PHP.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: strefawod
Tags: dark, magazine, fitness, crossfit, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   FONTS - Self-hosted
   ========================================================================== */

/* Inter - latin-ext (Polish characters: ą ć ę ł ń ó ś ź ż) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-v18-latin-ext-400.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-v18-latin-ext-600.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/inter-v18-latin-ext-800.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter - latin (base) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/inter-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/inter-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('assets/fonts/inter-latin-800.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Oswald - latin-ext */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/oswald-v53-latin-ext-600.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/oswald-v53-latin-ext-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Oswald - latin */
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/oswald-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/oswald-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --bg-primary: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-footer: #1a1a1a;
    --border-color: #333;
    --accent-red: #e63946;
    --accent-red-hover: #ff4757;
    --accent-gold: #f4a261;
    --text-primary: #f8f8f8;
    --text-muted: #999;
    --text-link: #e63946;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --gap: 24px;
    --radius: 6px;
    --transition: 0.2s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-red-hover);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    z-index: 10000;
    transition: width 0.1s linear;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.sw-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.sw-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sw-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.sw-header__brand a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.sw-header__brand a span {
    color: var(--accent-red);
}

/* Navigation */
.sw-header__nav ul {
    display: flex;
    gap: 8px;
}

.sw-header__nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: color var(--transition), background-color var(--transition);
    white-space: nowrap;
}

.sw-header__nav a:hover,
.sw-header__nav .current-menu-item a,
.sw-header__nav .current-menu-ancestor a {
    color: var(--text-primary);
    background-color: rgba(230, 57, 70, 0.15);
}

/* Search in header */
.sw-header__search {
    flex-shrink: 0;
}

.sw-header__search .sw-search-form {
    max-width: 200px;
}

/* Mobile menu toggle */
.sw-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   SEARCH FORM
   ========================================================================== */

.sw-search-form {
    display: flex;
    position: relative;
}

.sw-search-form input[type="search"] {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 8px 40px 8px 14px;
    outline: none;
    transition: border-color var(--transition);
}

.sw-search-form input[type="search"]::placeholder {
    color: var(--text-muted);
}

.sw-search-form input[type="search"]:focus {
    border-color: var(--accent-red);
}

.sw-search-form button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    line-height: 1;
}

.sw-search-form button:hover {
    color: var(--accent-red);
}

/* ==========================================================================
   HERO SECTION (Featured/Sticky Post)
   ========================================================================== */

.sw-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 48px;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
}

.sw-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 13, 13, 0.95) 0%,
        rgba(13, 13, 13, 0.6) 40%,
        rgba(13, 13, 13, 0.2) 100%
    );
}

.sw-hero__content {
    position: relative;
    z-index: 2;
    padding: 48px 40px;
    max-width: 700px;
}

.sw-hero__content .sw-badge {
    margin-bottom: 16px;
}

.sw-hero__content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.15;
}

.sw-hero__content h2 a {
    color: var(--text-primary);
}

.sw-hero__content h2 a:hover {
    color: var(--accent-red);
}

.sw-hero__excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sw-hero__meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sw-hero__meta a {
    color: var(--accent-gold);
}

/* ==========================================================================
   CATEGORY BADGE
   ========================================================================== */

.sw-badge {
    display: inline-block;
    background-color: var(--accent-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 3px;
    line-height: 1.4;
}

.sw-badge:hover {
    background-color: var(--accent-red-hover);
    color: #fff;
}

.sw-badge--gold {
    background-color: var(--accent-gold);
    color: #0d0d0d;
}

/* ==========================================================================
   POST GRID
   ========================================================================== */

.sw-section {
    padding: 48px 0;
}

.sw-section__title {
    font-size: 1.6rem;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
}

.sw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* ==========================================================================
   POST CARD
   ========================================================================== */

.sw-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}

.sw-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-red);
}

.sw-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.sw-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sw-card:hover .sw-card__thumb img {
    transform: scale(1.05);
}

.sw-card__thumb .sw-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.sw-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.sw-card__body {
    padding: 20px;
}

.sw-card__title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sw-card__title a {
    color: var(--text-primary);
}

.sw-card__title a:hover {
    color: var(--accent-red);
}

.sw-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sw-card__meta a {
    color: var(--text-muted);
}

.sw-card__meta a:hover {
    color: var(--accent-gold);
}

.sw-card__meta .sw-separator {
    color: var(--border-color);
}

.sw-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

.sw-card__reading-time {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.sw-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 0 64px;
}

.sw-single__header {
    margin-bottom: 32px;
    text-align: center;
}

.sw-single__header .sw-badge {
    margin-bottom: 16px;
}

.sw-single__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.15;
}

.sw-single__meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sw-single__meta a {
    color: var(--accent-gold);
}

.sw-single__featured {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 16 / 9;
}

.sw-single__featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.sw-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ddd;
}

.sw-content h2 {
    font-size: 1.8rem;
    margin: 48px 0 20px;
    text-transform: uppercase;
}

.sw-content h3 {
    font-size: 1.4rem;
    margin: 36px 0 16px;
}

.sw-content h4 {
    font-size: 1.2rem;
    margin: 28px 0 12px;
}

.sw-content p {
    margin-bottom: 1.4em;
}

.sw-content a {
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sw-content a:hover {
    color: var(--accent-red-hover);
}

.sw-content ul,
.sw-content ol {
    margin: 1em 0 1.4em 1.5em;
}

.sw-content ul {
    list-style: disc;
}

.sw-content ol {
    list-style: decimal;
}

.sw-content li {
    margin-bottom: 0.5em;
}

.sw-content blockquote {
    border-left: 4px solid var(--accent-red);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-muted);
}

.sw-content blockquote p:last-child {
    margin-bottom: 0;
}

.sw-content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.sw-content figure {
    margin: 1.5em 0;
}

.sw-content figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.sw-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 1.5em 0;
}

.sw-content code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.sw-content pre code {
    background: none;
    padding: 0;
}

.sw-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.sw-content th,
.sw-content td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    text-align: left;
}

.sw-content th {
    background: var(--bg-card);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.sw-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2em 0;
}

.sw-content .wp-block-image,
.sw-content .wp-block-gallery {
    margin: 1.5em 0;
}

.sw-content .aligncenter {
    text-align: center;
}

.sw-content .alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.sw-content .alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.sw-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Author Box */
.sw-author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 48px;
}

.sw-author-box__avatar {
    flex-shrink: 0;
}

.sw-author-box__avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.sw-author-box__name {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.sw-author-box__name a {
    color: var(--text-primary);
}

.sw-author-box__name a:hover {
    color: var(--accent-red);
}

.sw-author-box__bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Related Posts */
.sw-related {
    padding: 64px 0;
}

.sw-related__title {
    font-size: 1.6rem;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
}

/* ==========================================================================
   ARCHIVE
   ========================================================================== */

.sw-archive-header {
    padding: 48px 0 32px;
    text-align: center;
}

.sw-archive-header__title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.sw-archive-header__desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.sw-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 48px 0;
}

.sw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.sw-pagination .page-numbers:hover {
    border-color: var(--accent-red);
    color: var(--text-primary);
}

.sw-pagination .page-numbers.current {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.sw-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */

.sw-search-header {
    padding: 48px 0 32px;
    text-align: center;
}

.sw-search-header__title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.sw-search-header__query {
    color: var(--accent-gold);
}

.sw-search-header .sw-search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.sw-404 {
    text-align: center;
    padding: 80px 0 48px;
}

.sw-404__number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 8rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.sw-404__title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.sw-404__text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.sw-btn {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition);
}

.sw-btn:hover {
    background: var(--accent-red-hover);
    color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.sw-footer {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 0;
    margin-top: 64px;
}

.sw-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.sw-footer__heading {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sw-footer__about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.sw-footer__categories ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-footer__categories a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.sw-footer__categories a:hover {
    color: var(--accent-red);
}

.sw-footer__popular-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.sw-footer__popular-item:last-child {
    margin-bottom: 0;
}

.sw-footer__popular-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.sw-footer__popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-footer__popular-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
}

.sw-footer__popular-title {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sw-footer__popular-title a {
    color: var(--text-primary);
}

.sw-footer__popular-title a:hover {
    color: var(--accent-red);
}

.sw-footer__popular-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sw-footer__bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sw-footer__bottom a {
    color: var(--accent-gold);
}

/* ==========================================================================
   NO RESULTS
   ========================================================================== */

.sw-no-results {
    text-align: center;
    padding: 64px 0;
}

.sw-no-results__title {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.sw-no-results__text {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ==========================================================================
   COMMENTS (basic styling)
   ========================================================================== */

.sw-comments {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.sw-comments .comments-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.sw-comments .comment-list {
    list-style: none;
}

.sw-comments .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.sw-comments .comment-author img {
    border-radius: 50%;
    float: left;
    margin-right: 16px;
}

.sw-comments .comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.sw-comments .comment-body p {
    font-size: 0.95rem;
    color: #ccc;
}

.sw-comments .comment-respond {
    margin-top: 32px;
}

.sw-comments .comment-reply-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.sw-comments input[type="text"],
.sw-comments input[type="email"],
.sw-comments input[type="url"],
.sw-comments textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    margin-bottom: 12px;
    outline: none;
}

.sw-comments input:focus,
.sw-comments textarea:focus {
    border-color: var(--accent-red);
}

.sw-comments .submit {
    background: var(--accent-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color var(--transition);
}

.sw-comments .submit:hover {
    background: var(--accent-red-hover);
}

/* ==========================================================================
   WORDPRESS CORE ALIGNMENT & UTILITY
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--bg-card);
    clip: auto !important;
    clip-path: none;
    color: var(--text-primary);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .sw-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sw-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .sw-footer__popular {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .sw-header__inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 12px;
    }

    .sw-header__brand {
        order: 1;
    }

    .sw-menu-toggle {
        display: block;
        order: 2;
    }

    .sw-header__nav {
        order: 4;
        width: 100%;
        display: none;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }

    .sw-header__nav.is-open {
        display: block;
    }

    .sw-header__nav ul {
        flex-direction: column;
        gap: 0;
    }

    .sw-header__nav a {
        display: block;
        padding: 10px 14px;
        border-radius: 0;
    }

    .sw-header__search {
        order: 3;
        flex-shrink: 1;
    }

    .sw-header__search .sw-search-form {
        max-width: 160px;
    }

    .sw-hero {
        min-height: 360px;
    }

    .sw-hero__content {
        padding: 28px 20px;
    }

    .sw-hero__content h2 {
        font-size: 1.8rem;
    }

    .sw-single__title {
        font-size: 1.8rem;
    }

    .sw-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .sw-404__number {
        font-size: 5rem;
    }

    .sw-footer__grid {
        grid-template-columns: 1fr;
    }

    .sw-footer__popular {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .sw-grid {
        grid-template-columns: 1fr;
    }

    .sw-hero {
        min-height: 300px;
    }

    .sw-hero__content h2 {
        font-size: 1.5rem;
    }

    .sw-single__meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================================
   CATEGORY SECTIONS (homepage)
   ========================================================================== */

.sw-cat-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.sw-cat-section:last-of-type {
    border-bottom: none;
}

.sw-cat-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-red);
}

.sw-cat-section__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-white);
    margin: 0;
}

.sw-cat-section__more {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-red);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.sw-cat-section__more:hover {
    color: var(--accent-gold);
}

.sw-cat-section__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sw-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    transition: background 0.15s ease;
}

.sw-mini-card:last-child {
    border-bottom: none;
}

.sw-mini-card:hover {
    background: rgba(255,255,255,0.02);
}

.sw-mini-card__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--card-bg);
}

.sw-mini-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-mini-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    font-size: 1.5rem;
    background: var(--card-bg);
}

.sw-mini-card__body {
    flex: 1;
    min-width: 0;
}

.sw-mini-card__title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.sw-mini-card:hover .sw-mini-card__title {
    color: var(--accent-red);
}

.sw-mini-card__date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 2x2 grid for category sections on desktop */
@media (min-width: 768px) {
    .sw-cat-sections-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.sw-toc {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 32px;
    overflow: hidden;
}

.sw-toc__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    color: var(--text-white);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sw-toc__toggle:hover {
    background: rgba(255,255,255,0.03);
}

.sw-toc__icon {
    color: var(--accent-red);
    font-size: 1.1rem;
}

.sw-toc__arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.sw-toc__toggle[aria-expanded="true"] .sw-toc__arrow {
    transform: rotate(180deg);
}

.sw-toc__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sw-toc__list[aria-hidden="false"] {
    max-height: 600px;
}

.sw-toc__list ol {
    list-style: none;
    padding: 0 20px 16px;
    margin: 0;
}

.sw-toc__item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sw-toc__item:last-child {
    border-bottom: none;
}

.sw-toc__item a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.sw-toc__number {
    color: var(--accent-red);
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    min-width: 28px;
    flex-shrink: 0;
}

.sw-toc__item a:hover {
    color: var(--text-white);
}

.sw-toc__item--h3 {
    padding-left: 24px;
}

.sw-toc__item--h3 a {
    font-size: 0.85rem;
}

.sw-toc__item--h3 .sw-toc__number {
    font-size: 0.85rem;
    min-width: 34px;
}

/* ==========================================================================
   ADMIN BAR FIX
   ========================================================================== */

body.admin-bar .sw-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .sw-header {
        top: 46px;
    }
}
