/*
Theme Name: Open Comedy
Theme URI: https://opencomedy.com
Author: Open Comedy Team
Author URI: https://opencomedy.com
Description: A sleek, modern dark theme for the Open Comedy blog that matches the main application design. Features glass morphism, gradient effects, and blue accent colors.
Version: 1.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: opencomedy
Tags: dark, modern, entertainment, blog, custom-logo, custom-menu, featured-images, threaded-comments

Open Comedy WordPress Theme
Designed to match the Open Comedy platform's dark theme with blue accents.
*/

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

:root {
  --brand-dark: #0a0f1a;
  --brand-blue: #6194BD;
  --brand-light-blue: #87CEEB;
  --brand-accent: #4A90E2;
  --brand-secondary: #2C5282;
  
  --dark-600: #334155;
  --dark-700: #1e293b;
  --dark-800: #0f172a;
  --dark-900: #0a0f1a;
  --dark-950: #020617;
  
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-premium: 0 4px 20px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(97, 148, 189, 0.5);
  
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

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

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--brand-dark);
  background-image: 
    radial-gradient(ellipse at 20% 80%, rgba(97, 148, 189, 0.15) 0px, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 144, 226, 0.1) 0px, transparent 50%),
    radial-gradient(ellipse at 40% 40%, rgba(44, 82, 130, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =================================
   TYPOGRAPHY
   ================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--sky-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-light-blue);
}

.text-gradient {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-light-blue), var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =================================
   LAYOUT
   ================================= */

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-area {
  flex: 1;
  padding: 3rem 0;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.main-content.full-width {
  grid-template-columns: 1fr;
}

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

/* =================================
   HEADER - Matches main app exactly
   ================================= */

.site-header,
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to right, rgb(15, 23, 42), rgba(15, 23, 42, 0.95), rgb(15, 23, 42));
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-inner,
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  height: 50px;
  width: 50px;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
}

.header-logo:hover img {
  transform: scale(1.05);
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 2rem;
}

.header-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #d1d5db;
  font-weight: 500;
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header-nav .nav-link:hover {
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.5);
  border-bottom-color: rgba(56, 189, 248, 0.5);
}

.header-nav .nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.header-nav .nav-link:hover svg {
  color: #38bdf8;
}

/* Header Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.header-icon-btn:hover {
  color: #38bdf8;
  background: rgba(30, 41, 59, 0.5);
}

/* User Skeleton Loading */
.user-skeleton {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
}

.skeleton-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
  border-radius: 50%;
  animation: shimmer 1.5s infinite;
}

/* Mobile Header */
@media (max-width: 768px) {
  .header-nav .nav-link span {
    display: none;
  }
  
  .header-nav .nav-link {
    padding: 0.5rem;
  }
  
  .header-nav {
    gap: 0;
  }
}

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

.site-logo {
  height: 50px;
  width: 50px;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
}

.site-branding a:hover .site-logo {
  transform: scale(1.05);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-light-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-title a {
  -webkit-text-fill-color: inherit;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Navigation - matches main app */
.main-navigation {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  margin-left: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: #d1d5db;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-transform: capitalize;
}

.nav-menu a:hover {
  color: #38bdf8;
  background: rgba(30, 41, 59, 0.5);
}

.nav-menu a svg {
  width: 1rem;
  height: 1rem;
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--dark-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.nav-menu li {
  position: relative;
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--dark-800);
    flex-direction: column;
    padding: 2rem;
    transition: right var(--transition-normal);
    z-index: 200;
  }
  
  .main-navigation.is-open {
    right: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
}

/* =================================
   CARDS
   ================================= */

.card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(10, 15, 26, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

.card-title a:hover {
  color: var(--sky-400);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Post Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--sky-500), var(--sky-600));
  color: var(--text-primary);
  box-shadow: var(--shadow-premium);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--sky-400), var(--sky-500));
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* =================================
   FORMS
   ================================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-700);
  border: 1px solid var(--dark-600);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
}

/* =================================
   SINGLE POST - ENHANCED DESIGN
   ================================= */

/* Remove content-area padding on single posts */
.single .content-area {
  padding-top: 0;
}

/* Post Hero Section */
.single-post-hero {
  position: relative;
  padding: 10rem 0 6rem;
  margin-top: -3rem;
  background: transparent;
  overflow: hidden;
}

.single-post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://opencomedy.com/lights.jpg') center top / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.single-post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 26, 0.3) 0%, rgba(10, 15, 26, 0.6) 50%, rgba(10, 15, 26, 1) 100%);
  z-index: 1;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.post-category-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.post-hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.post-author-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.post-author-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(249, 115, 22, 0.5);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.author-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 1rem;
}

