/*
Theme Name: Smashing
Theme URI: https://example.com/smashing-starter
Author: suspended_developer
Author URI: https://example.com
Description: A professional web development and design magazine theme inspired by modern editorial layouts. Features bold red accents, clean typography, and rounded card-based design.
Version: 1.0.3
Requires at least: 5.0
Tested up to: 6.4
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: smashing
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --smsh-color-primary: #d33a2c;
    --smsh-color-secondary: #006fc6;
    --smsh-color-accent: #f6f3f2;
    --smsh-color-text: #333333;
    --smsh-color-text-light: #666666;
    --smsh-color-text-muted: #767676;
    --smsh-color-background: #ffffff;
    --smsh-color-surface: #f6f3f2;
    --smsh-color-border: #e5e5e5;

    --smsh-color-card-green: #f1fdf8;
    --smsh-color-card-orange: #fef1f0;
    --smsh-color-card-violet: #fbecf9;

    --smsh-nav-bg: #d33a2c;
    --smsh-nav-text: #ffffff;
    --smsh-footer-bg: #d33a2c;
    --smsh-footer-text: #ffffff;

    --smsh-font-heading: 'Merriweather', Georgia, serif;
    --smsh-font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --smsh-font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    --smsh-font-size-base: 18px;
    --smsh-font-size-small: 14px;
    --smsh-font-size-h1: 2.5rem;
    --smsh-font-size-h2: 2rem;
    --smsh-font-size-h3: 1.5rem;
    --smsh-font-size-h4: 1.25rem;

    --smsh-line-height: 1.7;
    --smsh-line-height-heading: 1.3;

    --smsh-radius: 11px;
    --smsh-radius-small: 6px;
    --smsh-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    --smsh-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);

    --smsh-spacing-xs: 0.5rem;
    --smsh-spacing-sm: 1rem;
    --smsh-spacing-md: 1.5rem;
    --smsh-spacing-lg: 2rem;
    --smsh-spacing-xl: 3rem;

    --smsh-container-width: 1200px;
    --smsh-content-width: 800px;
    --smsh-sidebar-width: 320px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--smsh-font-body);
    font-size: var(--smsh-font-size-base);
    line-height: var(--smsh-line-height);
    color: var(--smsh-color-text);
    background-color: var(--smsh-color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--smsh-font-heading);
    font-weight: 700;
    line-height: var(--smsh-line-height-heading);
    margin: 0 0 var(--smsh-spacing-sm);
    color: var(--smsh-color-text);
}

h1 { font-size: var(--smsh-font-size-h1); }
h2 { font-size: var(--smsh-font-size-h2); }
h3 { font-size: var(--smsh-font-size-h3); }
h4 { font-size: var(--smsh-font-size-h4); }

p {
    margin: 0 0 var(--smsh-spacing-md);
}

a {
    color: var(--smsh-color-secondary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--smsh-color-primary);
    text-decoration: underline;
}

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

ul, ol {
    margin: 0 0 var(--smsh-spacing-md);
    padding-left: var(--smsh-spacing-lg);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.smsh-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--smsh-color-primary);
    color: #fff;
    padding: var(--smsh-spacing-sm) var(--smsh-spacing-md);
    z-index: 10000;
    border-radius: 0 0 var(--smsh-radius) 0;
    font-family: var(--smsh-font-ui);
    font-weight: 600;
}

.smsh-skip-link:focus {
    top: 0;
    outline: 3px solid var(--smsh-color-secondary);
    outline-offset: 2px;
    color: #fff;
    text-decoration: none;
}

.smsh-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus {
    outline: 2px solid var(--smsh-color-secondary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--smsh-color-secondary);
    outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.smsh-container {
    max-width: var(--smsh-container-width);
    margin: 0 auto;
    padding: 0 var(--smsh-spacing-md);
}

.smsh-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.smsh-site-content {
    flex: 1;
    padding: var(--smsh-spacing-xl) 0;
}

.smsh-content-area {
    display: grid;
    grid-template-columns: 1fr var(--smsh-sidebar-width);
    gap: var(--smsh-spacing-xl);
}

.smsh-content-area.smsh-no-sidebar {
    grid-template-columns: 1fr;
    max-width: var(--smsh-content-width);
    margin: 0 auto;
}

.smsh-content-area.smsh-sidebar-left {
    grid-template-columns: var(--smsh-sidebar-width) 1fr;
}

.smsh-content-area.smsh-sidebar-left .smsh-sidebar {
    order: -1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.smsh-header {
    background: var(--smsh-nav-bg);
    color: var(--smsh-nav-text);
    padding: var(--smsh-spacing-md) 0;
    position: relative;
}

.smsh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--smsh-spacing-lg);
}

.smsh-logo {
    flex-shrink: 0;
}

.smsh-logo a {
    color: var(--smsh-nav-text);
    font-family: var(--smsh-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.smsh-logo a:hover {
    text-decoration: none;
    opacity: 0.9;
}

.smsh-logo img {
    max-height: 50px;
    width: auto;
}

.smsh-site-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--smsh-font-size-small);
    margin-top: 0.25rem;
}

/* Navigation */
.smsh-nav {
    flex: 1;
}

