/**
 * Arosoft Technology - Main Styles
 * Core styles for the main website
 * Version: 1.0.0
 */

/* ==============================
 * CSS Reset & Base Styles
 * ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-hero);
  min-height: 100vh;
}

/* ==============================
 * Typography
 * ============================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #ffffff;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff6bb3;
}

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

.section {
  padding: 4rem 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==============================
 * Navigation
 * ============================== */
.navbar {
  background: rgba(15, 23, 32, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #d62b91;
}

/* Unified Navbar Styles - Applied to ALL pages */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 32, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.25rem 1.5rem;
}

.navbar .max-w-6xl {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0; /* Remove default gap, use manual spacing */
}

.navbar img {
  height: 4rem;
  flex-shrink: 0;
}

/* Desktop Navigation - Always visible on desktop */
@media (min-width: 768px) {
  .navbar .hidden.md\\:flex,
  .navbar [class*="hidden"][class*="md:flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem; /* Space after logo */
    margin-right: 1.5rem; /* Space before translation */
  }

  .navbar .hidden.md\\:block,
  .navbar [class*="hidden"][class*="md:block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .navbar .md\\:hidden,
  .navbar [class*="md:hidden"] {
    display: none !important;
  }

  /* Ensure nav links are always visible on desktop */
  .navbar .nav-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
  }

  .navbar .nav-link:hover {
    color: #d62b91 !important;
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar img {
    height: 3rem;
  }

  .navbar .hidden.md\\:flex,
  .navbar .hidden.md\\:block {
    display: none !important;
  }

  .navbar .md\\:hidden {
    display: flex !important;
    margin-left: 1.5rem; /* Space after logo on mobile */
  }

  /* Ensure proper spacing on mobile */
  .navbar .max-w-6xl {
    justify-content: flex-start !important;
    align-items: center;
  }
}

/* Mobile Navigation Styles */
.mobile-nav-link {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: #d62b91;
  background-color: rgba(214, 43, 145, 0.1);
  padding-left: 8px;
  transition: all 0.3s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

#mobile-menu.show {
  max-height: 400px;
}

/* Hamburger Button Animation */
#mobile-menu-btn {
  transition: transform 0.3s ease;
}

#mobile-menu-btn:hover {
  transform: scale(1.1);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar .max-w-6xl {
    padding: 0;
  }

  .navbar img {
    height: 3rem; /* Smaller logo on mobile */
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.25rem 0.75rem;
  }

  .navbar img {
    height: 2.5rem; /* Even smaller logo on very small screens */
  }
}

/* ==============================
 * Buttons
 * ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22, 119, 255, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-primary);
}

.btn-secondary:hover {
  background-color: rgba(22, 119, 255, 0.1);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* ==============================
 * Cards
 * ============================== */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.card-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

/* ==============================
 * Hero Section
 * ============================== */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Removed hero::before pseudo-element that was causing visual interference */

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
 * Responsive Design
 * ============================== */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero {
    padding: 6rem 0 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* ==============================
 * Direct Content Styles (No Container Wrappers)
 * ============================== */
    padding: 0;
    margin: 0;
}

.article-body-scroll {
    max-height: 400px; /* Set a max height to enable scrolling */
    overflow-y: auto !important; /* Enable vertical scrolling */
    padding: 1rem;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: block !important;
    position: relative;
    width: 100%;
    min-height: auto;
}

/* Enhanced scrollbar for the content area */
.article-body-scroll::-webkit-scrollbar {
    width: 12px;
}

.article-body-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.article-body-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 6px;
    border: 2px solid rgba(15, 23, 42, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.article-body-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Documentation content - no container styling, with scroll */
.documentation-content-simple {
    height: 100%;
    overflow-y: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    padding: 1rem;
    margin: 0;
}

/* Custom scrollbar for documentation content */
.documentation-content-simple::-webkit-scrollbar {
    width: 6px;
}

.documentation-content-simple::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.documentation-content-simple::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 3px;
}

