/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-primary: #00ff88;
    --accent-secondary: #0088ff;
    --accent-purple: #8855ff;
    --border-color: #333333;
    --border-light: #222222;
    --code-bg: #0d1117;
    --sidebar-width: 280px;
    --header-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 16px;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-content {
    padding: 2rem 1.5rem;
}

/* Logo styles */
.logo {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    background-clip: text;
    margin-bottom: 0.25rem;
    position: relative;
    display: inline-block;
    color: white;
}

.logo-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.9) 50%,
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 150%;
    }
}

.logo-subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    background: linear-gradient(135deg, #00ff99, #00b3ff, #9a00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInSubtitle 1.5s ease forwards;
    animation-delay: 0.5s; /* starts after PyTure */
}

@keyframes fadeInSubtitle {
    to {
        opacity: 1;
    }
}


.logo-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Back button */
.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.back-btn svg {
    width: 16px;
    height: 16px;
}

/* Navigation sections */
.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    font-weight: 500;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
    border-radius: 0 2px 2px 0;
}

/* Mobile styles */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: fixed;   /* was sticky */
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: var(--header-height);
}


/* Replace your current .mobile-title with this */
.mobile-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);   /* default white */
    /* IMPORTANT: no gradient, no text-fill here */
}

/* New: white text span */
.mobile-title-white {
    color: #fff;
    -webkit-text-fill-color: currentColor; /* ensures Safari/Chrome use the color */
}

/* New: gradient text span */
.mobile-title-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* Hamburger menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    margin-bottom: 4px;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay for mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.content-container {
    max-width: 800px;
    padding: 3rem 2rem;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Page titles */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Content blocks */
.content-block {
    margin-bottom: 3rem;
}

.content-block h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text-primary);
}

.content-block h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: var(--accent-primary);
}

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

.content-block a {
    color: var(--accent-primary);
    text-decoration: none;
}

.content-block a:hover {
    text-decoration: underline;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Code blocks */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-language {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: var(--accent-primary);
    background: var(--bg-secondary);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.code-block pre {
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.code-block code {
   
    background: none;
    padding: 0;
    font-size: inherit;
}
.load{
     color: var(--accent-primary);
     background: none;
    padding: 0;
    font-size: inherit;
}

.code-block.small {
    margin: 1rem 0;
}

.code-block.small pre {
    padding: 0.75rem;
    font-size: 0.8125rem;
}

/* Inline code */
:not(pre) > code {
    background: var(--bg-tertiary);
   
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Callouts */
.callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid;
}

.callout-info {
    background: rgba(0, 136, 255, 0.1);
    border-left-color: var(--accent-secondary);
}

.callout-success {
    background: rgba(0, 255, 136, 0.1);
    border-left-color: var(--accent-primary);
}

.callout-warning {
    background: rgba(255, 136, 0, 0.1);
    border-left-color: #ff8800;
}

.callout-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.callout-content {
    flex: 1;
}

.callout-content strong {
    color: var(--text-primary);
}

.callout-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* Method list */
.method-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.method-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.method-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.method-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.method-signature {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--accent-secondary);
    border: 1px solid var(--border-color);
}

.method-example h4 {
    margin-bottom: 0.75rem;
}

/* Format grid */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.format-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.format-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.format-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.format-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.format-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* FAQ styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Contribute grid */
.contribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contribute-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.contribute-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.contribute-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contribute-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contribute-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.contribute-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.contribute-link:hover {
    text-decoration: underline;
}

/* Section styles */
.doc-section {
    margin-bottom: 4rem;
}

/* Responsive design */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-header {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: var(--header-height);
    }
    
    .content-container {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    .feature-grid,
    .format-grid,
    .contribute-grid {
        grid-template-columns: 1fr;
    }
    
    .code-block pre {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .format-card,
    .contribute-card,
    .method-item,
    .faq-item {
        padding: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}




/* Animation for content loading */
.doc-section {
    animation: fadeIn 0.6s ease-out;
}

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


/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-links, .footer-social {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a, .footer-social a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
}

#installation .requirements-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1rem 0 2rem;
  display: grid;
  gap: 1rem;
}

#installation .req-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  color: #e5e5e5;
}

#installation .req-item strong {
  color: #38bdf8;
}

#installation .req-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* Code Block */
.code-block {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: #9ca3af;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-language {
  font-weight: 600;
  color: #38bdf8; /* cyan highlight */
  text-transform: uppercase;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
  font-family: 'Fira Code', monospace;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.copy-btn:hover {
  color: #ffffff;
}

.note-box {
    background: rgba(0, 255, 150, 0.1); /* neon greenish glow */
    border-left: 4px solid var(--accent-primary); /* matches your theme */
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.note-box code {
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}
.table-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  margin: 16px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  overflow-x: auto;        /* 👈 allow horizontal scroll */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.table-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-primary, #e5e7eb);
}

.doc-table {
  width: 100%;
  min-width: 600px;        /* 👈 ensures structure but allows scroll */
  border-collapse: collapse;
  font-size: 0.9rem;
}

.doc-table thead th {
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  background: rgba(127, 90, 240, 0.12); /* accent wash */
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.doc-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary, #cbd5e1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-table tbody tr:hover {
  background: rgba(127, 90, 240, 0.08);
}

.table-footnote {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-tertiary, #9ca3af);
}

.table-wrap code {
  background: rgba(0,0,0,0.25);
  padding: 2px 6px;
  border-radius: 6px;
}
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Selection Styling */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  background: #1a1a1a;
  color: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.styled-table thead {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
}

.styled-table th,
.styled-table td {
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.styled-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* subtle feedback for copy button */
.copy-btn {
  transition: transform .18s ease, opacity .18s ease;
}

.copy-btn.tick-pop {
  transform: scale(1.08);
}

.disabled-link {
  color: gray;
  cursor: not-allowed;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.8;
  margin-right: 8px;
}
.disabled-link:hover{
    text-decoration: none !important;
}

.inline-tooltip {
  font-size: 13px;
  color: #aaaaaa;
  font-style: italic;
  opacity: 0.9;
}
.inline-tooltip {
  display: none;
}

.disabled-link:hover + .inline-tooltip {
  display: inline;
}