.smsh-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--smsh-spacing-xs);
}

.smsh-nav-list li {
    margin: 0;
}

.smsh-nav-list a {
    display: block;
    color: var(--smsh-nav-text);
    padding: var(--smsh-spacing-xs) var(--smsh-spacing-sm);
    font-family: var(--smsh-font-ui);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--smsh-radius-small);
    transition: background 0.2s ease;
}

.smsh-nav-list a:hover,
.smsh-nav-list a:focus,
.smsh-nav-list .current-menu-item a {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

/* Header Search */
.smsh-header-search {
    flex-shrink: 0;
}

.smsh-header-search form {
    display: flex;
    align-items: center;
}

.smsh-header-search input[type="search"] {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--smsh-radius);
    font-size: 14px;
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
}

.smsh-header-search input[type="search"]:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.smsh-header-search button {
    background: transparent;
    border: none;
    color: var(--smsh-nav-text);
    padding: var(--smsh-spacing-xs);
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Mobile Menu Toggle */
.smsh-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--smsh-nav-text);
    padding: var(--smsh-spacing-xs);
    cursor: pointer;
    font-size: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.smsh-footer {
    background: var(--smsh-footer-bg);
    color: var(--smsh-footer-text);
    padding: var(--smsh-spacing-xl) 0 var(--smsh-spacing-lg);
}

.smsh-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--smsh-spacing-xl);
    margin-bottom: var(--smsh-spacing-xl);
}

.smsh-footer-widget h3 {
    color: var(--smsh-footer-text);
    font-size: 1.125rem;
    margin-bottom: var(--smsh-spacing-md);
    font-family: var(--smsh-font-ui);
}

.smsh-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smsh-footer-widget li {
    margin-bottom: 0.5rem;
}

.smsh-footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.smsh-footer-widget a:hover {
    color: #fff;
    text-decoration: underline;
}

.smsh-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--smsh-spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--smsh-spacing-sm);
}

.smsh-copyright {
    font-size: var(--smsh-font-size-small);
    color: rgba(255, 255, 255, 0.8);
}

.smsh-footer-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--smsh-spacing-md);
}

.smsh-footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--smsh-font-size-small);
}

.smsh-footer-nav a:hover {
    color: #fff;
}

/* ==========================================================================
   Cards & Articles
   ========================================================================== */

.smsh-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--smsh-spacing-lg);
}