.documentation-content-simple::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Article header */
.article-header {
    background: linear-gradient(135deg, var(--brand-blue, #0066CC) 0%, var(--blue-light, #4DA8FF) 100%);
    color: white;
    padding: 1.5rem;
    margin: 0;
    border-bottom: none;
}

.article-header h2 {
    font-size: var(--doc-h2-size);
    font-weight: var(--doc-h2-weight);
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-header h2 i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.article-meta {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generated-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.generated-time i {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Typography hierarchy for generated content */
.article-body h1,
.documentation-content h1,
.documentation-content-simple h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 2rem 0 1.5rem 0;
    padding: 1rem 0 0.5rem 1rem;
    border-left: 4px solid #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.article-body h2,
.documentation-content h2,
.documentation-content-simple h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #e2e8f0 !important;
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem 0 0.5rem 1rem;
    border-left: 3px solid #60a5fa;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.1) 0%, transparent 100%);
    cursor: pointer;
    transition: var(--doc-transition);
    position: relative;
    border-radius: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.article-body h2:hover,
.documentation-content h2:hover,
.documentation-content-simple h2:hover {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.15) 0%, transparent 100%);
    transform: translateX(2px);
}

.article-body h3,
.documentation-content h3,
.documentation-content-simple h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #cbd5e1 !important;
    margin: 1.25rem 0 0.75rem 0;
    padding: 0.5rem 0 0.25rem 0.75rem;
    border-left: 2px solid #60a5fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.article-body h3:hover,
.documentation-content h3:hover,
.documentation-content-simple h3:hover {
    color: var(--doc-hover-color);
    transform: translateX(2px);
}

.article-body h4,
.documentation-content h4,
.documentation-content-simple h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #94a3b8 !important;
    margin: 1rem 0 0.5rem 0;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(59, 130, 246, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.article-body p,
.documentation-content p,
.documentation-content-simple p {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 1rem 0;
    line-height: 1.7;
    padding: 0.25rem 0;
    background: transparent !important;
    text-align: justify;
}

/* List styling - Dark Theme with proper spacing */
.article-body ul,
.article-body ol,
.documentation-content ul,
.documentation-content ol,
.documentation-content-simple ul,
.documentation-content-simple ol {
    margin: 1rem 0;
    padding: 1rem 1rem 1rem 3rem;
    color: rgba(255, 255, 255, 0.9) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%) !important;
    border-radius: 8px;
    border-left: 3px solid #60a5fa;
    backdrop-filter: blur(5px);
    list-style-position: outside;
    margin-left: 1rem;
}

.article-body li,
.documentation-content li,
.documentation-content-simple li {
    margin: 0.5rem 0;
    line-height: 1.7;
    font-size: 1rem;
    padding: 0.25rem 0 0.25rem 0.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-left: 0;
}

.article-body ul li::marker,
.documentation-content ul li::marker,
.documentation-content-simple ul li::marker {
    color: #3b82f6 !important;
    font-weight: bold;
    font-size: 1.2rem;
}

.article-body ol li::marker,
.documentation-content ol li::marker,
.documentation-content-simple ol li::marker {
    color: #3b82f6 !important;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Nested lists */
.article-body ul ul,
.article-body ol ol,
.documentation-content ul ul,
.documentation-content ol ol,
.documentation-content-simple ul ul,
.documentation-content-simple ol ol {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

/* Code blocks and inline code */
.article-body code,
.documentation-content code,
.documentation-content-simple code {
    background: var(--doc-code-bg);
    border: 1px solid var(--doc-code-border);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-family: var(--doc-code-font);
    font-size: 0.9rem;
    color: var(--doc-code-color);
}

.article-body pre,
.documentation-content pre,
.documentation-content-simple pre {
    background: var(--doc-code-bg);
    border: 1px solid var(--doc-code-border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.article-body pre code,
.documentation-content pre code,
.documentation-content-simple pre code {
    background: none;
    border: none;
    padding: 0;
}

/* Collapsible sections */
.collapsible-trigger {
    position: relative;
    user-select: none;
}

.collapsible-toggle {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: var(--doc-transition);
    margin-left: 0.5rem;
    display: inline-block;
}

.collapsible-trigger:hover .collapsible-toggle {
    color: var(--doc-hover-color);
}

/* Section separators and visual organization */
.article-body > *:not(:last-child),
.documentation-content > *:not(:last-child),
.documentation-content-simple > *:not(:last-child) {
    margin-bottom: var(--doc-subsection-spacing);
}

/* Major section dividers */
.article-body h2 + *,
.documentation-content h2 + *,
.documentation-content-simple h2 + * {
    margin-top: 1rem;
}

/* Keyword Tags Section */
.keyword-tags-section {
    margin-bottom: var(--doc-section-spacing);
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(15px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.keyword-tags-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.topic-tags-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0; /* Remove any unnecessary margin */
    padding: 0; /* Remove any unnecessary padding */
}

.topic-tags-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0; /* Remove unnecessary margin */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.topic-tags-title::before {
    content: '🏷️';
    font-size: 1.2rem;
    margin-right: 0.25rem;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Keyword Tag Styling */
.keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 12px rgba(59, 130, 246, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.keyword-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.keyword-tag:hover::before {
    left: 100%;
}

.keyword-tag:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 20px rgba(59, 130, 246, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.keyword-tag .tag-text {
    color: white;
    font-weight: 500;
}

.keyword-tag .remove-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.keyword-tag .remove-tag:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Different colors for different categories */
.keyword-tag[data-category="data-analytics"] {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.keyword-tag[data-category="machine-learning"] {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.keyword-tag[data-category="cloud-infrastructure"] {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.keyword-tag[data-category="business-strategy"] {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* Enhanced readability for long content */
.article-body.doc-compact p,
.documentation-content.doc-compact p,
.documentation-content-simple.doc-compact p {
    margin-bottom: 0.75rem;
}

.article-body.doc-compact h2,
.documentation-content.doc-compact h2,
.documentation-content-simple.doc-compact h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body.doc-compact h3,
.documentation-content.doc-compact h3,
.documentation-content-simple.doc-compact h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Collapsible Sections */
.collapsible-trigger {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 2rem;
}

.collapsible-trigger:hover {
    color: #3b82f6 !important;
    transform: translateX(4px);
}

.collapsible-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: #3b82f6;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.collapsible-trigger:hover .collapsible-toggle {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.collapsible-content {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 1rem 0;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin: 0;
}

/* Tag Removal Notification */
.tag-removal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.tag-removal-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.notification-content i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* No Tags Message */
.no-tags-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.5s ease-out;
}

.no-tags-message i {
    color: #3b82f6;
    font-size: 1.1rem;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Focus states for accessibility */
.collapsible-trigger:focus,
.info-icon:focus {
    outline: 2px solid var(--doc-focus-color);
    outline-offset: 2px;
}

/* Enhanced Export PDF button styling */
.btn-secondary-simple {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    cursor: not-allowed;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-secondary-simple.active {
    opacity: 1;
    cursor: pointer;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.btn-secondary-simple.active::before {
    left: 100%;
}

.btn-secondary-simple.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.7);
}

/* Enhanced placeholder styling with dark theme - no inner border */
.placeholder-content-simple {
    text-align: center;
    padding: 3rem 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    overflow: hidden;
}

/* Removed placeholder overlay - no longer needed */

.placeholder-content-simple {
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.placeholder-content-simple h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.placeholder-content-simple p {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.placeholder-icon-simple {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doc-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.feature-list-simple {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: transparent;
    border-radius: 8px;
    border: none;
    backdrop-filter: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Simplified feature items - no hover effects needed */

.feature-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.feature-icon-simple {
    font-size: 1.3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Duplicate styles removed - using enhanced versions above */

.regenerate-btn {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.regenerate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(56, 161, 105, 0.3);
}

.regenerate-btn i {
    font-size: 0.8rem;
}

/* Removed duplicate .article-content - handled by earlier definition */

.article-header {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #581c87 100%);
    color: white;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    pointer-events: none;
}

.article-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-header h2 i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.generated-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Removed duplicate .article-body padding - handled by .article-body-scroll */

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    color: #2d3748;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.article-body h1 { font-size: 1.8rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.3rem; }
.article-body h4 { font-size: 1.1rem; }

.article-body p {
    margin: 1rem 0;
    color: #4a5568;
    line-height: 1.7;
}

.article-body ul,
.article-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    margin: 0.5rem 0;
    color: #4a5568;
    line-height: 1.6;
}

.insight-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f7fafc;
    border-left: 4px solid #4299e1;
    border-radius: 0 8px 8px 0;
}

.insight-section h3 {
    margin: 0 0 1rem 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
}

.insight-section h3 i {
    color: #4299e1;
    margin-right: 0.5rem;
}

.insight-content {
    color: #4a5568;
}

.professional-list {
    margin: 0;
    padding-left: 1.5rem;
}

.professional-list li {
    margin: 0.8rem 0;
    line-height: 1.6;
}

/* ==============================
 * Loading Spinner Styles
 * ============================== */
.documentation-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(77, 151, 209, 0.2);
    border-top: 3px solid var(--brand-blue, #4D97D1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-text {
    animation: pulse 2s ease-in-out infinite;
    color: var(--text-secondary, rgba(255, 255, 255, 0.9));
    font-size: 1rem;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ==============================
 * Info Icon and Tooltip Styles
 * ============================== */
.section-header-simple {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.info-icon-container {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
    flex-shrink: 0;
}

.info-icon {
    color: var(--brand-blue, #4D97D1);
    font-size: 1.2rem;
    cursor: help;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.info-icon:hover {
    opacity: 1;
    color: var(--brand-blue-light, #5BA7E1);
    transform: scale(1.1);
}

/* Tooltip Styles */
.info-tooltip {
    position: absolute;
    top: -10px;
    right: 100%;
    margin-right: 10px;
    background: rgba(15, 23, 42, 0.98);
    border: none;
    border-radius: 12px;
    padding: 0;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99999;
    backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.info-icon-container:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content {
    padding: 1rem;
}

.tooltip-content h4 {
    color: var(--brand-blue, #4D97D1);
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.tooltip-content ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.tooltip-content li {
    color: var(--text-primary, rgba(255, 255, 255, 0.9));
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.tooltip-content li:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Documentation Content */
@media (max-width: 768px) {
    .documentation-content-simple {
        margin: 0;
    }

    .keyword-tags-section,
    .article-header {
        padding: 1rem;
    }

    .article-body-scroll {
        padding: 1rem;
    }

    .keyword-tags-container {
        gap: 0.3rem;
    }

    .keyword-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .article-header h2 {
        font-size: 1.3rem;
    }

    .insight-section {
        padding: 1rem;
    }

    /* Responsive design for documentation header */
    .section-header-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-icon-container {
        align-self: flex-end;
        margin-left: 0;
    }

    .article-content {
        padding: 1rem;
    }

    .feature-list-simple {
        gap: 0.75rem;
    }

    .feature-item-simple {
        padding: 0.75rem;
    }

    /* Mobile responsive for new elements */

    .keyword-tags-section {
        padding: 1rem;
    }

    .topic-tags {
        gap: 0.5rem;
    }

    .keyword-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .article-header {
        padding: 1rem;
    }

    .article-header h2 {
        font-size: 1.2rem;
    }

    .info-tooltip {
        right: 0;
        top: 100%;
        margin-right: 0;
        margin-top: 10px;
        min-width: 280px;
    }

    .info-icon-container:hover .info-tooltip {
        transform: translateY(0);
    }
}

/* Print styles for documentation */
@media print {
    .documentation-controls-simple,
    .info-icon-container,
    .keyword-tags-section {
        display: none !important;
    }

    .article-content {
        border: none;
        box-shadow: none;
        background: white;
        color: black;
    }

    .collapsible-toggle {
        display: none;
    }

    .article-body > *,
    .documentation-content > *,
    .documentation-content-simple > * {
        display: block !important;
    }

    .article-body h2,
    .documentation-content h2,
    .documentation-content-simple h2 {
        color: #333 !important;
        border-bottom-color: #ccc !important;
    }

    .article-body h3,
    .documentation-content h3,
    .documentation-content-simple h3 {
        color: #555 !important;
    }
}

/* ==============================
 * Enhanced Document Formatting Styles
 * ============================== */
.doc-heading-1 {
    font-size: 2rem;
    color: #1a202c;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #4299e1;
    font-weight: 700;
}

.doc-heading-2 {
    font-size: 1.6rem;
    color: #2d3748;
    margin: 1.8rem 0 1rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.doc-heading-3 {
    font-size: 1.3rem;
    color: #4a5568;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.doc-heading-4 {
    font-size: 1.1rem;
    color: #718096;
    margin: 1.2rem 0 0.6rem 0;
    font-weight: 600;
}

.doc-paragraph {
    margin: 1rem 0;
    line-height: 1.7;
    color: #4a5568;
    text-align: justify;
}

.doc-unordered-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: none;
}

.doc-ordered-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    counter-reset: doc-counter;
}

.doc-list-item {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.doc-list-item::before {
    content: "•";
    color: #4299e1;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.doc-numbered-item {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #4a5568;
    position: relative;
    padding-left: 2rem;
    counter-increment: doc-counter;
}

.doc-numbered-item::before {
    content: counter(doc-counter) ".";
    color: #4299e1;
    font-weight: bold;
    position: absolute;
    left: 0;
    min-width: 1.5rem;
}

.code-block {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.inline-code {
    background: #edf2f7;
    color: #e53e3e;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.doc-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #4299e1 0%, #e2e8f0 100%);
    margin: 2rem 0;
}

/* Enhanced link styling */
.article-body a {
    color: #4299e1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-body a:hover {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .doc-heading-1 {
        font-size: 1.6rem;
    }

    .doc-heading-2 {
        font-size: 1.4rem;
    }

    .doc-heading-3 {
        font-size: 1.2rem;
    }

    .doc-list-item,
    .doc-numbered-item {
        padding-left: 1.2rem;
    }

    .code-block {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}
