/* css/styles.css */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    color: #1f2937;
}

.highlight-heading {
    background: #e5e7eb;
    padding: 0.5rem 1rem;
    border-left: 4px solid #1f2937;
    margin: 1.5rem 0 1rem;
    border-radius: 4px;
}
.highlight-heading h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
}
p {
    margin: 1.5rem 0;
    line-height: 1.6;
}
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}
th, td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    text-align: left;
}
th {
    background: #f3f4f6;
    font-weight: 600;
}



/* Ensure mobile responsiveness */
@media (max-width: 767px) {
    p {
        margin: 1.2rem 0; /* Slightly smaller margin on mobile for compactness */
    }
    
    .highlight-heading h2 {
        font-size: 1.4rem; /* Adjust for mobile */
    }
}

.sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: -250px;
    height: 100%;
    background-color: #1f2937;
    color: #ffffff;
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
}

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

.nav-list li {
    padding: 0.5rem 1rem;
}

.nav-list a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
}

.nav-list a:hover {
    color: #ffffff;
    background-color: #374151;
}

.nav-list .part {
    font-weight: 600;
    color: #9ca3af;
    padding: 1rem;
}

.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: #1f2937;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 1001;
    border-radius: 0.25rem;
}

.content {
    margin-left: 0;
    padding: 1rem;
    transition: margin-left 0.3s ease;
}

.content.shift {
    margin-left: 250px;
}

main {
    max-width: 800px;
    margin: 0 auto;
}

/* Top Banner Styles */
.top-banner {
    background: linear-gradient(90deg, #1f2937, #4b5563);
    color: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.top-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
}

.top-banner .banner-subtitle {
    font-size: 1.1rem;
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

/* Footer Styles */
.site-footer {
    margin-top: 3rem;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

.site-footer p {
    margin: 0;
}

.footer-link {
    color: #1f2937;
    text-decoration: none;
}

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

/* Existing chapter styles */
h1, h2, h3, h4 {
    font-weight: 600;
}

h2 { 
    font-size: 1.5rem; 
    margin-top: 2rem; 
}

p { 
    margin: 1rem 0; 
    line-height: 1.6; 
}

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

.quote { 
    background: #e5e7eb; 
    padding: 1rem; 
    border-left: 4px solid #1f2937; 
    margin: 1rem 0; 
}

.assumption { 
    background: #f3f4f6; 
    padding: 1rem; 
    margin: 1rem 0; 
}

.chapter-nav { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 2rem; 
}

.nav-link { 
    color: #1f2937; 
    text-decoration: none; 
    font-weight: 600; 
}

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

.part-title {
    cursor: pointer;
    font-weight: bold;
    display: block;
    padding: 0.5rem 0;
}

.chapter-sublist {
    margin-left: 1rem;
    list-style-type: none;
    padding-left: 0;
}

.chapter-sublist li {
    margin: 0.25rem 0;
}

/* Container for top-right buttons */
.top-buttons {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.75rem;
  z-index: 1001;
}

/* Shared base styles for top buttons */
.top-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  text-decoration: none;
  white-space: nowrap;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

/* Specific styles */
.support-button {
  background-color: #ef4444;
}

.support-button:hover {
  background-color: #dc2626;
}

.signup-button {
  background-color: #10b981;
}

.signup-button:hover {
  background-color: #059669;
}




/* PayPal Amount Buttons */
.paypal-amount-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.amount-btn {
    background-color: #0070ba;
    color: white;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.amount-btn:hover {
    background-color: #005a94;
    transform: translateY(-1px);
}

.amount-btn.active-amount {
    background-color: #003087;
    border-color: #0070ba;
}

/* PayPal Custom Amount Input */
#paypal-custom-amount {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    margin: 0.5rem 0;
    box-sizing: border-box;
}

#paypal-custom-amount:focus {
    outline: none;
    border-color: #0070ba;
    box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.1);
}

/* PayPal Button Container */
#paypal-button-container {
    margin-top: 1rem;
    min-height: 45px;
}

/* Stripe Buttons List */
.stripe-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
    list-style: none;
    padding: 0;
}

/* Payment Button Base Styles */
.payment-btn {
    background-color: #635bff;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.payment-btn:hover {
    background-color: #5145e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(99, 91, 255, 0.2);
}

/* Crypto addresses with icons */
.support-card i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Warning/Notice Styling */
.support-card h2 {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #fef2f2;
    border-left: 4px solid #dc2626;
    border-radius: 4px;
}