.smsh-card {
    background: var(--smsh-color-surface);
    border-radius: var(--smsh-radius);
    overflow: hidden;
    box-shadow: var(--smsh-shadow);
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.smsh-card:hover {
    box-shadow: var(--smsh-shadow-hover);
    transform: translateY(-2px);
}

.smsh-card--green { background: var(--smsh-color-card-green); }
.smsh-card--orange { background: var(--smsh-color-card-orange); }
.smsh-card--violet { background: var(--smsh-color-card-violet); }

.smsh-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.smsh-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.smsh-card:hover .smsh-card-image img {
    transform: scale(1.03);
}

.smsh-card-content {
    padding: var(--smsh-spacing-md);
}

.smsh-card-meta {
    display: flex;
    align-items: center;
    gap: var(--smsh-spacing-sm);
    margin-bottom: var(--smsh-spacing-xs);
    font-size: var(--smsh-font-size-small);
    color: var(--smsh-color-text-muted);
    font-family: var(--smsh-font-ui);
}

.smsh-card-category {
    background: var(--smsh-color-primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: var(--smsh-radius-small);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smsh-card-category a {
    color: inherit;
}

.smsh-card-category a:hover {
    text-decoration: none;
    opacity: 0.9;
}

.smsh-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--smsh-spacing-xs);
    line-height: 1.4;
}

.smsh-card-title a {
    color: var(--smsh-color-text);
}

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

.smsh-card-excerpt {
    color: var(--smsh-color-text-light);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: var(--smsh-spacing-sm);
}

.smsh-card-excerpt a {
    color: var(--smsh-color-secondary);
}

.smsh-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--smsh-spacing-sm);
    border-top: 1px solid var(--smsh-color-border);
    font-size: var(--smsh-font-size-small);
    color: var(--smsh-color-text-muted);
}

.smsh-card-author {
    font-weight: 500;
}

.smsh-card-reading-time {
    font-family: var(--smsh-font-ui);
}

/* Featured/Sticky Post */
.smsh-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--smsh-color-background);
    border: 2px solid var(--smsh-color-primary);
}

.smsh-card--featured .smsh-card-image {
    aspect-ratio: auto;
}

.smsh-card--featured .smsh-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--smsh-spacing-lg);
}

.smsh-card--featured .smsh-card-title {
    font-size: 1.75rem;
}

.smsh-sticky-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--smsh-color-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--smsh-radius-small);
    font-family: var(--smsh-font-ui);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--smsh-spacing-sm);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.smsh-single-header {
    margin-bottom: var(--smsh-spacing-xl);
    text-align: center;
    max-width: var(--smsh-content-width);
    margin-left: auto;
    margin-right: auto;
}

.smsh-single-category {
    margin-bottom: var(--smsh-spacing-sm);
}

.smsh-single-title {
    font-size: 2.75rem;
    margin-bottom: var(--smsh-spacing-md);
}

.smsh-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--smsh-spacing-md);
    color: var(--smsh-color-text-muted);
    font-family: var(--smsh-font-ui);
    font-size: var(--smsh-font-size-small);
    flex-wrap: wrap;
}

.smsh-single-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.smsh-single-excerpt {
    font-size: 1.25rem;
    color: var(--smsh-color-text-light);
    line-height: 1.6;
    margin-top: var(--smsh-spacing-md);
    padding: var(--smsh-spacing-md);
    background: var(--smsh-color-surface);
    border-radius: var(--smsh-radius);
    border-left: 4px solid var(--smsh-color-primary);
}

.smsh-single-excerpt a {
    color: var(--smsh-color-secondary);
}

.smsh-featured-image {
    margin-bottom: var(--smsh-spacing-xl);
    border-radius: var(--smsh-radius);
    overflow: hidden;
}

.smsh-featured-image img {
    width: 100%;
    height: auto;
}

.smsh-entry-content {
    max-width: var(--smsh-content-width);
    margin: 0 auto;
}

.smsh-entry-content h2,
.smsh-entry-content h3,
.smsh-entry-content h4 {
    margin-top: var(--smsh-spacing-xl);
    margin-bottom: var(--smsh-spacing-sm);
}

.smsh-entry-content blockquote {
    margin: var(--smsh-spacing-lg) 0;
    padding: var(--smsh-spacing-md) var(--smsh-spacing-lg);
    background: var(--smsh-color-surface);
    border-left: 4px solid var(--smsh-color-primary);
    border-radius: 0 var(--smsh-radius) var(--smsh-radius) 0;
    font-style: italic;
}

.smsh-entry-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: var(--smsh-spacing-md);
    border-radius: var(--smsh-radius);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

.smsh-entry-content code {
    background: var(--smsh-color-surface);
    padding: 0.2rem 0.4rem;
    border-radius: var(--smsh-radius-small);
    font-size: 0.9em;
}

.smsh-entry-content pre code {
    background: transparent;
    padding: 0;
}

.smsh-post-tags {
    margin-top: var(--smsh-spacing-xl);
    padding-top: var(--smsh-spacing-md);
    border-top: 1px solid var(--smsh-color-border);
}

