/*
Theme Name: EGFast
Theme URI: https://egfast.com
Author: EGFast Team
Author URI: https://egfast.com
Description: An extremely lightweight, fast-loading WordPress theme with built-in AdSense integration and fully responsive design. Optimized for performance, SEO, and Core Web Vitals.
Version: 1.0.0
Tested up to: 6.4
Requires at least: 5.9
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: egfast
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, responsive-layout, adsense-ready

EGFast WordPress Theme, Copyright 2024 EGFast Team
EGFast is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   CSS Custom Properties - shadcn/ui Design System
   ========================================================================== */
:root {
  /* Background Colors - Light Mode */
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f5f5f5;
  --accent-foreground: #171717;

  /* Primary Colors */
  --primary: #171717;
  --primary-foreground: #fafafa;

  /* Secondary Colors */
  --secondary: #f5f5f5;
  --secondary-foreground: #171717;

  /* Destructive */
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;

  /* Border & Input */
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #0a0a0a;

  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
  --sidebar-width: 320px;
  --gap: 1.5rem;

  /* Border Radius */
  --radius: 0.625rem;
  --radius-sm: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 100ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #0a0a0a;
  --card-foreground: #fafafa;
  --popover: #0a0a0a;
  --popover-foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --accent: #262626;
  --accent-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #171717;
  --secondary: #262626;
  --secondary-foreground: #fafafa;
  --border: #262626;
  --input: #262626;
  --ring: #d4d4d4;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--foreground);
  background: var(--background);
  font-feature-settings: "calt", "rlig";
  transition: background-color var(--transition), color var(--transition);
}

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

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

a:hover {
  color: var(--muted-foreground);
}

a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.025em;
  margin: 0;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  padding: 2.5rem 0;
}

.content-area {
  flex: 1;
  min-width: 0;
  max-width: var(--content-width);
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

/* ==========================================================================
   Header - shadcn/ui style
   ========================================================================== */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-branding a {
  font-size: inherit;
  font-weight: inherit;
  color: var(--foreground);
  text-decoration: none;
  transition: opacity var(--transition);
}

.site-branding a:hover {
  opacity: 0.7;
}

/* Header Right - Nav + Dark Toggle */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.main-navigation a:hover {
  color: var(--foreground);
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--foreground);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  transition: all var(--transition);
}

.dark-mode-toggle:hover {
  background: var(--accent);
}

.dark-mode-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.dark-mode-toggle .sun-icon {
  display: none;
}

.dark-mode-toggle .moon-icon {
  display: block;
}

.dark .dark-mode-toggle .sun-icon {
  display: block;
}

.dark .dark-mode-toggle .moon-icon {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--foreground);
  transition: all var(--transition);
}

.menu-toggle:hover {
  background: var(--accent);
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==========================================================================
   Ad Slots - Responsive AdSense
   ========================================================================== */
.ad-slot {
  margin: 1.5rem auto;
  text-align: center;
  overflow: hidden;
  clear: both;
  max-width: 100%;
}

.ad-slot ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
}

/* Before/After Content Ads */
.ad-slot-before_content,
.ad-slot-after_content {
  margin: 1.5rem 0;
}

/* In-Content Ads */
.ad-slot-in-content {
  margin: 2rem 0;
  padding: 0;
}

/* In-Feed Ads (Between posts) */
.ad-slot-in_feed {
  margin: 1.5rem 0;
  padding: 1rem 0;
}

/* Sidebar Ad */
.ad-slot-sidebar {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Posts & Content - shadcn/ui Card Style
   ========================================================================== */
.post {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  padding: 0;
  overflow: hidden;
  transition: border-color var(--transition);
}

/* Remove hover effect on single post pages */
.single .post,
.page .post {
  border: none;
  box-shadow: none;
  background: transparent;
}

.post-thumbnail {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.post-thumbnail a {
  display: block;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.entry-header,
.entry-summary,
.entry-footer {
  padding: 0 1.5rem;
}

.entry-header {
  padding-top: 1.25rem;
}

.entry-title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.entry-title a {
  color: var(--card-foreground);
  text-decoration: none;
  transition: color var(--transition);
}

.entry-title a:hover {
  color: var(--muted-foreground);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.entry-meta a {
  color: var(--muted-foreground);
  transition: color var(--transition);
}

.entry-meta a:hover {
  color: var(--foreground);
}

.entry-meta .byline::before,
.entry-meta .cat-links::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--muted-foreground);
}

.entry-summary {
  padding-bottom: 0.75rem;
}

.entry-summary p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.entry-content {
  overflow-wrap: break-word;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--foreground);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--foreground);
}

.entry-content li {
  margin-bottom: 0.375rem;
}

