/*
Theme Name: AI Prompt Vault
Theme URI: https://example.com/ai-prompt-vault
Author: Antigravity
Author URI: https://example.com
Description: A premium WordPress theme for sharing AI prompts.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-prompt-vault
*/

:root {
  /* Color Palette - Dark Premium Theme */
  --color-bg-primary: #0f111a;
  --color-bg-card: #1a1d2d;
  --color-text-main: #ffffff;
  --color-text-muted: #a0a0b0;
  --color-accent: #6c5ce7;
  /* Primary Purple */
  --color-accent-hover: #5649c0;
  --color-secondary: #00cec9;
  /* Cyan for highlights */
  --color-border: #2d3436;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --gradient-text: linear-gradient(90deg, #6c5ce7, #00cec9);

  /* Spacing */
  --container-width: 1200px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Typography */
  --font-main: 'Outfit', 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-primary);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-outline {
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
}

.btn-outline:hover {
  background: rgba(108, 92, 231, 0.1);
}

/* Header & Nav */
header {
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links ul {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-links ul li a {
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links ul li a:hover {
  color: var(--color-secondary);
}

/* Fallback links style */
.nav-links>a {
  margin-left: var(--spacing-lg);
}

.nav-links>a:first-child {
  margin-left: 0;
}

/* Footer */
footer {
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xl) 0;
  color: var(--color-text-muted);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

/* Additional Styles from index.html embedded style block */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
  gap: var(--spacing-sm);
}

.hero-search input {
  flex: 1;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: inherit;
}

.hero-tags {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.tag {
  margin-left: var(--spacing-sm);
  color: var(--color-secondary);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
}

.category-card {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.category-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.prompts-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.prompt-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--spacing-lg);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prompt-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-header {
  margin-bottom: var(--spacing-md);
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  /* Fix */
}

.card-title {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.card-title a {
  text-decoration: none;
  color: inherit;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--spacing-md);
}

.rating {
  color: #ffd700;
  font-weight: 600;
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(26, 29, 45, 0.8), rgba(108, 92, 231, 0.1));
  padding: 4rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

.cta-box h2 {
  margin-bottom: var(--spacing-sm);
}

.cta-box p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

/* Pagination */
/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination ul.page-numbers {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  border: none;
}

.pagination .page-numbers {
  /* Reset generic styles if they leak, though specificity handles it */
}

.pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  /* Larger touch target */
  height: 44px;
  padding: 0 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination span.page-numbers.current,
.pagination a.page-numbers:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* Icons/Text alignment in pagination */
.pagination .next,
.pagination .prev {
  font-size: 1.2rem;
  line-height: 1;
}

/* Star Rating */
.star-rating {
  direction: rtl;
  display: inline-flex;
  font-size: 1.5rem;
  cursor: pointer;
}

.star-rating input {
  display: none;
}

.star-rating label {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.star-rating input:checked~label,
.star-rating label:hover,
.star-rating label:hover~label {
  color: #ffd700;
}

/* Blog Entry Content */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.entry-content a {
  color: var(--color-accent);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Comments Area */
.comments-area {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.comments-title,
.comment-reply-title {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list li {
  margin-bottom: 2rem;
}

.comment-body {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.comment-meta {
  flex-basis: 100%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comment-author {
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author img {
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}

.comment-metadata {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.comment-metadata a {
  color: inherit;
}

.comment-content {
  flex-basis: 100%;
  color: #e0e0e0;
  line-height: 1.6;
}

.reply {
  margin-top: 1rem;
}

.comment-reply-link {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.comment-reply-link:hover {
  background: rgba(108, 92, 231, 0.1);
}

/* Threaded Comments */
.children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 2rem;
  border-left: 2px solid var(--color-border);
}

/* Comment Form */
.comment-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.comment-form-comment {
  grid-column: 1 / -1;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.comment-form-cookies-consent input {
  width: auto;
}

.form-submit {
  margin-top: 1rem;
}

/* Hide default labels as we use placeholders */
.comment-form label {
  display: none;
}

.comment-form-cookies-consent label {
  display: inline;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
  transform: translateY(0);
}

.search-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border);
  font-size: 2.5rem;
  color: white;
  padding: 1rem 0;
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

.search-field:focus {
  outline: none;
  border-color: var(--color-accent);
}

#search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#search-close:hover {
  opacity: 1;
}

.search-field::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Breadcrumbs */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumb .current {
  color: white;
}

/* ============================================
   SINGLE POST - PROFESSIONAL READING EXPERIENCE
   ============================================ */

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-hero);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Hero Section */
.single-post-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0;
  margin-bottom: 3rem;
  overflow: hidden;
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top,
      rgba(15, 17, 26, 1) 0%,
      rgba(15, 17, 26, 0.8) 40%,
      rgba(15, 17, 26, 0.4) 100%);
  z-index: 1;
}

.hero-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top center,
      rgba(108, 92, 231, 0.3) 0%,
      rgba(0, 206, 201, 0.1) 50%,
      transparent 80%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

/* Post Meta Top (Category Badges) */
.post-meta-top {
  margin-bottom: 1.5rem;
}

.category-badges a {
  display: inline-block;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(0, 206, 201, 0.2));
  color: var(--color-secondary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0, 206, 201, 0.3);
  transition: all 0.3s ease;
}

.category-badges a:hover {
  background: rgba(0, 206, 201, 0.3);
  border-color: var(--color-secondary);
  transform: translateY(-2px);
}

/* Single Post Title */
.single-post-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Post Excerpt */
.single-post-excerpt {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Post Meta Bar */
.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.reading-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reading-time svg {
  opacity: 0.7;
}

/* Article Container */
.single-post-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.single-post-content {
  position: relative;
}

/* Prose Typography - Enhanced Reading Experience */
.entry-content.prose {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #d4d4d8;
}

.entry-content.prose p {
  margin-bottom: 1.75rem;
}

.entry-content.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.entry-content.prose h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gradient-hero);
}

.entry-content.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content.prose a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(0, 206, 201, 0.4);
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.entry-content.prose a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.entry-content.prose ul,
.entry-content.prose ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
}

.entry-content.prose ul {
  list-style-type: none;
}

.entry-content.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.entry-content.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--gradient-hero);
  border-radius: 50%;
}

.entry-content.prose ol li {
  margin-bottom: 0.75rem;
}

.entry-content.prose blockquote {
  border-left: 4px solid var(--color-accent);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(26, 29, 45, 0.8));
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #e0e0e0;
  position: relative;
}

.entry-content.prose blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: var(--color-accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.entry-content.prose blockquote p {
  margin-bottom: 0;
}

.entry-content.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.entry-content.prose pre,
.entry-content.prose code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.entry-content.prose pre {
  background: #1a1d2a;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.entry-content.prose code {
  background: rgba(108, 92, 231, 0.15);
  color: var(--color-secondary);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.entry-content.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.entry-content.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: 3rem 0;
}

.entry-content.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.entry-content.prose th,
.entry-content.prose td {
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.entry-content.prose th {
  background: var(--color-bg-card);
  color: white;
  font-weight: 600;
}

.entry-content.prose td {
  color: var(--color-text-muted);
}

/* Tags Section */
.post-tags-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.tags-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
}

.tag-pill:hover {
  background: rgba(108, 92, 231, 0.15);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Share Section */
.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-card);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.share-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
  color: white;
}

.share-linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: white;
}