.smsh-post-tags span {
    font-weight: 600;
    margin-right: var(--smsh-spacing-sm);
}

.smsh-post-tags a {
    display: inline-block;
    background: var(--smsh-color-surface);
    padding: 0.25rem 0.75rem;
    border-radius: var(--smsh-radius-small);
    margin: 0.25rem;
    font-size: var(--smsh-font-size-small);
}

.smsh-post-tags a:hover {
    background: var(--smsh-color-primary);
    color: #fff;
    text-decoration: none;
}

/* Author Box */
.smsh-author-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: var(--smsh-spacing-xl);
    padding: var(--smsh-spacing-lg);
    background: var(--smsh-color-bg-alt);
    border-radius: var(--smsh-radius);
}

.smsh-author-box__avatar img { width: 80px; height: 80px; border-radius: 50%; }
.smsh-author-box__info { flex: 1; }
.smsh-author-box__name { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.smsh-author-box__name a { color: var(--smsh-color-text); }
.smsh-author-box__name a:hover { color: var(--smsh-color-primary); }
.smsh-author-box__bio { font-size: 0.9375rem; color: var(--smsh-color-text-light); }

/* Post Navigation */
.smsh-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--smsh-spacing-lg);
    margin-top: var(--smsh-spacing-xl);
    padding-top: var(--smsh-spacing-xl);
    border-top: 1px solid var(--smsh-color-border);
}

.smsh-post-nav-item {
    padding: var(--smsh-spacing-md);
    background: var(--smsh-color-surface);
    border-radius: var(--smsh-radius);
}

.smsh-post-nav-item--next {
    text-align: right;
}

