/*
Theme Name: Mobile Viewer
Theme URI: https://mobileviewer.io
Author: MobileViewer.io
Author URI: https://mobileviewer.io
Description: A modern blog theme for MobileViewer.io with responsive design, purple/indigo color scheme, and clean typography.
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mobile-viewer
Tags: blog, responsive-layout, custom-header, custom-menu, featured-images, translation-ready

Mobile Viewer WordPress Theme - Matching the MobileViewer.io blog design.
*/

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
  /* Brand Colors */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);

  /* Accent */
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.3);

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Neutral */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ============================================
   Layout Containers
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.container-narrow {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-narrow {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-narrow {
    padding: 0 2rem;
  }
}

/* ============================================
   Header / Navbar
   ============================================ */
.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo svg {
  width: 36px;
  height: 36px;
}

.site-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(to right, #111827, #374151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-logo-text .dot-io {
  -webkit-text-fill-color: #9333ea;
}

.site-logo .custom-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-custom-logo {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  transition: color var(--transition-base);
}

.desktop-nav a:hover {
  color: #111827;
}

.desktop-nav a.active,
.desktop-nav .current-menu-item > a,
.desktop-nav .current_page_item > a {
  color: #9333ea;
}

/* CTA Button */
.header-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
  }
}

.btn-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background-color: #9333ea;
  border-radius: 0.5rem;
  transition: background-color var(--transition-base);
}

.btn-cta:hover {
  background-color: #7e22ce;
  color: white;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: block;
  padding: 0.5rem;
  color: #4b5563;
}

.mobile-menu-toggle:hover {
  color: #111827;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #f3f4f6;
}

.mobile-menu.is-open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  transition: color var(--transition-base);
}

.mobile-menu a:hover {
  color: #111827;
}

.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a {
  color: #9333ea;
}

