/* * AIWYE Custom Dark Theme
 * Background: #202020
 * Primary Text: #E5E5E5
 * Secondary Text: #A3A3A3
 * Accent Gradient: #00D1FF (Electric Cyan) -> #583CFF (Deep Purple)
*/
:root {
    --bg-color: #202020;
    --card-bg: #2B2B2B;
    --border-color: #404040;
    --text-primary: #E5E5E5;
    --text-secondary: #A3A3A3;
    --accent-cyan: #00D1FF;
    --accent-purple: #583CFF;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.hero-gradient-text {
    background: linear-gradient(to right, #00D1FF, #583CFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.link-gradient {
    background: linear-gradient(to right, #00D1FF, #583CFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00D1FF;
    /* Electric Cyan */
}

.sitemap-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sitemap-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #583CFF;
    /* Deep Purple */
    box-shadow: 0 10px 25px -5px rgba(88, 60, 255, 0.2);
}

.cta-button {
    background: linear-gradient(to right, #00D1FF, #583CFF);
    color: white;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: opacity 0.3s ease-in-out;
}

/* Fix for floated elements */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Styles for Ad Placeholders */
.ad-placeholder {
    background-color: var(--card-bg);
    border: 2px dashed #583CFF;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    margin: 2rem auto;
    padding: 1rem;
    line-height: 1.5;
}

.ad-placeholder strong {
    color: var(--text-primary);
    font-weight: 600;
}

.ad-premium-leaderboard {
    width: 970px;
    height: 250px;
    max-width: 100%;
}

.ad-article-header {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-medium-rectangle {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.ad-skyscraper {
    width: 300px;
    height: 600px;
    max-width: 100%;
}

/* Prose Overrides for better formatting */
.prose {
    max-width: none;
    /* Let grid control width */
}

.prose h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.prose h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 1px solid #404040;
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.4rem;
    color: #dedede;
    margin-top: 2rem;
}

.prose blockquote {
    border-left-color: #583CFF;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose table {
    border: 1px solid var(--border-color);
}

.prose th {
    background-color: var(--card-bg);
}

.prose th,
.prose td {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
}

.prose tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.prose ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.pdf-download-link {
    display: block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #583CFF;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pdf-download-link:hover {
    background-color: #583CFF;
    color: #FFFFFF;
}

/* Table of Contents Styling */
.toc-container {
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* TOC Specific Scrollbar */
.toc-container::-webkit-scrollbar {
    width: 6px;
}

.toc-container::-webkit-scrollbar-track {
    background: transparent;
}

.toc-container::-webkit-scrollbar-thumb {
    background-color: #404040;
    border-radius: 3px;
    border: none;
}

.toc-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-cyan);
}

.toc-container h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

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

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    transition: color 0.2s;
    line-height: 1.4;
}

.toc-list a:hover {
    color: var(--accent-cyan);
}

/* Nested ToC lists */
.toc-list ul ul {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.toc-list ul ul a {
    font-size: 0.85rem;
}