.smsh-post-nav-label {
    font-family: var(--smsh-font-ui);
    font-size: var(--smsh-font-size-small);
    color: var(--smsh-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.smsh-post-nav-title {
    font-family: var(--smsh-font-heading);
    font-weight: 600;
    color: var(--smsh-color-text);
}

.smsh-post-nav-title:hover {
    color: var(--smsh-color-primary);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.smsh-related-posts {
    margin-top: var(--smsh-spacing-xl);
    padding-top: var(--smsh-spacing-xl);
    border-top: 1px solid var(--smsh-color-border);
}

.smsh-related-posts h3 {
    font-family: var(--smsh-font-ui);
    font-size: 1.25rem;
    margin-bottom: var(--smsh-spacing-lg);
    color: var(--smsh-color-text);
}

.smsh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--smsh-spacing-md);
}

.smsh-related-card {
    background: var(--smsh-color-surface);
    border-radius: var(--smsh-radius);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.smsh-related-card:hover {
    transform: translateY(-3px);
}

.smsh-related-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.smsh-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smsh-related-card-content {
    padding: var(--smsh-spacing-sm);
}

.smsh-related-card-title {
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.smsh-related-card-title a {
    color: var(--smsh-color-text);
}

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

.smsh-related-card-date {
    font-size: 12px;
    color: var(--smsh-color-text-muted);
    margin-top: 0.5rem;
    font-family: var(--smsh-font-ui);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.smsh-sidebar .widget {
    background: var(--smsh-color-surface);
    padding: var(--smsh-spacing-md);
    border-radius: var(--smsh-radius);
    margin-bottom: var(--smsh-spacing-lg);
}

.smsh-sidebar .widget-title {
    font-family: var(--smsh-font-ui);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--smsh-spacing-md);
    padding-bottom: var(--smsh-spacing-sm);
    border-bottom: 2px solid var(--smsh-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.smsh-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smsh-sidebar .widget li {
    padding: var(--smsh-spacing-xs) 0;
    border-bottom: 1px solid var(--smsh-color-border);
}

.smsh-sidebar .widget li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.smsh-breadcrumbs {
    padding: var(--smsh-spacing-sm) 0;
    margin-bottom: var(--smsh-spacing-lg);
    font-family: var(--smsh-font-ui);
    font-size: var(--smsh-font-size-small);
    color: var(--smsh-color-text-muted);
}

.smsh-breadcrumbs a {
    color: var(--smsh-color-text-muted);
}

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

.smsh-breadcrumbs-separator {
    margin: 0 0.5rem;
    color: var(--smsh-color-border);
}

.smsh-breadcrumbs-current {
    color: var(--smsh-color-text);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.smsh-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--smsh-spacing-xs);
    margin-top: var(--smsh-spacing-xl);
    font-family: var(--smsh-font-ui);
}

.smsh-pagination a,
.smsh-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--smsh-spacing-sm);
    background: var(--smsh-color-surface);
    border-radius: var(--smsh-radius-small);
    font-weight: 500;
    transition: all 0.2s ease;
}

.smsh-pagination a:hover {
    background: var(--smsh-color-primary);
    color: #fff;
    text-decoration: none;
}

.smsh-pagination .current {
    background: var(--smsh-color-primary);
    color: #fff;
}

/* ==========================================================================
   Archive & Search
   ========================================================================== */

.smsh-archive-header {
    margin-bottom: var(--smsh-spacing-xl);
    padding-bottom: var(--smsh-spacing-lg);
    border-bottom: 1px solid var(--smsh-color-border);
}

.smsh-archive-title {
    font-size: var(--smsh-font-size-h2);
    margin-bottom: var(--smsh-spacing-xs);
}

.smsh-archive-description {
    color: var(--smsh-color-text-light);
    font-size: 1.1rem;
}

.smsh-search-form {
    display: flex;
    gap: var(--smsh-spacing-sm);
    margin-bottom: var(--smsh-spacing-lg);
}

.smsh-search-form input[type="search"] {
    flex: 1;
    padding: var(--smsh-spacing-sm) var(--smsh-spacing-md);
    border: 2px solid var(--smsh-color-border);
    border-radius: var(--smsh-radius);
    font-size: 1rem;
}

.smsh-search-form input[type="search"]:focus {
    border-color: var(--smsh-color-primary);
    outline: none;
}

.smsh-search-form button {
    padding: var(--smsh-spacing-sm) var(--smsh-spacing-lg);
    background: var(--smsh-color-primary);
    color: #fff;
    border: none;
    border-radius: var(--smsh-radius);
    font-family: var(--smsh-font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.smsh-search-form button:hover {
    background: #b8322a;
}

.smsh-no-results {
    text-align: center;
    padding: var(--smsh-spacing-xl);
    background: var(--smsh-color-surface);
    border-radius: var(--smsh-radius);
}

.smsh-no-results h2 {
    margin-bottom: var(--smsh-spacing-md);
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.smsh-error-404 {
    text-align: center;
    padding: var(--smsh-spacing-xl) 0;
    max-width: 600px;
    margin: 0 auto;
}

.smsh-error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--smsh-color-primary);
    line-height: 1;
    margin-bottom: var(--smsh-spacing-md);
    font-family: var(--smsh-font-ui);
}

.smsh-error-title {
    font-size: var(--smsh-font-size-h2);
    margin-bottom: var(--smsh-spacing-md);
}

.smsh-error-message {
    color: var(--smsh-color-text-light);
    margin-bottom: var(--smsh-spacing-lg);
}

.smsh-btn {
    display: inline-block;
    padding: var(--smsh-spacing-sm) var(--smsh-spacing-lg);
    background: var(--smsh-color-primary);
    color: #fff;
    border-radius: var(--smsh-radius);
    font-family: var(--smsh-font-ui);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.smsh-btn:hover {
    background: #b8322a;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.smsh-comments {
    margin-top: var(--smsh-spacing-xl);
    padding-top: var(--smsh-spacing-xl);
    border-top: 1px solid var(--smsh-color-border);
}

.smsh-comments-title {
    font-family: var(--smsh-font-ui);
    font-size: 1.25rem;
    margin-bottom: var(--smsh-spacing-lg);
}

.smsh-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smsh-comment {
    padding: var(--smsh-spacing-md);
    background: var(--smsh-color-surface);
    border-radius: var(--smsh-radius);
    margin-bottom: var(--smsh-spacing-md);
}

.smsh-comment .children {
    list-style: none;
    padding-left: var(--smsh-spacing-lg);
    margin-top: var(--smsh-spacing-md);
}

.smsh-comment-header {
    display: flex;
    align-items: center;
    gap: var(--smsh-spacing-sm);
    margin-bottom: var(--smsh-spacing-sm);
}

.smsh-comment-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.smsh-comment-author {
    font-weight: 600;
    color: var(--smsh-color-text);
}

.smsh-comment-date {
    font-size: var(--smsh-font-size-small);
    color: var(--smsh-color-text-muted);
}

.smsh-comment-content {
    margin-bottom: var(--smsh-spacing-sm);
}

.smsh-comment-reply a {
    font-family: var(--smsh-font-ui);
    font-size: var(--smsh-font-size-small);
    font-weight: 600;
    color: var(--smsh-color-primary);
}

/* Comment Form */
.smsh-comment-form {
    margin-top: var(--smsh-spacing-xl);
}

.smsh-comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.smsh-comment-form input[type="text"],
.smsh-comment-form input[type="email"],
.smsh-comment-form input[type="url"],
.smsh-comment-form textarea {
    width: 100%;
    padding: var(--smsh-spacing-sm);
    border: 2px solid var(--smsh-color-border);
    border-radius: var(--smsh-radius);
    font-size: 1rem;
    margin-bottom: var(--smsh-spacing-md);
}

.smsh-comment-form input:focus,
.smsh-comment-form textarea:focus {
    border-color: var(--smsh-color-primary);
    outline: none;
}

.smsh-comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.smsh-comment-form button {
    padding: var(--smsh-spacing-sm) var(--smsh-spacing-lg);
    background: var(--smsh-color-primary);
    color: #fff;
    border: none;
    border-radius: var(--smsh-radius);
    font-family: var(--smsh-font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.smsh-comment-form button:hover {
    background: #b8322a;
}

/* ==========================================================================
   Scroll to Top
   ========================================================================== */

.smsh-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--smsh-color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--smsh-shadow);
}

.smsh-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.smsh-scroll-top:hover {
    background: #b8322a;
    transform: translateY(-3px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .smsh-content-area {
        grid-template-columns: 1fr;
    }

    .smsh-content-area.smsh-sidebar-left {
        grid-template-columns: 1fr;
    }

    .smsh-content-area.smsh-sidebar-left .smsh-sidebar {
        order: 0;
    }

    .smsh-posts-grid {
        grid-template-columns: 1fr;
    }

    .smsh-card--featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    :root {
        --smsh-font-size-h1: 2rem;
        --smsh-font-size-h2: 1.5rem;
        --smsh-spacing-xl: 2rem;
    }

    .smsh-header-inner {
        flex-wrap: wrap;
    }

    .smsh-nav {
        order: 3;
        width: 100%;
        display: none;
    }

    .smsh-nav.is-open {
        display: block;
    }

    .smsh-nav-list {
        flex-direction: column;
        padding-top: var(--smsh-spacing-sm);
    }

    .smsh-menu-toggle {
        display: block;
    }

    .smsh-header-search {
        display: none;
    }

    .smsh-single-title {
        font-size: 2rem;
    }

    .smsh-single-meta {
        flex-direction: column;
        gap: var(--smsh-spacing-xs);
    }

    .smsh-post-nav {
        grid-template-columns: 1fr;
    }

    .smsh-related-grid {
        grid-template-columns: 1fr;
    }

    .smsh-footer-widgets {
        grid-template-columns: 1fr;
    }

    .smsh-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .smsh-sidebar {
        display: none !important;
    }

    .smsh-footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .smsh-container {
        padding: 0 var(--smsh-spacing-sm);
    }

    .smsh-error-code {
        font-size: 5rem;
    }
}

/* Interlinking Section */
.smas-interlinking {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.smas-interlinking-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.smas-interlinking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.smas-interlinking-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}
.smas-interlinking-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--smas-color-primary, #333);
}
.smas-interlinking-list a {
    color: var(--smas-color-primary, #333);
    text-decoration: none;
}
.smas-interlinking-list a:hover {
    text-decoration: underline;
}

/* === Grid Layouts === */
.smsh-posts-grid.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.smsh-posts-grid.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.smsh-posts-grid.grid-list {
    display: block;
}
.smsh-posts-grid.grid-list .smsh-card {
    margin-bottom: 30px;
}
@media (max-width: 1024px) {
    .smsh-posts-grid.grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .smsh-posts-grid.grid-3col,
    .smsh-posts-grid.grid-2col {
        grid-template-columns: 1fr;
    }
}
