/* ============================================
   AI Blog - Modern Responsive Styles
   ============================================ */

/* ========== Variables ========== */
:root {
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --purple-color: #8b5cf6;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --body-font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono-font: "JetBrains Mono", "Fira Code", monospace;
  --border-radius: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 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);
  --transition: all 0.2s ease-in-out;
}

/* ========== Reading Progress Bar ========== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--purple-color));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ========== Custom Colors ========== */
.text-purple {
  color: var(--purple-color) !important;
}

.bg-purple {
  background-color: var(--purple-color) !important;
}

/* ========== AI Tool Brand Colors ========== */
.text-chatgpt {
  color: #10a37f !important; /* OpenAI teal-green */
}

.text-claude {
  color: #d97757 !important; /* Anthropic coral/orange */
}

.text-gemini {
  color: #4285f4 !important; /* Google blue */
}

.text-midjourney {
  color: #fff !important; /* Midjourney white on dark */
}

.text-midjourney-dark {
  color: #1a1a2e !important; /* Midjourney dark purple */
}

.text-grok {
  color: #000000 !important; /* xAI black */
}

.text-copilot {
  color: #0078d4 !important; /* GitHub/Microsoft blue */
}

.text-jasper {
  color: #ff5733 !important; /* Jasper orange-red */
}

.text-llama {
  color: #764abc !important; /* Meta purple */
}

.bg-chatgpt {
  background-color: #10a37f !important;
}

.bg-claude {
  background-color: #d97757 !important;
}

.bg-midjourney {
  background-color: #1a1a2e !important;
}

.tool-icon.midjourney-icon {
  background-color: #1a1a2e;
  border-radius: 50%;
  padding: 0.75rem;
}

