/**
 * Book-like styling for memories-dev documentation
 * This CSS enhances the documentation to feel more like a professional book
 */

/* Typography improvements */
body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fcfcfc;
}

/* Chapter styling */
h1, h2, h3, h4, h5, h6 {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 2.5em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}

h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.2em;
}

h3 {
    font-size: 1.4em;
}

/* Chapter heading */
.chapter-heading {
    margin: 2em 0 3em 0;
    text-align: center;
}

.chapter-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5em;
    font-variant: small-caps;
    letter-spacing: 0.05em;
}

.chapter-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1em 0;
}

.chapter-line {
    height: 1px;
    background-color: #ddd;
    width: 100px;
}

.chapter-ornament {
    font-size: 1.5em;
    margin: 0 1em;
    color: #3498db;
}

/* First paragraph styling - book-like drop cap */
.section > p:first-of-type {
    font-size: 1.1em;
}

.section > p:first-of-type::first-letter {
    font-size: 3.5em;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    color: #2980b9;
}

/* Content width and margins */
.wy-nav-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2em 3em;
    background-color: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

/* Figure captions */
.figure .caption {
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    color: #555;
    margin-top: 0.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 1em;
}

/* Code blocks */
pre {
    background-color: #f8f8f8;
    border: 1px solid #e1e4e5;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    padding: 1em;
    overflow-x: auto;
    margin: 1.5em 0;
}

code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    background-color: #f8f8f8;
    border-radius: 3px;
    padding: 0.2em 0.4em;
    font-size: 0.9em;
}

/* Tables */
table.docutils {
    border-collapse: collapse;
    margin: 1.5em 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

table.docutils th {
    background-color: #f2f2f2;
    padding: 0.8em;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

table.docutils td {
    padding: 0.8em;
    border-bottom: 1px solid #ddd;
}

/* Admonitions */
.admonition {
    margin: 1.5em 0;
    padding: 1em;
    border-radius: 4px;
    border-left: 4px solid #2980b9;
    background-color: #f8f9fa;
}

.admonition-title {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.note {
    border-left-color: #2980b9;
    background-color: #eef4fa;
}

.note .admonition-title {
    color: #2980b9;
}

.warning {
    border-left-color: #e74c3c;
    background-color: #fdedec;
}

.warning .admonition-title {
    color: #e74c3c;
}

.tip {
    border-left-color: #27ae60;
    background-color: #eafaf1;
}

.tip .admonition-title {
    color: #27ae60;
}

/* Blockquotes */
blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1em;
    border-left: 4px solid #eaecef;
    color: #6a737d;
    font-style: italic;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* TOC styling */
.toctree-wrapper ul {
    list-style-type: none;
    padding-left: 1.5em;
}

.toctree-wrapper li {
    margin-bottom: 0.5em;
}

/* Hero banner */
.hero-banner {
    background-color: #2c3e50;
    color: white;
    padding: 2em;
    margin-bottom: 2em;
    border-radius: 4px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 0.2em;
    border-bottom: none;
    color: white;
}

.hero-content .tagline {
    font-size: 1.2em;
    font-style: italic;
    margin-top: 0;
}

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

.feature-card {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 1.5em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.feature-card h3 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1.2em;
}

/* Version banner */
.version-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
    margin-bottom: 2em;
}

.version-number {
    font-weight: bold;
    color: #2c3e50;
}

.version-date {
    color: #7f8c8d;
    margin-left: 1em;
}

.version-badges {
    display: flex;
    gap: 0.5em;
}

/* Footer styling */
footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #eaecef;
    color: #6a737d;
    font-size: 0.9em;
}

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

.cta-button {
    display: inline-block;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s;
}

.cta-button.primary {
    background-color: #3498db;
    color: white;
}

.cta-button.primary:hover {
    background-color: #2980b9;
    text-decoration: none;
}

.cta-button.secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.cta-button.secondary:hover {
    background-color: #dde4e6;
    text-decoration: none;
}

/* Installation guide */
.installation-guide {
    background-color: #f8f9fa;
    padding: 1.5em;
    border-radius: 4px;
    margin: 2em 0;
}

.installation-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
    margin-top: 1em;
}

.installation-option {
    background-color: white;
    padding: 1em;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.installation-option h4 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.installation-option pre {
    margin: 0.5em 0;
}

/* Case studies */
.case-studies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.case-study {
    background-color: #f8f9fa;
    padding: 1.5em;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.case-study h3 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* Community section */
.community-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.community-card {
    background-color: #f8f9fa;
    padding: 1.5em;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card-icon {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #3498db;
}

.community-card h3 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .wy-nav-content {
        padding: 1.5em;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .section > p:first-of-type::first-letter {
        font-size: 2.5em;
    }
    
    .feature-grid, .case-studies, .community-section {
        grid-template-columns: 1fr;
    }
    
    .installation-options {
        grid-template-columns: 1fr;
    }
    
    .version-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .version-badges {
        margin-top: 1em;
    }
} 