.entry-content blockquote {
  border-left: 2px solid var(--border);
  padding: 0 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

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

.entry-content pre {
  background: var(--foreground);
  color: var(--background);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.25rem 0;
  font-size: 0.8125rem;
}

.entry-content code {
  background: var(--muted);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
    monospace;
  color: var(--foreground);
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.entry-footer {
  margin-top: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: var(--muted);
}

/* ==========================================================================
   Read More Button - shadcn/ui style
   ========================================================================== */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: all var(--transition);
}

.read-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Pagination - shadcn/ui style (archive pages only)
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--foreground);
  background: var(--background);
  transition: all var(--transition);
}

.pagination .current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.pagination a:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  text-decoration: none;
}

.pagination .dots {
  border: none;
  background: none;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Sidebar & Widgets - Minimal Clean Style
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: transparent;
  padding: 0;
  border: none;
}

.widget-title {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin: 0 0 0.75rem 0;
  padding: 0;
  color: var(--muted-foreground);
  border: none;
}

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

.widget li {
  padding: 0;
  border: none;
}

.widget li + li {
  border-top: 1px solid var(--border);
}

.widget li a {
  display: block;
  padding: 0.625rem 0;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  transition: color var(--transition);
}

.widget li a:hover {
  color: var(--muted-foreground);
}

/* ==========================================================================
   Comments - shadcn/ui style
   ========================================================================== */
.comments-area {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.comments-title {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

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

.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.comment:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-author {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--foreground);
}

.comment-author img {
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.comment-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.comment-body p {
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.comment-reply-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.comment-reply-link:hover {
  text-decoration: underline;
}

.comment-respond {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.comment-reply-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  background: var(--background);
  transition: all var(--transition);
}

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

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

/* shadcn/ui Button Styles */
.comment-form .submit,
.btn,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: opacity var(--transition);
}

.comment-form .submit:hover,
.btn:hover,
button[type="submit"]:hover {
  opacity: 0.9;
}

.comment-form .submit:focus-visible,
.btn:focus-visible,
button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

/* ==========================================================================
   Footer - Professional minimal style
   ========================================================================== */
.site-footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 3rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-navigation {
  order: 2;
}

.footer-navigation .footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-navigation .footer-menu li {
  display: flex;
  align-items: center;
  margin: 0 0.75rem;
}

.footer-navigation .footer-menu a {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-content {
  order: 1;
  text-align: center;
}

.footer-content p {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  margin: 0;
}

@media (min-width: 768px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-content {
    order: 1;
    text-align: left;
  }

  .footer-navigation {
    order: 2;
  }
}

/* ==========================================================================
   404 & Search - shadcn/ui style
   ========================================================================== */
.error-404,
.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.error-404 .page-title,
.no-results .page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.error-404 p,
.no-results p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 1rem auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all var(--transition);
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.search-form button {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity var(--transition);
}

.search-form button:hover {
  opacity: 0.9;
}

/* Page Header */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.archive-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ==========================================================================
   Single Post - shadcn/ui style
   ========================================================================== */
.single .post {
  padding: 0;
}

.single .post-thumbnail {
  margin: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.single .entry-header {
  padding: 1.5rem 1.5rem 0;
}

.single .entry-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.single .entry-content {
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.9375rem;
}

.single .entry-footer {
  padding: 1rem 1.5rem;
}

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* Post Navigation - Professional style */
.post-navigation {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.post-navigation .nav-previous {
  align-items: flex-start;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  color: var(--foreground);
  text-decoration: none;
  transition: all var(--transition);
}

.post-navigation a:hover {
  opacity: 0.7;
}

.post-navigation .nav-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.post-navigation .nav-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }

  .content-area {
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --gap: 1.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    height: 3.5rem;
    padding: 0 1rem;
  }

  .header-right {
    gap: 0.25rem;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    z-index: 49;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 0.5rem 0;
  }

  .main-navigation.active ul {
    display: flex;
  }

  .main-navigation li {
    border-bottom: 1px solid var(--border);
  }

  .main-navigation li:last-child {
    border-bottom: none;
  }

  .main-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0;
  }

  .main-navigation a:hover {
    background: var(--accent);
  }

  .menu-toggle {
    display: flex;
  }

  .dark-mode-toggle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .entry-header,
  .entry-summary,
  .entry-footer,
  .entry-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .entry-title {
    font-size: 1.125rem;
  }

  .single .entry-title {
    font-size: 1.375rem;
  }

  .single .entry-header,
  .single .entry-content,
  .single .entry-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .ad-slot-content {
    padding: 0.75rem;
    margin: 1rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .site-content {
    padding: 1.25rem 0;
  }

  .post {
    border-radius: var(--radius-sm);
  }

  .widget {
    padding: 1rem;
  }

  .comments-area {
    padding: 1rem;
  }

  .error-404,
  .no-results {
    padding: 2rem 1rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form button {
    width: 100%;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.skip-link:focus {
  clip: auto;
  height: auto;
  width: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .ad-slot,
  .main-navigation,
  .menu-toggle,
  .sidebar,
  .site-footer,
  .post-navigation,
  .comments-area {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .site-content {
    display: block;
  }

  .post {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a {
    color: black;
    text-decoration: underline;
  }
}
