/* Main Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

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

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

header h1 {
    margin-bottom: 0.5rem;
    color: white;
}

header .subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

header .author, header .copyright {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

/* Navigation */
#main-nav {
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 1rem 0;
}

#nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}

#nav-links li {
    white-space: nowrap;
}

#nav-links a {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

#nav-links a:hover, #nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.1);
}

/* Main Content */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

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

.feature-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--light-text);
    margin-bottom: 0;
}

/* CTA Buttons */
.cta-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.cta-button.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Table of Contents */
.toc ol {
    padding-left: 1.5rem;
}

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

/* Content Pages */
.content-page {
    line-height: 1.8;
}

.content-page h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
}

.content-page h3 {
    margin-top: 2rem;
}

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

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

.content-page blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--light-text);
}

.content-page pre {
    background-color: #f1f5f9;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.content-page code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Navigation Controls */
.page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.page-navigation a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: var(--light-bg);
    transition: var(--transition);
}

.page-navigation a:hover {
    background-color: var(--border-color);
}

.page-navigation .prev i {
    margin-right: 0.5rem;
}

.page-navigation .next i {
    margin-left: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    #menu-toggle {
        display: block;
    }
    
    #nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    #nav-links.show {
        display: flex;
    }
    
    .cta-container {
        flex-direction: column;
    }
    
    .page-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 0;
    }
    
    section {
        padding: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}