.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: white;
}

.share-copy:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* Author Bio Section */
.author-bio-section {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(26, 29, 45, 0.9), rgba(108, 92, 231, 0.08));
  border-radius: 16px;
  border: 1px solid var(--color-border);
}

.author-bio-avatar {
  flex-shrink: 0;
}

.bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.author-bio-content {
  flex: 1;
}

.bio-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.bio-author-name {
  font-size: 1.5rem;
  color: white;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
}

.bio-description {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.view-all-posts {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.view-all-posts:hover {
  color: var(--color-secondary);
  gap: 0.5rem;
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--color-bg-card);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.nav-link:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-prev {
  align-items: flex-start;
}

.nav-next {
  align-items: flex-end;
  text-align: right;
}

.nav-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-label svg {
  opacity: 0.6;
}

.nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Comments Wrapper */
.comments-wrapper {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

/* Responsive Single Post */
@media (max-width: 768px) {
  .single-post-hero {
    min-height: 40vh;
    padding: 2rem 0;
  }

  .single-post-title {
    font-size: 1.75rem;
  }

  .single-post-excerpt {
    font-size: 1.1rem;
  }

  .post-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .single-post-container {
    padding: 0 1rem 3rem;
  }

  .entry-content.prose {
    font-size: 1rem;
  }

  .author-bio-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .nav-next {
    align-items: flex-start;
    text-align: left;
  }

  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   BLOG PAGE - PROFESSIONAL LISTING DESIGN
   ============================================ */

/* Blog Hero Section */
.blog-hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(108, 92, 231, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(0, 206, 201, 0.15) 0%, transparent 50%);
  z-index: 0;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.15));
  color: var(--color-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 206, 201, 0.3);
  margin-bottom: 1.5rem;
}

.blog-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
}