.post-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.post-details time,
.post-details .reading-time {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.post-details svg {
  opacity: 0.7;
}

/* Featured Image */
.single-post-featured-image {
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.featured-image-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Layout */
.single-post-layout {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.single-post-article {
  min-width: 0;
}

.post-content-wrapper {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.25rem;
  padding: 2rem;
}

/* Legacy styles for backwards compatibility */
.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.post-meta a:hover {
  color: var(--sky-400);
}

.post-thumbnail {
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

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

.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 2rem;
}

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

.post-content blockquote {
  border-left: 4px solid var(--brand-blue);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.post-content code {
  background: var(--dark-700);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: var(--dark-800);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Tags Section */
.post-tags-section {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tags-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

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

.post-tags a {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fb923c;
}

/* Share Section */
.post-share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.share-label {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-twitter:hover {
  background: rgba(29, 161, 242, 0.15);
  border-color: rgba(29, 161, 242, 0.4);
  color: #1da1f2;
}

.share-facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.4);
  color: #1877f2;
}

.share-linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.4);
  color: #0a66c2;
}

.share-copy:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: #f97316;
}

.share-copy.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

/* Author Bio Card */
.author-bio-card {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(251, 146, 60, 0.04) 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 1rem;
}

.author-bio-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(249, 115, 22, 0.4);
}

.author-bio-content {
  flex: 1;
}

.author-bio-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.author-bio-text {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.author-posts-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #f97316;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-posts-link:hover {
  color: #fb923c;
  gap: 0.5rem;
}

/* Single Post Sidebar */
.single-post-sidebar .widget {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Post Navigation */
.single-post-navigation {
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(10, 15, 26, 0.8) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.single-post-navigation .nav-previous,
.single-post-navigation .nav-next {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.single-post-navigation .nav-previous:hover,
.single-post-navigation .nav-next:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(249, 115, 22, 0.3);
}

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

.single-post-navigation a {
  text-decoration: none;
  display: block;
}

.single-post-navigation .nav-subtitle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-post-navigation .nav-next .nav-subtitle {
  justify-content: flex-end;
}

.single-post-navigation .nav-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  transition: color 0.3s ease;
}

.single-post-navigation a:hover .nav-title {
  color: #f97316;
}

/* Single Post Comments */
.single-post-comments {
  padding: 2rem 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .single-post-hero {
    padding: 2.5rem 0 2rem;
  }
  
  .post-hero-title {
    font-size: 1.75rem;
  }
  
  .post-author-card {
    flex-wrap: wrap;
  }
  
  .post-content-wrapper {
    padding: 1.5rem;
  }
  
  .author-bio-card {
    flex-direction: column;
    text-align: center;
  }
  
  .author-bio-avatar {
    display: flex;
    justify-content: center;
  }
  
  .post-share-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .single-post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
  
  .single-post-navigation .nav-next {
    text-align: left;
  }
  
  .single-post-navigation .nav-next .nav-subtitle {
    justify-content: flex-start;
  }
}

/* =================================
   SIDEBAR & WIDGETS
   ================================= */

.sidebar .widget {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(10, 15, 26, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dark-700);
}

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

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--dark-700);
}

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

.widget a {
  color: var(--text-secondary);
}

.widget a:hover {
  color: var(--sky-400);
}

/* =================================
   COMMENTS
   ================================= */

.comments-area {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--dark-700);
}

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

.comment {
  padding: 1.5rem;
  background: var(--dark-800);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.comment .children {
  margin-top: 1rem;
  margin-left: 2rem;
  list-style: none;
  padding: 0;
}

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

.comment-author img {
  border-radius: 50%;
}

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

.comment-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.comment-content {
  color: var(--text-secondary);
}

.comment-respond {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-reply-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-reply-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(to bottom, #f97316, #fb923c);
  border-radius: 2px;
}

.comment-form {
  display: grid;
  gap: 1.25rem;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  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.875rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #f1f5f9;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
  background: rgba(15, 23, 42, 0.8);
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form input[type="url"]::placeholder,
.comment-form textarea::placeholder {
  color: #64748b;
}

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

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  accent-color: #f97316;
  cursor: pointer;
}

.comment-form-cookies-consent label {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.form-submit input[type="submit"]:active {
  transform: translateY(0);
}

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

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--dark-700);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--brand-blue);
  color: var(--text-primary);
}

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

.site-footer {
  background: var(--dark-950);
  border-top: 1px solid rgba(44, 82, 130, 0.3);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

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

@media (max-width: 640px) {
  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

.footer-widget-title {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-700);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--sky-400);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--dark-700);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--brand-blue);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* =================================
   HERO
   ================================= */

.hero {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.9) 0%, 
    rgba(30, 41, 59, 0.8) 50%, 
    rgba(51, 65, 85, 0.7) 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(97, 148, 189, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--text-primary), var(--brand-light-blue), var(--text-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

/* =================================
   ENHANCED HERO (SEO Optimized)
   ================================= */

.hero.hero-enhanced {
  position: relative;
  padding: 5rem 0 4rem;
  border-radius: 0 0 1.5rem 1.5rem;
  overflow: hidden;
  border-bottom: none;
}

.hero.hero-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://opencomedy.com/lights.jpg') center center / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.hero.hero-enhanced::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.7), rgba(0,0,0,0.6), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero.hero-enhanced .hero-content {
  position: relative;
  z-index: 2;
}