/* ========== Base Styles ========== */
body {
  font-family: var(--body-font);
  color: var(--dark-color);
  background-color: #fff;
  line-height: 1.6;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* ========== Navbar ========== */
.navbar {
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.navbar > .container,
.navbar > .container-fluid {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: visible;
}

.navbar-brand {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-collapse {
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
}

.navbar-nav {
  align-items: center;
  margin: 0;
  padding: 0;
  margin-left: 2rem;
  flex-wrap: nowrap;
}

.navbar-nav .nav-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar .d-flex.me-3 {
  align-items: center;
  margin: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.navbar .input-group {
  margin: 0;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.navbar-toggler {
  padding: 0.25rem 0.5rem;
  margin: 0;
}

.navbar .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-menu-dark {
  border: none;
  box-shadow: var(--shadow-lg);
}

/* ========== Hero Section ========== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-icons {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Free tier banner */
.free-tier-banner {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ========== Cards ========== */
.card {
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tool-card {
  overflow: hidden;
}

.tool-card:hover .tool-icon i {
  transform: scale(1.1);
}

.tool-icon i {
  transition: var(--transition);
}

/* ========== Tool Page Styles ========== */
.tool-hero-section {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.tool-icon-large {
  flex-shrink: 0;
}

.tool-icon-display {
  font-size: 4rem;
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tool-follow-section .btn-lg {
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
}

.tool-follow-section .btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.tool-posts-section .badge {
  font-weight: 500;
  letter-spacing: 0.025em;
}

.post-card {
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.post-card:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.post-card .card-title a {
  color: inherit;
  transition: color 0.2s ease;
}

.post-card:hover .card-title a {
  color: var(--primary-color) !important;
}

.post-meta {
  font-size: 0.875rem;
}

.tool-cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}

.tool-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tool-cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-icon i {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.empty-state-icon {
  animation: float 3s ease-in-out infinite;
}

.post-card .card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.post-card .card-title a {
  transition: var(--transition);
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card .card-title a:hover {
  color: var(--primary-color) !important;
}

/* ========== Buttons ========== */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
}

/* ========== Forms ========== */
.form-control {
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  border-color: #e5e7eb;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-group-text {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
}

/* ========== Badges ========== */
.badge {
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* ========== Alerts ========== */
.alert {
  border: none;
  border-radius: var(--border-radius);
}

/* ========== Post Content ========== */
.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

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

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content pre {
  background-color: var(--dark-color);
  color: #e5e7eb;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  font-family: var(--mono-font);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.post-content code {
  font-family: var(--mono-font);
  font-size: 0.9em;
  background-color: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

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

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

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

/* ========== Comments ========== */
.comments-section .card {
  border-radius: var(--border-radius);
}

/* ========== Footer ========== */
footer {
  background-color: var(--dark-color) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.75) !important;
  transition: var(--transition);
}

footer a:hover {
  color: #fff !important;
}

footer .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--secondary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

/* ========== Loading States ========== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* ========== Utilities ========== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Mobile Theme Toggle Pill ========== */
#navbarNav .mobile-theme-toggle-container {
  width: 100%;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  order: -100 !important;
}

#navbarNav .mobile-theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

#navbarNav .theme-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

#navbarNav .theme-label i {
  font-size: 0.9rem;
}

#navbarNav .theme-pill {
  position: relative;
  width: 56px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  display: block !important;
  flex-shrink: 0;
}

#navbarNav .theme-pill:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#navbarNav .theme-pill-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background-color: #fff;
  border-radius: 50% !important;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: block !important;
}

/* Dark mode active state for pill */
[data-theme="dark"] #navbarNav .theme-pill {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

[data-theme="dark"] #navbarNav .theme-pill-slider {
  transform: translateX(28px);
}

[data-theme="dark"] #navbarNav .theme-label:last-child {
  color: #fff;
}

[data-theme="dark"] #navbarNav .theme-label:first-child {
  color: rgba(255, 255, 255, 0.4);
}

/* Light mode label highlighting */
html:not([data-theme="dark"]) #navbarNav .theme-label:first-child {
  color: #fff;
}

/* ========== Responsive - Mobile First ========== */

/* Desktop navigation - xl breakpoint and above */
@media (min-width: 1200px) {
  /* Ensure mobile-specific classes don't affect desktop */
  .mobile-nav-link {
    background-color: transparent !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem !important;
    border-radius: 0.5rem !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .mobile-nav-link:hover {
    transform: none !important;
  }
}

/* Tablet and below - for navbar collapse at xl breakpoint */
@media (max-width: 1199.98px) {
  /* Mobile navbar styles */
  .navbar > .container {
    flex-wrap: wrap !important;
  }

  /* Full-height mobile menu - accounts for browser bars */
  #navbarNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    background-color: #1a1d23;
    margin: 0;
    padding: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    opacity: 0;
    -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    will-change: transform, opacity;
    visibility: hidden;
    padding-bottom: env(safe-area-inset-bottom, 2rem);
  }

  #navbarNav.collapsing {
    display: flex !important;
    visibility: visible;
  }

  #navbarNav.collapse:not(.show) {
    display: none;
    visibility: hidden;
  }

  #navbarNav.show {
    display: flex;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
  }

  /* Mobile menu header - simple close button only */
  .mobile-menu-header {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    height: 56px;
    flex-shrink: 0;
    background-color: transparent;
    padding: 0.75rem 1.25rem;
    position: relative;
    z-index: 10;
  }

  .mobile-menu-header .container {
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .mobile-menu-header .navbar-brand {
    display: none;
  }

  .mobile-menu-header .btn-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }

  .mobile-menu-header .btn-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .mobile-menu-header .btn-link i {
    font-size: 1.5rem;
  }

  /* Scrollable content area */
  .mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  /* Mobile theme toggle container - FIRST child styling */
  #navbarNav .mobile-theme-toggle-container {
    display: flex !important;
    justify-content: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #212529;
    width: 100%;
    margin: 0;
    flex-shrink: 0;
  }

  #navbarNav .mobile-theme-toggle {
    display: flex !important;
    align-items: center;
    gap: 14px;
  }

  #navbarNav .theme-label {
    font-size: 0.9rem;
    font-weight: 500;
  }

  #navbarNav .theme-pill {
    width: 56px !important;
    height: 28px !important;
    background: #495057 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 28px !important;
    position: relative !important;
    cursor: pointer;
    padding: 0 !important;
  }

  #navbarNav .theme-pill-slider {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 20px !important;
    height: 20px !important;
    background: #fff !important;
    border-radius: 50% !important;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }

  [data-theme="dark"] #navbarNav .theme-pill {
    background: #6366f1 !important;
    border-color: #818cf8 !important;
  }

  [data-theme="dark"] #navbarNav .theme-pill-slider {
    -webkit-transform: translateX(28px);
    transform: translateX(28px);
  }

  /* Hide section headers on mobile */
  .mobile-nav-section-header {
    display: none !important;
  }

  /* Main navigation section - centered */
  #navbarNav .navbar-nav.me-auto {
    padding: 2rem 1.5rem;
    margin-left: 0 !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #navbarNav .navbar-nav {
    padding: 0;
    margin-left: 0 !important;
    width: 100%;
    max-width: 400px;
  }

  .navbar-nav .nav-item {
    width: 100%;
    margin: 0.625rem 0;
  }

  .navbar-nav .nav-item:first-of-type {
    margin-top: 0;
  }

  /* Centered navigation links */
  .navbar-nav .nav-link {
    width: 100%;
    padding: 1.125rem 1.5rem;
    margin: 0;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus,
  .navbar-nav .nav-link:active {
    background-color: rgba(255, 255, 255, 0.12);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
  }

  .navbar-nav .nav-link i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
  }

  /* AI Tools submenu - drill-down pattern */
  .mobile-submenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #1a1d23;
    z-index: 1051;
    display: none;
    flex-direction: column;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    opacity: 0;
    -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    will-change: transform, opacity;
  }

  .mobile-submenu.show {
    display: flex;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }

  .mobile-submenu-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .mobile-submenu-back {
    background: none;
    border: none;
    color: #fff;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
  }

  .mobile-submenu-back:hover {
    color: var(--primary-color);
  }

  .mobile-submenu-back i {
    font-size: 1.25rem;
  }

  .mobile-submenu-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-submenu-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .mobile-submenu-list {
    width: 100%;
    max-width: 400px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-submenu-item {
    margin: 0.625rem 0;
    width: 100%;
  }

  .mobile-submenu-item:first-child {
    margin-top: 0;
  }

  .mobile-submenu-link {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 1.125rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    -webkit-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
  }

  .mobile-submenu-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
  }

  /* Hide default dropdown on mobile */
  .navbar-nav .dropdown-menu {
    display: none !important;
  }

  /* AI Tools dropdown toggle - make it a button */
  .navbar-nav .dropdown .dropdown-toggle {
    cursor: pointer;
  }

  .navbar-nav .dropdown .dropdown-toggle::after {
    margin-left: 0.5rem;
  }

  /* Mobile search form - centered */
  .navbar form.d-xl-none {
    padding: 1.5rem 1.5rem;
    margin: 0 auto !important;
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
  }

  .navbar form.d-xl-none .input-group {
    width: 100%;
  }

  .navbar form.d-xl-none .form-control {
    height: 52px;
    font-size: 1rem;
    border-radius: 0.75rem 0 0 0.75rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .navbar form.d-xl-none .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .navbar form.d-xl-none .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    color: #fff;
  }

  .navbar form.d-xl-none .btn {
    height: 52px;
    padding: 0 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
  }

  /* Hide desktop search */
  .navbar .d-xl-flex {
    display: none !important;
  }

  /* Hide old theme toggle on mobile */
  .navbar .theme-toggle.d-xl-flex {
    display: none !important;
  }

  /* User account section - centered at bottom */
  .navbar-nav:not(.me-auto) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 2rem 1.5rem 2.5rem 1.5rem !important;
    margin-top: auto;
    flex-shrink: 0;
  }

  /* User dropdown for logged-in users */
  .navbar-nav:not(.me-auto) .nav-item.dropdown {
    width: 100%;
    max-width: 400px;
    margin-bottom: 0.625rem;
  }

  .navbar-nav:not(.me-auto) .nav-link.dropdown-toggle {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.125rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    -webkit-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar-nav:not(.me-auto) .nav-link.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.12);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
  }

  .navbar-nav:not(.me-auto) .nav-link.dropdown-toggle i.bi-person-circle {
    font-size: 1.25rem;
    margin-right: 0.75rem;
  }

  /* Premium/Pricing link */
  .navbar-nav:not(.me-auto) > .nav-item:not(.dropdown) {
    width: 100%;
    max-width: 400px;
    margin-bottom: 0.625rem;
  }

  .navbar-nav:not(.me-auto) > .nav-item:not(.dropdown) .nav-link {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
    padding: 1.125rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    justify-content: center;
    border: none;
    box-sizing: border-box;
    -webkit-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar-nav:not(.me-auto) > .nav-item:not(.dropdown) .nav-link:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  }

  /* Notification dropdown */
  .navbar-nav:not(.me-auto) .nav-item.dropdown.me-2 {
    margin-right: 0 !important;
    margin-bottom: 0.625rem;
    width: 100%;
    max-width: 400px;
  }

  .navbar-nav:not(.me-auto) .nav-item.dropdown.me-2 .nav-link {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.125rem 1.5rem;
    border-radius: 0.75rem;
    justify-content: center;
    font-size: 1.1rem;
    box-sizing: border-box;
    -webkit-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar-nav:not(.me-auto) .nav-item.dropdown.me-2 .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
  }

  .navbar-nav:not(.me-auto) .nav-item.dropdown.me-2 .nav-link::after {
    content: 'Notifications';
    margin-left: 0.75rem;
    font-size: 1.05rem;
  }

  /* User dropdown menu - full screen */
  .navbar-nav:not(.me-auto) .dropdown-menu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: #1a1d23 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
  }

  .navbar-nav:not(.me-auto) .dropdown-menu.show {
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(0) !important;
  }

  /* Login and Sign up buttons for non-authenticated users */
  .navbar-nav:not(.me-auto) .nav-item:has(.nav-link[href*="login"]),
  .navbar-nav:not(.me-auto) .nav-item:has(.btn-primary) {
    width: 100%;
    max-width: 400px;
  }

  .navbar .nav-link[href*="login"] {
    display: block !important;
    width: 100% !important;
    margin: 0 auto 0.625rem auto !important;
    padding: 1.125rem 1.5rem !important;
    text-align: center !important;
    border-radius: 0.75rem !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    box-sizing: border-box !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .navbar .nav-link[href*="login"]:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.02);
  }

  /* Sign up button - prominent call to action */
  .navbar .btn-primary.btn-sm {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 1.125rem 1.5rem !important;
    text-align: center !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .navbar .btn-primary.btn-sm:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3730a3 100%) !important;
    transform: scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5) !important;
  }

  /* Spacer to push account section to bottom */
  .navbar-nav.me-auto::after {
    content: '';
    flex: 1;
  }

  /* Smooth slide-in animation for mobile menu */
  #navbarNav {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    opacity: 0;
  }

  #navbarNav.show {
    transform: translateX(0);
    opacity: 1;
  }

  #navbarNav.collapsing {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  }

  /* Dark mode support for mobile menu */
  [data-theme="dark"] #navbarNav {
    background-color: var(--bg-primary);
  }

  [data-theme="dark"] .mobile-menu-header {
    background-color: transparent;
  }

  [data-theme="dark"] .mobile-menu-header .btn-link {
    color: var(--text-primary);
  }

  [data-theme="dark"] #navbarNav .mobile-theme-toggle-container {
    background-color: transparent;
  }

  [data-theme="dark"] .navbar-nav .nav-link {
    background-color: var(--bg-tertiary);
  }

  [data-theme="dark"] .navbar-nav .nav-link:hover,
  [data-theme="dark"] .navbar-nav .nav-link:focus,
  [data-theme="dark"] .navbar-nav .nav-link:active {
    background-color: rgba(99, 102, 241, 0.2);
  }

  [data-theme="dark"] .navbar-nav:not(.me-auto) .nav-link.dropdown-toggle {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
  }

  [data-theme="dark"] .navbar-nav:not(.me-auto) .nav-item.dropdown.me-2 .nav-link {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
  }

  [data-theme="dark"] .navbar .nav-link[href*="login"] {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
  }

  [data-theme="dark"] .navbar .nav-link[href*="login"]:hover {
    background-color: rgba(99, 102, 241, 0.2) !important;
  }

  [data-theme="dark"] .navbar form.d-xl-none .form-control {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
  }

  [data-theme="dark"] .navbar form.d-xl-none .form-control:focus {
    background-color: rgba(99, 102, 241, 0.2);
  }

  /* Dark mode for AI Tools submenu */
  [data-theme="dark"] .mobile-submenu {
    background-color: var(--bg-primary);
  }

  [data-theme="dark"] .mobile-submenu-header {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-color);
  }

  [data-theme="dark"] .mobile-submenu-back {
    color: var(--text-primary);
  }

  [data-theme="dark"] .mobile-submenu-back:hover {
    color: var(--primary-color);
  }

  [data-theme="dark"] .mobile-submenu-title {
    color: var(--text-primary);
  }

  [data-theme="dark"] .mobile-submenu-link {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
  }

  [data-theme="dark"] .mobile-submenu-link:hover {
    background-color: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
  }
}

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  .lead { font-size: 1rem; }

  /* Tool Page Mobile Styles */
  .tool-icon-display {
    font-size: 3rem;
    padding: 0.75rem;
  }

  .tool-follow-section {
    margin-top: 1rem;
  }

  .tool-follow-section .btn-lg {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
  }

  .post-card {
    margin-bottom: 1rem;
  }

  .post-meta {
    font-size: 0.8rem;
  }

  .tool-cta-section .btn-lg {
    width: 100%;
    padding: 1rem 1.5rem !important;
  }

  .tool-cta-section {
    text-align: center !important;
  }

  .tool-cta-section .row {
    margin: 0;
  }

  .tool-cta-section .col-lg-8 {
    padding: 0 1rem;
  }

  .tool-cta-section h2,
  .tool-cta-section p,
  .tool-cta-section .lead {
    text-align: center !important;
  }

  /* Container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0;
  }

  .hero-section h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero-section .lead {
    font-size: 0.95rem;
  }

  .hero-section .btn-lg {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .hero-section .btn-lg + .btn-lg {
    margin-left: 0 !important;
  }

  /* Navbar - smaller screen specific */
  .navbar-brand {
    font-size: 1.1rem;
  }

  /* Notification Dropdown */
  .notification-dropdown {
    min-width: 100vw !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 56px !important;
    max-height: calc(100vh - 120px) !important;
    border-radius: 0 !important;
  }

  /* Cards */
  .card {
    border-radius: 0.5rem;
  }

  .card-body {
    padding: 1rem;
  }

  .tool-card .card-body {
    padding: 1.25rem;
  }

  .tool-card .display-4 {
    font-size: 2.5rem;
  }

  /* Post Card */
  .post-card .card-title {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.4;
  }

  .post-card .card-text {
    font-size: 0.875rem;
  }

  .post-card .card-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .post-card .card-footer > div {
    width: 100%;
  }

  .post-card .card-footer .btn {
    width: 100%;
  }

  /* Post Content */
  .post-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .post-content h2 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
  }

  .post-content h3 {
    font-size: 1.2rem;
    margin-top: 1.25rem;
  }

  .post-content pre {
    padding: 0.75rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
  }

  .post-content blockquote {
    padding-left: 1rem;
    margin: 1rem 0;
    font-size: 0.95rem;
  }

  /* Share Buttons */
  .border-top.border-bottom.py-4 {
    padding: 1rem 0 !important;
  }

  .border-top.border-bottom .d-flex {
    flex-direction: column;
    gap: 0.75rem !important;
  }

  .border-top.border-bottom .d-flex .d-flex.gap-2 {
    justify-content: center;
  }

  /* Buttons */
  .btn {
    padding: 0.625rem 1rem;
  }

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

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  /* Forms */
  .form-control {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.75rem 1rem;
  }

  .input-group-text {
    padding: 0.75rem 1rem;
  }

  /* Comments */
  .comments-section .card-body {
    padding: 1rem;
  }

  .comments-section textarea {
    min-height: 100px;
  }

  /* Account Page */
  .account-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Notifications Page */
  .notification-card .d-flex.gap-2 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin-top: 0.75rem;
  }

  .notification-card .btn {
    width: 100%;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
    display: none;
  }

  .pagination .page-item.active {
    display: block;
  }

  .pagination .page-item:first-child .page-link,
  .pagination .page-item:last-child .page-link {
    padding: 0.5rem 1rem;
  }

  /* Footer */
  footer {
    padding: 2rem 0 !important;
  }

  footer .row > div {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  footer .list-unstyled {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  footer .list-unstyled li {
    margin-bottom: 0 !important;
  }

  footer .text-center .mb-2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  footer .text-center .mb-2 a {
    margin-right: 0 !important;
  }

  /* Cookie Consent */
  .cookie-consent {
    padding: 0.5rem 0;
  }

  .cookie-consent .d-flex {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent .me-3 {
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }

  .cookie-consent p {
    font-size: 0.85rem;
  }

  .cookie-consent .d-flex.gap-2 {
    width: 100%;
  }

  .cookie-consent .btn {
    flex: 1;
  }

  /* Compare Page */
  .col-md-4.text-center {
    margin-bottom: 1.5rem;
  }

  /* Badges */
  .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  /* Alerts */
  .alert {
    font-size: 0.9rem;
    padding: 0.875rem 1rem;
  }

  /* Modal */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-body {
    padding: 1rem;
  }

  /* Tables */
  .table-responsive {
    font-size: 0.875rem;
  }

  /* List Groups */
  .list-group-item {
    padding: 0.875rem 1rem;
  }

  /* Utility classes for mobile */
  .mobile-full-width {
    width: 100% !important;
  }

  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-center {
    text-align: center !important;
  }

  .mobile-hide {
    display: none !important;
  }

  /* Spacing adjustments */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  .gap-4 {
    gap: 1rem !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section {
    padding: 2.5rem 0;
  }

  .hero-section h1 {
    font-size: 1.85rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .notification-dropdown {
    min-width: 350px !important;
  }

  .pagination .page-item:not(.active):not(:first-child):not(:last-child) {
    display: inline-block;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
  /* Tablet-specific adjustments */
  .hero-section {
    padding: 3rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  /* Feed sidebar hidden on tablets */
  .col-lg-3.mb-4:not(.d-none) {
    display: none;
  }

  /* Account page sidebar */
  .col-lg-3.mb-4 .position-sticky {
    position: relative !important;
  }

  /* Notifications header buttons */
  .d-flex.gap-2 .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ========== Dark Mode Support ========== */
[data-theme="dark"] {
  --bg-primary: #0a0e1a;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #252b3b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #2d3548;
}

[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .navbar {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .card {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .card-title a,
[data-theme="dark"] .card-title {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .card-body,
[data-theme="dark"] .card-text {
  color: #e2e8f0;
}

[data-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}

[data-theme="dark"] .text-dark {
  color: var(--text-primary) !important;
}

[data-theme="dark"] .bg-light {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .border {
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .border-bottom {
  border-color: var(--border-color) !important;
}

[data-theme="dark"] .form-control {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .dropdown-menu {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
  color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: var(--bg-tertiary);
}

/* Dark mode notification dropdown */
[data-theme="dark"] .notification-dropdown {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .notification-dropdown .dropdown-header {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="dark"] .notification-dropdown .dropdown-divider {
  border-color: var(--border-color);
}

[data-theme="dark"] .notification-dropdown-title {
  color: #f3f4f6;
}

[data-theme="dark"] .notification-dropdown-link {
  color: #818cf8;
}

[data-theme="dark"] .notification-dropdown-link:hover {
  color: #a5b4fc;
}

[data-theme="dark"] .notification-item {
  color: #d1d5db;
}

[data-theme="dark"] .notification-item:hover {
  background: var(--bg-tertiary);
  color: #f3f4f6;
}

[data-theme="dark"] .notification-item.unread {
  background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .notification-item .notification-title {
  color: #f3f4f6;
}

[data-theme="dark"] .notification-item .notification-message,
[data-theme="dark"] .notification-item .notification-time {
  color: #cbd5e1;
}

[data-theme="dark"] .list-group-item {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .table {
  color: var(--text-primary);
  --bs-table-bg: var(--bg-secondary);
  --bs-table-striped-bg: var(--bg-tertiary);
  --bs-table-hover-bg: var(--bg-tertiary);
}

[data-theme="dark"] .table > :not(caption) > * > * {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .modal-content {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: var(--border-color);
}

[data-theme="dark"] .btn-close {
  filter: invert(1);
}

[data-theme="dark"] footer {
  background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .post-content {
  color: var(--text-primary);
}

[data-theme="dark"] .post-content code {
  background-color: var(--bg-tertiary);
  color: #e879f9;
}

[data-theme="dark"] .post-content pre {
  background-color: #0d1117;
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #3730a3 0%, #5b21b6 100%);
}

[data-theme="dark"] .alert {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="dark"] .alert-success {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: var(--success-color);
}

[data-theme="dark"] .alert-danger {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: var(--danger-color);
}

[data-theme="dark"] .alert-warning {
  background-color: rgba(245, 158, 11, 0.2);
  border-color: var(--warning-color);
}

[data-theme="dark"] .alert-info {
  background-color: rgba(6, 182, 212, 0.2);
  border-color: var(--info-color);
}

[data-theme="dark"] .breadcrumb-item a {
  color: #cbd5e1;
}

[data-theme="dark"] .breadcrumb-item.active {
  color: var(--text-muted);
}

[data-theme="dark"] .input-group-text {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] hr {
  border-color: var(--border-color);
}

[data-theme="dark"] .stat-card {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

[data-theme="dark"] .pagination .page-link {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

[data-theme="dark"] .pagination .page-item.disabled .page-link {
  background-color: var(--bg-tertiary);
  color: #64748b;
}

[data-theme="dark"] .badge.bg-light {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-outline-secondary {
  color: #cbd5e1;
  border-color: #475569;
}

[data-theme="dark"] .btn-outline-secondary:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-light {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-light:hover {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .form-select {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .form-check-input {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
  color: var(--text-primary);
}

[data-theme="dark"] p {
  color: #e2e8f0;
}

[data-theme="dark"] .lead {
  color: #e2e8f0;
}

/* Dark mode - Tool Page */
[data-theme="dark"] .tool-hero-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .tool-icon-display {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .tool-cta-section {
  background: linear-gradient(135deg, #3730a3 0%, #5b21b6 100%);
}

[data-theme="dark"] .post-card {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .post-card:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .post-card .card-title a {
  color: var(--text-primary);
}

[data-theme="dark"] .post-card:hover .card-title a {
  color: var(--primary-color) !important;
}

[data-theme="dark"] .post-meta {
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
}

/* Dark mode - My Feed */
[data-theme="dark"] .feed-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #581c87 100%);
}

[data-theme="dark"] .feed-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feed-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .feed-card-footer {
  background: var(--bg-tertiary);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .feed-section-title {
  color: var(--text-primary);
}

[data-theme="dark"] .feed-tool-name {
  color: var(--text-primary);
}

[data-theme="dark"] .feed-post-meta {
  color: var(--text-muted);
}

[data-theme="dark"] .feed-meta-dot {
  background: var(--text-muted);
}

[data-theme="dark"] .feed-category-pill {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

[data-theme="dark"] .feed-post-title a {
  color: var(--text-primary);
}

[data-theme="dark"] .feed-post-title a:hover {
  color: #a5b4fc;
}

[data-theme="dark"] .feed-post-excerpt {
  color: var(--text-secondary);
}

[data-theme="dark"] .feed-action-btn {
  color: var(--text-muted);
}

[data-theme="dark"] .feed-action-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

[data-theme="dark"] .feed-sidebar-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feed-sidebar-header {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .feed-tool-link {
  color: var(--text-secondary);
}

[data-theme="dark"] .feed-tool-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
}

[data-theme="dark"] .feed-tool-dot-grok {
  background: #9ca3af;
}

[data-theme="dark"] .feed-manage-btn {
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .feed-manage-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: #a5b4fc;
  color: #a5b4fc;
}

[data-theme="dark"] .feed-action-link {
  color: var(--text-secondary);
}

[data-theme="dark"] .feed-action-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
}

[data-theme="dark"] .feed-action-link i {
  color: var(--text-muted);
}

[data-theme="dark"] .feed-action-link:hover i {
  color: #a5b4fc;
}

[data-theme="dark"] .feed-stat-label {
  color: var(--text-muted);
}

[data-theme="dark"] .feed-stat-divider {
  background: var(--border-color);
}

[data-theme="dark"] .feed-explore-link:hover {
  background: rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .feed-explore-title {
  color: var(--text-primary);
}

[data-theme="dark"] .feed-explore-desc {
  color: var(--text-muted);
}

[data-theme="dark"] .feed-tip-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(253, 230, 138, 0.1));
  border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .feed-tip-title {
  color: #fbbf24;
}

[data-theme="dark"] .feed-tip-text {
  color: var(--text-secondary);
}

[data-theme="dark"] .feed-tip-link {
  color: #fbbf24;
}

[data-theme="dark"] .feed-tip-link:hover {
  color: #fcd34d;
}

[data-theme="dark"] .feed-empty-state h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .feed-empty-state p {
  color: var(--text-secondary);
}

[data-theme="dark"] .feed-empty-icon {
  color: var(--text-muted);
}

[data-theme="dark"] .feed-mobile-chip {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

[data-theme="dark"] .feed-mobile-chip:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

[data-theme="dark"] .feed-card-accent-grok {
  background: linear-gradient(90deg, #6b7280, #9ca3af);
}

[data-theme="dark"] .feed-tool-avatar-grok {
  background: linear-gradient(135deg, #4b5563, #6b7280);
}

/* Dark mode toggle button */
.theme-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem;
  margin: 0 0.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle i {
  font-size: 1.1rem;
}

/* ========== Cookie Consent Banner ========== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-color);
  color: #fff;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-consent {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-consent p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-consent .bi-cookie {
  color: #f59e0b;
}

/* ========== Notification Styles ========== */
.notification-badge {
  font-size: 0.65rem;
  padding: 0.2em 0.45em;
  transform: translate(-50%, -25%) !important;
}

.notification-dropdown {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  border: 1px solid #e5e7eb;
}

.notification-dropdown .dropdown-header {
  font-weight: 600;
  background: #f9fafb;
  color: #374151;
}

.notification-dropdown .dropdown-divider {
  border-color: #e5e7eb;
}

.notification-dropdown-title {
  color: #1f2937;
  font-weight: 600;
}

.notification-dropdown-link {
  color: #4f46e5;
  text-decoration: none;
}

.notification-dropdown-link:hover {
  color: #4338ca;
  text-decoration: underline;
}

.notification-item {
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  color: #374151;
}

.notification-item:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.notification-item.unread {
  background: rgba(79, 70, 229, 0.08);
  border-left-color: var(--primary-color);
}

.notification-item .notification-title {
  color: #1f2937;
}

.notification-item .notification-message,
.notification-item .notification-time {
  color: #6b7280;
}

.notification-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.notification-title {
  font-size: 0.9rem;
  line-height: 1.3;
}

.notification-message {
  font-size: 0.8rem;
  opacity: 0.8;
}

.notification-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

.notification-dot {
  flex-shrink: 0;
  margin-left: 0.5rem;
  margin-top: 0.25rem;
}

/* Notification page styles */
.notification-card {
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  background-color: #fff;
}

.notification-card.unread {
  border-left-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.08);
}

.notification-card:not(.unread) {
  opacity: 0.65;
}

.notification-card:hover {
  box-shadow: var(--shadow);
  opacity: 1;
}

.notification-card h6 {
  color: #1f2937;
}

.notification-card p {
  color: #6b7280;
}

/* Dark mode notification styles */
[data-theme="dark"] .notification-card {
  background-color: var(--bg-secondary);
}

[data-theme="dark"] .notification-card.unread {
  background: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .notification-card h6 {
  color: #f3f4f6;
}

[data-theme="dark"] .notification-card p {
  color: #cbd5e1;
}

/* Notifications page */
.notifications-page {
  background-color: #f3f4f6;
}

.notification-page-title {
  color: #1f2937;
}

[data-theme="dark"] .notifications-page {
  background-color: var(--bg-primary);
}

[data-theme="dark"] .notification-page-title {
  color: #f3f4f6;
}

/* ========== Touch-Friendly Enhancements ========== */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .btn-sm {
    min-height: 36px;
    padding: 0.5rem 0.875rem;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .form-control,
  .form-select {
    min-height: 44px;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
  }

  .list-group-item {
    padding: 0.875rem 1rem;
  }

  .page-link {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Remove hover effects on touch */
  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  /* Better tap feedback */
  .btn:active {
    transform: scale(0.98);
  }

  .card:active {
    transform: scale(0.99);
  }
}

/* ========== Safe Area Support (iPhone X+, etc.) ========== */
@supports (padding: env(safe-area-inset-bottom)) {
  .cookie-consent {
    padding-bottom: env(safe-area-inset-bottom);
  }

  footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .navbar {
    padding-top: env(safe-area-inset-top);
  }
}

/* ========== Smooth Scrolling ========== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ========== Focus States for Accessibility ========== */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ========== Width Utilities for Responsive ========== */
@media (min-width: 576px) {
  .w-sm-auto {
    width: auto !important;
  }
}

/* ========== Feed Page ========== */

/* Hero Section */
.feed-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 50%, #ec4899 100%);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.feed-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.feed-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.feed-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.feed-hero-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feed-hero-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.feed-hero-avatar span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.feed-hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.feed-hero-subtitle {
  color: rgba(255,255,255,0.8);
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.feed-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #fff;
  color: var(--primary-color);
}

.feed-hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: var(--primary-dark);
}

.feed-hero-btn-outline {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.feed-hero-btn-outline:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.feed-hero-actions {
  display: flex;
  gap: 0.75rem;
}

/* Mobile Quick Bar */
.feed-mobile-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.feed-mobile-bar::-webkit-scrollbar {
  display: none;
}

.feed-mobile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.feed-mobile-chip:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Section Title */
.feed-section-title {
  font-weight: 700;
  color: var(--dark-color);
}

.feed-post-count {
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: #fff;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Feed Cards */
.feed-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.06);
}

.feed-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(79, 70, 229, 0.12);
}

/* Accent Bars */
.feed-card-accent {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-color), #7c3aed);
}

.feed-card-accent-chatgpt { background: linear-gradient(90deg, #10a37f, #1a7f64); }
.feed-card-accent-claude { background: linear-gradient(90deg, #d97757, #c4613f); }
.feed-card-accent-gemini { background: linear-gradient(90deg, #4285f4, #34a853, #ea4335); }
.feed-card-accent-grok { background: linear-gradient(90deg, #1d1d1f, #555); }
.feed-card-accent-llama { background: linear-gradient(90deg, #764abc, #5e35a1); }
.feed-card-accent-jasper { background: linear-gradient(90deg, #ff5733, #ff8f1c); }

/* Card Sections */
.feed-card-header {
  padding: 1rem 1.25rem 0.75rem;
}

.feed-card-body {
  padding: 0 1.25rem 1rem;
}

.feed-card-footer {
  padding: 0.75rem 1.25rem;
  background: #fafbfc;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tool Avatars */
.feed-tool-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
}

.feed-tool-avatar-chatgpt { background: linear-gradient(135deg, #10a37f, #0d8c6c); }
.feed-tool-avatar-claude { background: linear-gradient(135deg, #d97757, #c4613f); }
.feed-tool-avatar-gemini { background: linear-gradient(135deg, #4285f4, #1967d2); }
.feed-tool-avatar-grok { background: linear-gradient(135deg, #1d1d1f, #3a3a3c); }
.feed-tool-avatar-llama { background: linear-gradient(135deg, #764abc, #5e35a1); }
.feed-tool-avatar-jasper { background: linear-gradient(135deg, #ff5733, #e04420); }

/* Tool Name & Meta */
.feed-tool-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.feed-tool-name:hover {
  color: var(--primary-color);
}

.feed-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--secondary-color);
  margin-top: 2px;
}

.feed-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--secondary-color);
}

/* Category Pill */
.feed-category-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(124,58,237,0.08));
  color: var(--primary-color);
  white-space: nowrap;
}

/* Post Title */
.feed-post-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.feed-post-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.feed-post-title a:hover {
  color: var(--primary-color);
}

/* Badges */
.feed-badge-new {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.feed-badge-premium {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Post Excerpt */
.feed-post-excerpt {
  color: var(--secondary-color);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* Footer Actions */
.feed-actions-left {
  display: flex;
  gap: 0.25rem;
}

.feed-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feed-action-btn:hover {
  background: rgba(79,70,229,0.08);
  color: var(--primary-color);
}

.feed-read-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.feed-read-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
  color: #fff;
}

/* Animation */
.feed-animate {
  animation: feedSlideUp 0.5s ease forwards;
  opacity: 0;
}

@keyframes feedSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar */
.feed-sidebar-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.feed-sidebar-header {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-color);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fafbfc;
}

.feed-sidebar-body {
  padding: 0.75rem 1rem;
}

/* Tool List in Sidebar */
.feed-tool-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.feed-tool-list li {
  margin-bottom: 0.35rem;
}

.feed-tool-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-color);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.feed-tool-link:hover {
  background: rgba(79,70,229,0.06);
  color: var(--primary-color);
}

.feed-tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary-color);
}

.feed-tool-dot-chatgpt { background: #10a37f; }
.feed-tool-dot-claude { background: #d97757; }
.feed-tool-dot-gemini { background: #4285f4; }
.feed-tool-dot-grok { background: #1d1d1f; }
.feed-tool-dot-llama { background: #764abc; }
.feed-tool-dot-jasper { background: #ff5733; }

.feed-manage-btn {
  display: block;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  border: 1px dashed rgba(79,70,229,0.3);
  transition: all 0.2s ease;
}

.feed-manage-btn:hover {
  background: rgba(79,70,229,0.06);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.feed-empty-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.5rem;
}

/* Quick Action Links */
.feed-action-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark-color);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.feed-action-link:hover {
  background: rgba(79,70,229,0.06);
  color: var(--primary-color);
}

.feed-action-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--secondary-color);
}

.feed-action-link:hover i {
  color: var(--primary-color);
}

/* Stats */
.feed-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.feed-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feed-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.feed-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(0,0,0,0.1);
}

/* Explore Links */
.feed-explore-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.feed-explore-link:hover {
  background: rgba(79,70,229,0.04);
}

.feed-explore-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feed-explore-title {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-color);
}

.feed-explore-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--secondary-color);
}

/* Pro Tip Card */
.feed-tip-card {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  border: 1px solid rgba(245,158,11,0.2);
}

.feed-tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #d97706;
  margin-bottom: 0.75rem;
}

.feed-tip-title {
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.4rem;
}

.feed-tip-text {
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.feed-tip-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d97706;
  text-decoration: none;
  transition: color 0.2s ease;
}

.feed-tip-link:hover {
  color: #92400e;
}

/* Empty State */
.feed-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.feed-empty-graphic {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 2rem;
}

.feed-empty-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed;
  animation: feedPulse 3s ease-in-out infinite;
}

.feed-empty-circle-1 {
  width: 140px;
  height: 140px;
  top: 0;
  left: 0;
  border-color: rgba(79,70,229,0.15);
  animation-delay: 0s;
}

.feed-empty-circle-2 {
  width: 100px;
  height: 100px;
  top: 20px;
  left: 20px;
  border-color: rgba(124,58,237,0.2);
  animation-delay: 0.5s;
}

.feed-empty-circle-3 {
  width: 60px;
  height: 60px;
  top: 40px;
  left: 40px;
  border-color: rgba(236,72,153,0.25);
  animation-delay: 1s;
}

.feed-empty-main-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: var(--primary-color);
}

.feed-empty-state h3 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.feed-empty-state p {
  color: var(--secondary-color);
  max-width: 320px;
  margin: 0 auto 1.5rem;
}

@keyframes feedPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}

/* Feed Mobile Responsive Overrides */
@media (max-width: 767.98px) {
  .feed-hero {
    padding: 1.25rem 0;
  }

  .feed-hero-avatar {
    width: 44px;
    height: 44px;
  }

  .feed-hero-avatar span {
    font-size: 1.2rem;
  }

  .feed-hero-title {
    font-size: 1.15rem;
  }

  .feed-hero-subtitle {
    font-size: 0.8rem;
  }

  .feed-card-header {
    padding: 0.75rem 1rem 0.5rem;
  }

  .feed-card-body {
    padding: 0 1rem 0.75rem;
  }

  .feed-card-footer {
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .feed-actions-left {
    flex-wrap: wrap;
  }

  .feed-tool-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .feed-post-title {
    font-size: 1rem;
  }

  .feed-action-btn span {
    display: none;
  }

  .feed-category-pill {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ========== Print Styles ========== */
@media print {
  .navbar,
  footer,
  .btn,
  form,
  .cookie-consent {
    display: none !important;
  }

  .post-content {
    font-size: 12pt;
  }
}