.mobile-menu .btn-cta {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================
   Blog Hero Section
   ============================================ */
.blog-hero {
  background: linear-gradient(to bottom right, #581c87, #312e81, #0f172a);
  padding: 5rem 0;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .blog-hero h1 {
    font-size: 3rem;
  }
}

.blog-hero p {
  font-size: 1.25rem;
  color: #d1d5db;
  max-width: 42rem;
  margin: 0 auto;
}

/* Single Post Hero */
.single-hero {
  background: linear-gradient(to bottom right, #581c87, #312e81, #0f172a);
  padding: 4rem 0;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #c4b5fd;
  margin-bottom: 1.5rem;
  transition: color var(--transition-base);
  font-size: 0.9375rem;
}

.back-to-blog:hover {
  color: white;
}

.back-to-blog svg {
  width: 20px;
  height: 20px;
}

.single-hero .category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
  font-size: 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.single-hero h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .single-hero h1 {
    font-size: 2.25rem;
  }
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(to bottom right, #c084fc, #f472b6);
  border-radius: 9999px;
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.author-name {
  font-weight: 500;
  color: white;
}

.author-meta {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* ============================================
   Category Filter
   ============================================ */
.category-filter {
  padding: 2rem 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.category-filter .filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-filter .filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #f3f4f6;
  color: #4b5563;
  transition: all var(--transition-base);
}

.category-filter .filter-btn:hover {
  background: #e5e7eb;
}

.category-filter .filter-btn.active,
.category-filter .filter-btn[aria-current="page"] {
  background: #9333ea;
  color: white;
}

/* ============================================
   Blog Cards Grid
   ============================================ */
.blog-grid-section {
  padding: 4rem 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f3f4f6;
  transition: box-shadow var(--transition-slow);
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
}

.blog-card-thumbnail {
  height: 192px;
  background: linear-gradient(to bottom right, #818cf8, #a855f7);
  overflow: hidden;
  position: relative;
}

.blog-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-thumbnail.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient fallbacks when no featured image */
.blog-card-thumbnail.gradient-1 { background: linear-gradient(to bottom right, #60a5fa, #a855f7); }
.blog-card-thumbnail.gradient-2 { background: linear-gradient(to bottom right, #34d399, #06b6d4); }
.blog-card-thumbnail.gradient-3 { background: linear-gradient(to bottom right, #fb923c, #ec4899); }
.blog-card-thumbnail.gradient-4 { background: linear-gradient(to bottom right, #c084fc, #6366f1); }
.blog-card-thumbnail.gradient-5 { background: linear-gradient(to bottom right, #f87171, #fb923c); }
.blog-card-thumbnail.gradient-6 { background: linear-gradient(to bottom right, #2dd4bf, #22c55e); }

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.blog-card-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.blog-card-readtime {
  font-size: 0.875rem;
  color: #6b7280;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-title a {
  color: #111827;
}

.blog-card-title a:hover {
  color: #9333ea;
}

.blog-card-excerpt {
  color: #4b5563;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.blog-card-footer .card-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(to bottom right, #c084fc, #f472b6);
  border-radius: 9999px;
  flex-shrink: 0;
  overflow: hidden;
}

.blog-card-footer .card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

.blog-card-footer .card-author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.blog-card-footer .card-author-date {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ============================================
   Load More / Pagination
   ============================================ */
.blog-pagination {
  text-align: center;
  margin-top: 3rem;
}

.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all var(--transition-base);
  font-size: 0.875rem;
}

.blog-pagination a:hover {
  background: #f9fafb;
}

.blog-pagination .current {
  background: #9333ea;
  color: white;
  border-color: #9333ea;
}

.blog-pagination .prev,
.blog-pagination .next {
  padding: 0.5rem 1.5rem;
}

/* ============================================
   Single Post Content
   ============================================ */
.single-content-section {
  padding: 3rem 0;
}

.single-article {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .single-article {
    padding: 3rem;
  }
}

/* Featured Image in Single Post */
.single-featured-image {
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  max-height: 400px;
}

@media (min-width: 1024px) {
  .single-featured-image {
    margin: -3rem -3rem 2rem -3rem;
  }
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 400px;
}

/* Prose Styles for Blog Content */
.entry-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.entry-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.entry-content p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.entry-content ul {
  list-style-type: disc;
}

.entry-content ol {
  list-style-type: decimal;
}

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.entry-content a {
  color: #9333ea;
  text-decoration: underline;
}

.entry-content a:hover {
  color: #7e22ce;
}

.entry-content blockquote {
  border-left: 4px solid #9333ea;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #faf5ff;
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

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

.entry-content code {
  background: var(--bg-tertiary);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}

.entry-content pre {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

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

.entry-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

.entry-content img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

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

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.entry-content th {
  background: var(--bg-tertiary);
  font-weight: 600;
}

.entry-content figure {
  margin: 1.5rem 0;
}

.entry-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

/* WordPress specific content classes */
.entry-content .wp-block-image {
  margin: 1.5rem 0;
}

.entry-content .wp-block-image img {
  border-radius: 0.75rem;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.entry-content .alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content .alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content .wp-caption {
  max-width: 100%;
}

.entry-content .wp-caption-text {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 0.5rem;
}

/* Gallery */
.entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.entry-content .wp-block-gallery img {
  border-radius: 0.5rem;
  margin: 0;
}

/* ============================================
   Post Tags
   ============================================ */
.post-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: background-color var(--transition-base);
}

.post-tag:hover {
  background: #e9d5ff;
  color: #6b21a8;
}

/* ============================================
   Share Section
   ============================================ */
.share-section {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-buttons span {
  color: #4b5563;
  font-size: 0.9375rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base);
}

.share-btn:hover {
  background: #e5e7eb;
}

.share-btn svg {
  width: 20px;
  height: 20px;
  color: #374151;
}

.more-articles-link {
  color: #9333ea;
  font-size: 0.9375rem;
}

.more-articles-link:hover {
  text-decoration: underline;
  color: #9333ea;
}

/* ============================================
   Post Navigation (Prev/Next)
   ============================================ */
.post-navigation {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .post-navigation {
    grid-template-columns: 1fr 1fr;
  }
}

.post-navigation a {
  display: block;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  transition: all var(--transition-base);
}

.post-navigation a:hover {
  box-shadow: var(--shadow-md);
  border-color: #c4b5fd;
}

.post-navigation .nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
  font-weight: 600;
  color: var(--text-primary);
}

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

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter-section {
  padding: 5rem 0;
  background: #581c87;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.newsletter-section p {
  color: #e9d5ff;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.4);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: white;
  color: #581c87;
  font-weight: 600;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: background-color var(--transition-base);
}

.newsletter-form button:hover {
  background: #f3f4f6;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-main {
  padding: 2.5rem 0 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer Brand */
.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(to bottom right, #8b5cf6, #7c3aed, #4f46e5);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.footer-logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
}

.footer-logo-text .dot-io {
  color: #c084fc;
}

.footer-description {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  max-width: 20rem;
  line-height: 1.5;
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: #1f2937;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base);
}

.social-link:hover {
  background: #374151;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Footer Link Sections */
.footer-links h3 {
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #d1d5db;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.footer-links .badge-soon {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: #6b7280;
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: #d1d5db;
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
  padding: 5rem 0;
  text-align: center;
}

.error-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.error-404 h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.error-404 p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.error-404 .btn-cta {
  display: inline-block;
}

/* ============================================
   Search Results
   ============================================ */
.search-hero {
  background: linear-gradient(to bottom right, #581c87, #312e81, #0f172a);
  padding: 4rem 0;
  text-align: center;
}

.search-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.search-hero .search-query {
  color: #c4b5fd;
  font-style: italic;
}

.no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-secondary);
}

.no-results h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* ============================================
   Comments
   ============================================ */
.comments-area {
  margin-top: 3rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .comments-area {
    padding: 3rem;
  }
}

.comments-area h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

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

.comment-list .comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
}

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

.comment-metadata {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.comment-content p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.comment-reply-link {
  font-size: 0.875rem;
  color: #9333ea;
  font-weight: 500;
}

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

/* Comment Form */
.comment-respond {
  margin-top: 2rem;
}

.comment-respond h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

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

.comment-form .submit {
  padding: 0.75rem 2rem;
  background: #9333ea;
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-base);
}

.comment-form .submit:hover {
  background: #7e22ce;
}

/* ============================================
   Sidebar Widgets (optional)
   ============================================ */
.widget {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.widget h2,
.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f3f4f6;
}

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

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f9fafb;
}

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

.widget a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.widget a:hover {
  color: #9333ea;
}

/* ============================================
   WordPress Core Alignment
   ============================================ */
.wp-block-separator {
  border: none;
  border-top: 2px solid var(--border-light);
  margin: 2rem 0;
}

.wp-block-quote {
  border-left: 4px solid #9333ea;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #faf5ff;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* ============================================
   Screen Reader Text (Accessibility)
   ============================================ */
.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: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============================================
   WordPress Admin Bar Fix
   ============================================ */
body.admin-bar .site-header {
  top: 32px;
}

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