.blog-hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Blog Stats */
.blog-stats {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem 2.5rem;
  border-radius: 60px;
  border: 1px solid var(--color-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Section Labels */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.label-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent));
}

.label-line:last-child {
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.label-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  font-weight: 600;
}

/* Featured Post Section */
.featured-post-section {
  padding: 3rem 0;
}

.featured-post-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.featured-post-card:hover {
  border-color: rgba(108, 92, 231, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.featured-image-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-image {
  transform: scale(1.05);
}

.featured-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), transparent);
  pointer-events: none;
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.featured-category a {
  display: inline-block;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(0, 206, 201, 0.15));
  color: var(--color-secondary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-dot {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.featured-date,
.featured-reading-time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.featured-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.featured-title a {
  color: white;
  transition: color 0.2s ease;
}

.featured-title a:hover {
  color: var(--color-secondary);
}

.featured-excerpt {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}

.author-name-small {
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}

.featured-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.featured-read-btn:hover {
  background: var(--color-accent-hover);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

/* Blog Posts Section */
.blog-posts-section {
  padding: 4rem 0;
}

.section-header-row {
  margin-bottom: 3rem;
}

.section-title-medium {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.section-subtitle-small {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Blog Card */
.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 92, 231, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Blog Card Image */
.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-no-image {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.1));
}

.card-placeholder-bg {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(108, 92, 231, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(0, 206, 201, 0.2) 0%, transparent 40%);
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .card-thumbnail {
  transform: scale(1.08);
}

.card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(15, 17, 26, 0.4) 100%);
  pointer-events: none;
}

.card-category-float {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.card-category-float a {
  display: inline-block;
  background: rgba(15, 17, 26, 0.8);
  backdrop-filter: blur(10px);
  color: var(--color-secondary);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 206, 201, 0.3);
  transition: all 0.2s ease;
}

.card-category-float a:hover {
  background: var(--color-secondary);
  color: var(--color-bg-primary);
}

/* Blog Card Body */
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.card-date,
.card-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-date svg,
.card-reading-time svg {
  opacity: 0.6;
}

.meta-separator {
  opacity: 0.4;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: white;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-title a:hover {
  color: var(--color-secondary);
}

.blog-card-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Blog Card Footer */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
}

.card-author-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.card-read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.15);
  color: var(--color-accent);
  transition: all 0.3s ease;
}

.card-read-more:hover {
  background: var(--color-accent);
  color: white;
  transform: translateX(3px);
}

/* No Posts Message */
.no-posts-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}

.no-posts-message svg {
  margin-bottom: 1rem;
  opacity: 0.4;
}

.no-posts-message h3 {
  color: white;
  margin-bottom: 0.5rem;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.blog-pagination ul.page-numbers {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.blog-pagination a.page-numbers,
.blog-pagination span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  transition: all 0.2s ease;
}

.blog-pagination span.page-numbers.current,
.blog-pagination a.page-numbers:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* Blog CTA Section */
.blog-cta-section {
  padding: 4rem 0 5rem;
}

.blog-cta-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(26, 29, 45, 0.9), rgba(108, 92, 231, 0.1));
  border-radius: 24px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 280px;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.cta-text {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.cta-form-wrapper {
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-input {
  width: 280px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.newsletter-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Newsletter Messages */
.newsletter-message {
  margin-top: 1rem;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  text-align: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.newsletter-message-success {
  background: linear-gradient(135deg, rgba(0, 206, 201, 0.2), rgba(0, 206, 201, 0.1));
  border: 1px solid rgba(0, 206, 201, 0.4);
  color: #00cec9;
}

.newsletter-message-error {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

/* Newsletter input error state */
.newsletter-input.error {
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

/* Loading spinner */
.newsletter-btn .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success animation */
.newsletter-form.subscribed .newsletter-input {
  border-color: var(--color-secondary);
  background: rgba(0, 206, 201, 0.1);
}

/* Blog Page Responsive */
@media (max-width: 992px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }

  .featured-image-wrapper {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 3rem 0;
  }

  .blog-hero-title {
    font-size: 2rem;
  }

  .blog-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-input {
    width: 100%;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .featured-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive Menu */
@media (max-width: 768px) {
  #mobile-menu-toggle {
    display: block !important;
    z-index: 101;
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 17, 26, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    /* Force flex */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .nav-links>a,
  .nav-links ul li a {
    font-size: 1.5rem;
    margin: 1rem 0;
    display: block;
  }

  .nav-links>a {
    margin-left: 0;
  }
}