/*
Theme Name: TRW Blog Custom
Theme URI: https://trekkit.pl
Author: TRW
Author URI: https://trekkit.pl
Description: Blog trekingowy w stylu bikeandsurf
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trw-blog-custom
*/

/* ===========================
   RESET & CSS VARIABLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    forced-color-adjust: none;
}

:root {
    /* Kolory – paleta trekingowa (las, góry, ziemia) */
    --primary-color: #1a3c34;
    --secondary-color: #c77b3a;
    --accent-hover: #b36a32;
    --text-color: #1e2d28;
    --light-gray: #e8e6e0;
    --dark-gray: #4a4a45;
    --white: #f6f2eb;
    --border-color: rgba(26, 60, 52, 0.18);
    --border-color-light: rgba(246, 242, 235, 0.35);
    --background-alt: rgba(26, 60, 52, 0.04);
    --overlay-dark: rgba(21, 42, 36, 0.6);
    --overlay-gradient-start: rgba(21, 42, 36, 0.1);
    --overlay-gradient-end: rgba(21, 42, 36, 0.75);
    --text-muted: rgba(30, 45, 40, 0.65);
    --text-muted-light: rgba(246, 242, 235, 0.85);
    --text-muted-on-dark: rgba(246, 242, 235, 0.7);
    --placeholder-color: #8a8a85;

    /* Typografia */
    --title-font-family: 'General Sans', 'General Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --body-font-family: 'General Sans', 'General Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
    --font-size-4xl: 36px;
    --font-size-5xl: 42px;
    --font-size-6xl: 48px;
    --font-size-hero: 70px;
    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 60px;
    --spacing-xl: 80px;
    --container-width: 1400px;
    --container-padding: 20px;

    /* Bordery */
    --border-width: 1px;
    --border-radius-sm: 3px;
    --border-radius: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 20px;

    /* Cienie */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: -5px 0 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 1px 1px 3px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;

    /* Header / dark surfaces */
    --header-bg: #152a24;
}

/* ===========================
   BASE STYLES
   =========================== */

/* Zapobieganie przeskokowi fontów */
body {
    font-family: var(--body-font-family);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--white);
    color-scheme: only light !important;
    forced-color-adjust: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a:hover {
    color: var(--secondary-color);
}

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

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

/* ===========================
   ICONS
   =========================== */

.custom-icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

.icon-mail {
    background-image: url('assets/icons/mail.svg');
}

.icon-phone {
    background-image: url('assets/icons/phone.svg');
}

.icon-search {
    background-image: url('assets/icons/search.svg');
}

.icon-user {
    background-image: url('assets/icons/user.svg');
}

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

.header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 10px;
}

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

.social-icon img {
    height: 16px;
    width: auto;
}

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

.site-header {
    background-color: transparent;
    padding: var(--spacing-md) 0;
    box-shadow: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}

.site-branding {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-branding img {
    max-width: 180px;
}

.site-branding a {
    color: var(--white);
    font-family: var(--title-font-family);
    font-size: var(--font-size-2xl);
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
}

.site-branding a:hover {
    color: var(--secondary-color);
}

/* Search Form */
.search-form-container {
    flex: 0 1 auto;
    max-width: 400px;
    margin: 0;
}

.search-form {
    display: flex;
    border-bottom: var(--border-width) solid var(--white);
    margin-top: calc(var(--spacing-xs) * -1);
}

.search-field {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 8px var(--spacing-xs);
    width: 100%;
    font-family: var(--body-font-family);
    font-size: var(--font-size-sm);
    font-weight: 300;
}

.search-field::placeholder {
    color: var(--placeholder-color);
}

.search-submit {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: var(--body-font-family);
}

.search-field:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-action-link {
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu Toggle Button */
.menu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--title-font-family);
    margin-left: 25px;
}

.menu-toggle.active {
    color: var(--secondary-color);
}

/* ===========================
   MOBILE MENU
   =========================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-dark);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    color: var(--white);
    background-color: var(--header-bg);
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    z-index: 999;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    contain: layout style paint;
}

.mobile-menu.active {
    transform: translate3d(0, 0, 0);
}

.close-menu {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

.close-text {
    font-family: var(--title-font-family);
    font-size: var(--font-size-2xl);
    text-transform: lowercase;
    font-weight: 300;
    color: var(--white);
}

.close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.close-menu:hover .close-icon {
    transform: rotate(90deg);
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.mobile-menu-list li {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.mobile-menu-list a {
    color: var(--white);
    display: block;
    padding: 15px 20px;
    font-size: 25px;
    font-family: var(--title-font-family);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.mobile-menu-list a:hover {
    color: var(--secondary-color);
}

/* ===========================
   HERO SECTION - BLOG
   =========================== */