.hero-enhanced .hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 1rem;
}

.hero-tagline {
  font-size: 1.35rem;
  color: var(--brand-light-blue);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-description p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

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

/* CTA Buttons */
.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-text {
  background: transparent;
  color: var(--sky-400);
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-text:hover {
  color: var(--brand-light-blue);
  transform: translateX(4px);
}

/* Trust Signals */
.hero-trust-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--sky-400);
  opacity: 0.8;
}

/* Blog Section Header */
.blog-section-header {
  text-align: center;
  padding: 3rem 0 2rem;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Enhanced Hero Responsive */
@media (max-width: 768px) {
  .hero.hero-enhanced {
    padding: 3rem 0 2.5rem;
    border-radius: 0 0 1rem 1rem;
  }
  
  .hero.hero-enhanced .hero-title {
    font-size: 1.75rem;
    padding: 0 1rem;
  }
  
  .hero-tagline {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .hero-description {
    padding: 0 1rem;
  }
  
  .hero-description p {
    font-size: 1rem;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    padding: 0 1.5rem;
  }
  
  .hero-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-trust-signals {
    gap: 1rem;
    padding: 1.5rem 1rem 0;
  }
  
  .trust-item {
    font-size: 0.85rem;
  }
  
  .blog-section-header {
    padding: 2rem 1rem 1.5rem;
  }
  
  .section-title {
    font-size: 1.35rem;
  }
}

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

.error-404 {
  text-align: center;
  padding: 6rem 0;
}

.error-404 h1 {
  font-size: 8rem;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-light-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* =================================
   WORDPRESS CLASSES
   ================================= */

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

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

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-item img {
  border-radius: var(--radius-md);
}

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

/* =================================
   SHARED HEADER (Session Sync)
   ================================= */

.header-logo-link {
  display: flex;
  align-items: center;
}

.header-logo-link:hover .site-logo {
  transform: scale(1.05);
}

.site-logo {
  transition: transform var(--transition-fast);
  border-radius: var(--radius-md);
}

/* User area */
.nav-user-area {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.nav-user-loading .avatar-skeleton {
  width: 32px;
  height: 32px;
  background: linear-gradient(90deg, var(--dark-700) 25%, var(--dark-600) 50%, var(--dark-700) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 50%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.nav-auth-buttons {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.nav-auth-buttons[style*="display: none"],
.nav-auth-buttons[style*="display:none"] {
  display: none !important;
}

/* User menu - matches main app */
.nav-user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: none;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  max-height: 48px;
}

.user-menu-toggle:hover {
  background: rgba(30, 41, 59, 0.5);
  color: #38bdf8;
}

.user-menu-toggle img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3);
}

.user-name {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

@media (min-width: 1024px) {
  .user-name {
    display: block;
  }
}

.chevron-icon {
  transition: transform 0.2s ease;
  display: none;
}

@media (min-width: 1024px) {
  .chevron-icon {
    display: block;
  }
}

/* User dropdown - matches main app */
.user-dropdown {
  display: none !important;
  position: absolute;
  top: 100%;
  right: 0;
  width: 16rem;
  background: rgb(15, 23, 42);
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  border-right: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0 0 0.75rem 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  overflow: hidden;
  padding: 0.5rem;
  z-index: 1000;
}

.user-dropdown.is-open {
  display: block !important;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sky-400);
}

.dropdown-item svg {
  opacity: 0.6;
}

.dropdown-item:hover svg {
  opacity: 1;
}

.dropdown-divider {
  height: 1px;
  background: var(--dark-700);
  margin: 0.5rem 0;
}

.dropdown-item-danger {
  color: #f87171;
}

.dropdown-item-danger:hover {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

/* Mobile menu - hidden on desktop */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-premium);
  z-index: 99;
}

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

.mobile-menu-content {
  padding: 1rem;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-user-avatar-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-500), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.mobile-user-details {
  flex: 1;
  min-width: 0;
}

.mobile-user-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.mobile-user-profile-link {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.mobile-nav-section {
  margin-bottom: 1.5rem;
}

.mobile-nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--sky-400);
}

.mobile-nav-link svg {
  opacity: 0.7;
}

.mobile-nav-link:hover svg,
.mobile-nav-link-active svg {
  opacity: 1;
}

.mobile-nav-link-danger {
  color: #f87171;
}

.mobile-nav-link-danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Hide elements on mobile/desktop */
@media (max-width: 768px) {
  .user-name {
    display: none;
  }
  
  .chevron-icon {
    display: none;
  }
}

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

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

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .container {
    padding: 0 1rem;
  }
  
  .content-area {
    padding: 2rem 0;
  }
  
  .post-title {
    font-size: 1.75rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