.right-align-next {
    text-align: right;
    margin-top: 2rem;
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .sidebar {
        left: 0;
    }
    .content {
        margin-left: 250px;
    }
    .menu-toggle {
        display: none; /* Hidden by default */
    }
    
    /* Show menu toggle when sidebar is closed */
    .sidebar.closed ~ .menu-toggle {
        display: block;
    }
    
    .support-button {
        top: 1rem;
        right: 1rem;
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .support-card {
        padding: 1.25rem;
    }

    .support-card h3 {
        font-size: 1.35rem;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .content {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .top-banner {
        padding: 1.5rem 1rem;
    }
    
    .top-banner h1 {
        font-size: 1.75rem;
    }
    
    .top-banner .banner-subtitle {
        font-size: 0.9rem;
    }
    
    .site-footer {
        font-size: 0.75rem;
        padding: 0.5rem 0;
        margin-top: 2.5rem;
    }
    
    .sidebar-header h2 {
        font-size: 1rem;
        padding-left: 3.4rem;
        line-height: 1.2;
        flex: 1;
    }
    
    .close-btn {
        margin-left: 0.25rem;
    }

    .support-button {
        top: 1rem;
        right: 1rem;
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }

    .support-options {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .support-card {
        padding: 1rem;
        margin: 0;
        font-size: 0.9rem;
    }

    .support-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .support-card p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .support-card strong {
        min-width: 3rem;
        font-size: 0.85rem;
    }

    .paypal-amount-buttons,
    .stripe-buttons {
        gap: 0.5rem;
    }

    .amount-btn,
    .payment-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    #paypal-custom-amount {
        padding: 10px;
        font-size: 0.9rem;
    }

    .support-card h2 {
        font-size: 0.95rem;
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }

    /* Crypto addresses wrap better on mobile */
    .support-card p {
        word-break: break-all;
        font-size: 0.8rem;
    }

    .support-card i {
        font-size: 1rem;
    }
}

.payment-test-notice {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
}

.assumption-box {
    background-color: #f3f4f6;
    border-left: 4px solid #1f2937;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
}

.assumption-box h2 {
    margin-top: 0;
    color: #1f2937;
    font-size: 1.3rem;
}

.assumption-note {
    font-style: italic;
    color: #4b5563;
    margin-top: 1rem;
    line-height: 1.6;
}

.copyright-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.copyright-content h2 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: #333;
}

.copyright-content ul {
  margin: 1em 0;
  padding-left: 2em;
}

.copyright-content li {
  margin: 0.5em 0;
}

.copyright-content strong {
  font-weight: 600;
}

.quote {
  max-width: 700px;
  margin: 3em auto;
}

.quote blockquote {
  margin: 2.5em 0;
  padding: 1.5em 2em;
  border-left: 4px solid #333;
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.6;
}

.quote blockquote p {
  margin: 0 0 1em 0;
}

.quote blockquote footer {
  font-style: normal;
  text-align: right;
  font-weight: 600;
  margin-top: 1em;
}

.toc-content {
  max-width: 800px;
  margin: 2em auto;
  line-height: 1.8;
}

.toc-content h2 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-size: 1.3em;
  color: #333;
  border-bottom: 2px solid #333;
  padding-bottom: 0.3em;
}

.toc-content h2:first-of-type {
  margin-top: 1em;
}

.toc-content ul {
  list-style: none;
  padding-left: 1em;
  margin: 0.5em 0 1.5em 0;
}

.toc-content li {
  margin: 0.4em 0;
}

.toc-content a {
  text-decoration: none;
  color: #0066cc;
  transition: color 0.2s;
}

.toc-content a:hover {
  color: #003d7a;
  text-decoration: underline;
}

.notes-content {
  max-width: 800px;
  margin: 2em auto;
  line-height: 1.6;
}

.notes-content h2 {
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-size: 1.2em;
  color: #333;
  border-bottom: 2px solid #333;
  padding-bottom: 0.5em;
}

.notes-content h2:first-of-type {
  margin-top: 1em;
}

.note-entry {
  margin: 1.5em 0;
  padding-left: 2.5em;
  text-indent: -2.5em;
}

.note-entry strong {
  font-weight: 600;
  margin-right: 0.5em;
}

.note-entry em {
  font-style: italic;
}

sup a.note-ref {
  text-decoration: none;
  color: #0066cc;
  font-weight: 600;
  padding: 0 0.2em;
  font-size: 0.85em;
}

sup a.note-ref:hover {
  text-decoration: underline;
  color: #003d7a;
}

/* Desktop sidebar closed state */
@media (min-width: 768px) {
  .sidebar.closed {
    left: -250px;
  }
  
  .sidebar.closed ~ .content {
    margin-left: 0;
  }
}

.cover-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 2rem;
}

.cover-image {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  margin-bottom: 2rem;
}

.cover-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.start-reading-btn {
  background-color: #1f2937;
  color: #ffffff;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.start-reading-btn:hover {
  background-color: #374151;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .cover-image {
    max-height: 400px;
  }
  
  .start-reading-btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Work in Progress Banner Styles */
.wip-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #ffffff;
  padding: 12px 20px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wip-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.wip-icon {
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

.wip-text {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.wip-text strong {
  font-weight: 700;
  text-transform: uppercase;
}

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

/* Adjust body padding to account for fixed banner */
body {
  padding-top: 50px !important;
}

/* Mobile responsive */
@media (max-width: 767px) {
  .wip-banner {
    padding: 10px 15px;
  }
  
  .wip-content {
    gap: 8px;
  }
  
  .wip-icon {
    font-size: 1.2rem;
  }
  
  .wip-text {
    font-size: 0.85rem;
  }
  
  body {
    padding-top: 45px !important;
  }
}

/* Ensure banner stays on top of sidebar */
.sidebar {
  margin-top: 50px;
}

@media (max-width: 767px) {
  .sidebar {
    margin-top: 45px;
  }
}

/* style.css */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
}