.blog-hero {
    background-color: var(--primary-color);
    color: var(--white);
    height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.blog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.blog-hero .container {
    position: relative;
    z-index: 3;
}

.blog-hero-content {
    max-width: 100%;
    text-align: left;
}

.blog-hero h1,
.archive-title {
    font-family: var(--title-font-family);
    font-size: var(--font-size-hero);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 15px;
    color: var(--white);
}

.blog-hero-description,
.archive-description {
    font-size: var(--font-size-lg);
    font-weight: 300;
    line-height: 1.5;
    max-width: 600px;
    color: var(--white);
    opacity: 0.8;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--white);
}

.breadcrumbs a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--white);
}

.breadcrumbs .current {
    color: var(--secondary-color);
    font-weight: 500;
}

/* ===========================
   BLOG FILTERS
   =========================== */

.blog-filters {
    padding: var(--spacing-md) 0;
    border-bottom: var(--border-width) solid var(--border-color);
}

.blog-categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    margin-right: 15px;
    color: var(--primary-color);
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-link {
    display: inline-block;
    padding: 8px var(--spacing-sm);
    border-radius: 0;
    background-color: transparent;
    border: var(--border-width) solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 400;
    transition: all var(--transition-base);
}

.filter-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-link.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* ===========================
   MAIN CONTENT WRAPPER
   =========================== */

.content-wrapper {
    background-color: var(--white);
    min-height: 60vh;
}

/* ===========================
   POSTS GRID
   =========================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    padding: 40px 0;
}

.post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.post-card {
    border-top: var(--border-width) solid var(--border-color);
    padding-top: var(--spacing-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    margin-top: var(--spacing-sm);
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-base);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-meta {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

.post-category {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 12px;
}

.post-date {
    color: var(--text-muted);
}

.post-card-title {
    font-size: var(--font-size-lg);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--secondary-color);
}

.post-excerpt {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 90px;
    color: var(--dark-gray);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.read-more:hover {
    color: var(--primary-color);
}

/* ===========================
   CATEGORY PAGE - LAYOUT
   =========================== */

.category-archive .category-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-lg);
    align-items: start;
}

.category-archive .category-main {
    min-width: 0;
}

.category-archive .category-sidebar-wrapper {
    position: sticky;
    top: 120px;
}

/* Sidebar kategorii */
.category-sidebar {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.sidebar-title {
    font-family: var(--title-font-family);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-transform: uppercase;
}

.category-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-sidebar-list li {
    margin-bottom: var(--spacing-xs);
}

.category-sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.category-sidebar-list a:hover,
.category-sidebar-list a.active {
    background-color: var(--secondary-color);
    color: var(--white);
}

.category-sidebar-list .count {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* Sekcje dodatkowe na stronie kategorii */
.category-extra-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: var(--border-width) solid var(--border-color);
}

.category-extra-section .section-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
}

.posts-grid-compact .post-excerpt {
    display: none;
}

/* ===========================
   CATEGORY PAGE (legacy)
   =========================== */

.category-header {
    background-color: var(--header-bg);
    padding: 160px 0 40px;
}

.category-title {
    font-family: var(--title-font-family);
    font-size: var(--font-size-hero);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    text-transform: uppercase;
}

.category-description {
    font-size: var(--font-size-lg);
    color: var(--white);
    max-width: 600px;
}

.category-count {
    margin-top: var(--spacing-xs);
    color: var(--text-muted-on-dark);
    font-size: var(--font-size-sm);
}

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

.single-post .site-header {
    background-color: var(--header-bg);
}

.single-post .header-wrapper {
    position: relative;
}

.single-post-wrapper {
    background: var(--white);
    padding-top: 0;
}

.single-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px var(--container-padding);
}

/* Featured Image with Overlay */
.post-featured-image-container {
    position: relative;
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 500px;
}

.post-featured-image {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.featured-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--overlay-gradient-start) 0%, var(--overlay-gradient-end) 100%);
    z-index: 1;
}

.post-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #fff;
}

.post-header-overlay .post-meta {
    margin-bottom: 15px;
}

.post-header-overlay .post-category {
    background-color: var(--secondary-color);
    color: #fff;
}

.post-header-overlay .post-date {
    color: var(--text-muted-light);
}

.post-header-overlay .post-title {
    color: var(--white);
    font-family: var(--title-font-family);
    font-size: var(--font-size-5xl);
    line-height: var(--line-height-tight);
    margin-bottom: 0;
    text-shadow: var(--shadow-lg);
    font-weight: 700;
}

/* Single Post Content */
.single-post-header {
    margin-bottom: 30px;
}

.single-post-title {
    font-family: var(--title-font-family);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.single-post-meta {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.single-post-meta .post-category {
    background-color: var(--secondary-color);
    color: var(--white);
}

.single-post-thumbnail {
    margin-bottom: 40px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post-content {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2 {
    font-family: var(--title-font-family);
    font-size: var(--font-size-4xl);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.single-post-content h3 {
    font-family: var(--title-font-family);
    font-size: var(--font-size-3xl);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 30px 0;
}

.single-post-content ul,
.single-post-content ol {
    margin: 20px 0 20px 30px;
}

.single-post-content li {
    margin-bottom: 10px;
}

.single-post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: var(--spacing-sm);
    margin: 30px 0;
    font-style: italic;
    color: var(--dark-gray);
}

/* Single Post Footer */
.single-post-footer {
    margin-top: 40px;
    padding-top: var(--spacing-md);
    border-top: var(--border-width) solid var(--border-color);
}

.post-tags {
    margin-bottom: 20px;
}

.post-tags span {
    font-weight: 600;
    margin-right: 10px;
}

.post-tags a,
.tag-link {
    display: inline-block;
    background-color: var(--light-gray);
    padding: 5px 12px;
    margin: 5px 5px 5px 0;
    border-radius: var(--border-radius-lg);
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.post-tags a:hover,
.tag-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Post Share */
.post-share {
    display: flex;
    align-items: center;
}

.share-title {
    font-weight: 600;
    margin-right: 10px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: var(--spacing-xs);
    background-color: var(--light-gray);
    transition: background-color var(--transition-base);
}

.share-link:hover {
    background-color: var(--secondary-color);
}

.share-link svg {
    width: 20px;
    height: 20px;
    fill: var(--secondary-color);
}

.share-link:hover svg {
    fill: var(--white);
}

/* Post Navigation */
.post-navigation {
    border-top: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
    padding: 25px 0;
    margin: 40px 0;
}

.post-navigation-links {
    display: flex;
    justify-content: space-between;
}

.prev-post,
.next-post {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
    max-width: 45%;
}

.prev-post:hover,
.next-post:hover {
    color: var(--secondary-color);
}

.nav-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 500;
    line-height: 1.4;
}

.next-post {
    text-align: right;
    align-items: flex-end;
}

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

.pagination {
    text-align: center;
    margin: 30px 0 60px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: var(--spacing-xs) 15px;
    margin: 0 5px;
    border-radius: 0;
    background-color: transparent;
    border: var(--border-width) solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-base);
}

.pagination .page-numbers.current {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.pagination .page-numbers:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

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

.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-left {
    flex: 0 0 40%;
    padding-right: 60px;
    position: relative;
}

.footer-left .site-logo {
    font-family: var(--title-font-family);
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-left .site-logo:hover {
    color: var(--secondary-color);
}

.footer-left p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-right {
    flex: 0 0 60%;
    display: flex;
    justify-content: space-between;
    padding-left: 60px;
    gap: 50px;
    position: relative;
}

.footer-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--border-width);
    background-color: var(--border-color-light);
}

.footer-widget {
    flex: 1;
    padding: 0 15px;
}

.footer-widget h3 {
    font-size: 20px;
    font-family: var(--title-font-family);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--secondary-color);
}

.contact-info {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.footer-social img {
    width: 24px;
    height: 24px;
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--spacing-sm) 0;
    background-color: var(--primary-color);
    border-top: var(--border-width) solid var(--border-color-light);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-left {
    display: flex;
    gap: 40px;
}

.footer-bottom-left a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
}

.footer-bottom-left a:hover {
    color: var(--secondary-color);
}

.copyright,
.realization {
    font-size: 14px;
    color: var(--white);
    margin: 0;
}

.realization a {
    color: var(--white);
    text-decoration: none;
}

.realization a:hover {
    color: var(--secondary-color);
}

/* ===========================
   NO POSTS
   =========================== */

.no-posts {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-sm);
    background-color: var(--background-alt);
    border-radius: var(--border-radius-md);
    margin: 40px 0;
}

.no-posts h2 {
    font-family: var(--title-font-family);
    font-size: var(--font-size-4xl);
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.no-posts p {
    font-size: var(--font-size-lg);
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   BUTTONS
   =========================== */

.button-primary,
.button-secondary {
    display: inline-block;
    padding: 15px var(--spacing-md);
    color: var(--white);
    text-decoration: none;
    font-family: var(--body-font-family);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.button-primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    z-index: -1;
    transition: 0.3s ease;
}

.button-primary:hover::after {
    height: 100%;
}

.button-primary:hover {
    color: var(--white);
}

.button-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.button-secondary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--secondary-color);
    z-index: -1;
    transition: height 0.3s ease;
}

.button-secondary:hover::after {
    height: 100%;
}

.button-secondary:hover {
    border-color: var(--secondary-color);
    color: var(--white);
}

/* ===========================
   RELATED POSTS
   =========================== */

.related-posts {
    background-color: var(--white);
    padding: var(--spacing-lg) 0;
}

.home-section {
    margin-bottom: var(--spacing-lg);
}

.home-section .section-footer {
    margin-top: var(--spacing-md);
}

.no-posts-in-section {
    color: var(--text-muted);
    font-style: italic;
    padding: var(--spacing-md) 0;
}

/* ===========================
   SECTION HEADERS
   =========================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    font-family: var(--title-font-family);
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.text-center {
    text-align: center;
}

.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;
}

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

@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-hero h1,
    .archive-title,
    .category-title {
        font-size: 55px;
    }

    .section-title {
        font-size: 55px;
    }
}

@media (max-width: 992px) {
    .category-archive .category-layout {
        grid-template-columns: 1fr;
    }

    .category-archive .category-sidebar-wrapper {
        position: static;
        order: 2;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-hero {
        height: 350px;
        padding-top: 120px;
    }

    .blog-hero h1,
    .archive-title,
    .category-title {
        font-size: 45px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-left {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .footer-right {
        flex: 0 0 100%;
        margin-top: 0;
        padding-left: 0;
    }

    .footer-right::before {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .single-post-title {
        font-size: 38px;
    }

    .post-header-overlay .post-title {
        font-size: 32px;
    }

    .post-featured-image-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .category-archive .posts-grid.posts-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
    }

    .blog-hero {
        height: 300px;
    }

    .blog-hero h1,
    .archive-title,
    .category-title {
        font-size: 36px;
    }

    .blog-hero-description,
    .archive-description {
        font-size: 16px;
    }

    .top-bar-left {
        display: none;
    }

    .menu-toggle-text {
        display: none;
    }

    .search-form-container {
        display: none;
    }

    .footer-right {
        flex-direction: column;
        gap: 30px;
    }

    .footer-widget {
        padding: 0;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .single-post-title {
        font-size: 32px;
    }

    .single-post-content {
        font-size: 16px;
    }

    .post-featured-image-container {
        height: 350px;
    }

    .post-header-overlay {
        padding: 20px;
    }

    .post-header-overlay .post-title {
        font-size: 28px;
    }

    .post-navigation-links {
        flex-direction: column;
        gap: 20px;
    }

    .prev-post,
    .next-post {
        max-width: 100%;
    }

    .next-post {
        text-align: left;
        align-items: flex-start;
    }

    .filter-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }

    .blog-categories {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .category-archive .posts-grid.posts-grid-compact {
        grid-template-columns: 1fr;
    }
    .blog-hero {
        height: 280px;
        padding-top: 100px;
    }

    .blog-hero h1,
    .archive-title,
    .category-title {
        font-size: 32px;
    }

    .single-post-container {
        padding: 30px var(--spacing-sm);
    }

    .single-post-title {
        font-size: 28px;
    }

    .post-featured-image-container {
        height: 280px;
    }

    .post-header-overlay .post-title {
        font-size: 24px;
    }

    .mobile-menu-list a {
        font-size: 22px;
        padding: 10px 15px;
    }

    .close-text {
        font-size: 20px;
    }

    .section-title {
        font-size: 36px;
    }
}