/**
 * Ancient Wisdom Blog - Buddhist Minimalism Design
 * Clean, minimal design with generous whitespace
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fdfbf7;
    color: #2c2c2c;
    line-height: 1.8;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    padding: 80px 20px 40px;
}

.zen-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #8b1538;
    border-radius: 50%;
    margin: 0 auto 30px;
    position: relative;
}

.zen-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-color: #8b1538;
    border-radius: 50%;
}

h1.site-title {
    font-size: 2.2em;
    color: #2c2c2c;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.site-tagline {
    color: #666;
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Minimal divider */
.minimal-divider {
    width: 60px;
    height: 1px;
    background-color: #8b1538;
    margin: 60px auto;
}

/* Flash Messages */
.flash-message {
    padding: 15px 20px;
    margin-bottom: 40px;
    border-radius: 4px;
    text-align: center;
}

.flash-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.flash-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Post List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.post-card {
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 60px;
}

.post-card:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 1.8em;
    color: #2c2c2c;
    margin-bottom: 20px;
    text-decoration: none;
    display: block;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
}

.post-title:hover {
    color: #8b1538;
}

.post-meta {
    color: #999;
    font-size: 0.85em;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.post-excerpt {
    color: #4a4a4a;
    margin-bottom: 30px;
    line-height: 2;
    font-size: 1.05em;
    font-weight: 300;
}

.read-more {
    color: #8b1538;
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8b1538;
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Single Post View */
.post-content {
    padding: 40px 0;
    margin-bottom: 60px;
}

.post-content h2 {
    color: #2c2c2c;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.3;
}

.post-content .post-meta {
    text-align: center;
    margin-bottom: 50px;
}

.post-body {
    color: #4a4a4a;
    line-height: 2.1;
    font-size: 1.1em;
    font-weight: 300;
}

.post-body p {
    margin-bottom: 30px;
}

.post-body p:first-of-type::first-letter {
    font-size: 3.5em;
    float: left;
    line-height: 1;
    margin: 0 15px 0 0;
    color: #8b1538;
    font-weight: 400;
}

.post-body h3 {
    font-size: 1.6em;
    color: #2c2c2c;
    margin: 50px 0 25px;
    font-weight: 400;
}

.post-body h4 {
    font-size: 1.3em;
    color: #2c2c2c;
    margin: 40px 0 20px;
    font-weight: 400;
}

.post-body ul,
.post-body ol {
    margin: 25px 0;
    padding-left: 30px;
}

.post-body li {
    margin-bottom: 15px;
}

.post-body blockquote {
    background-color: #f9f6f2;
    padding: 30px 40px;
    margin: 40px 0;
    border-left: 4px solid #8b1538;
    font-style: italic;
}

.post-body code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 30px 0;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body a {
    color: #8b1538;
    text-decoration: underline;
}

.post-body a:hover {
    color: #6b0f28;
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 4px;
}

/* Practice box */
.practice-box {
    background-color: #f9f6f2;
    padding: 40px;
    margin: 50px 0;
    border-left: 4px solid #8b1538;
}

.practice-box p {
    margin-bottom: 0;
    font-style: italic;
    color: #2c2c2c;
}

/* Book Recommendations */
.book-recommendations {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #e8e8e8;
}

.book-recommendations h3 {
    color: #2c2c2c;
    font-size: 1.6em;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.book-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.book-item {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.book-item-link:hover .book-item,
.book-item:hover {
    transform: translateY(-5px);
}


.book-item h4 {
    color: #2c2c2c;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 400;
    letter-spacing: 1px;
}

.book-author {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.book-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.book-link {
    color: #8b1538;
    text-decoration: none;
    font-size: 0.85em;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    transition: border-color 0.3s;
}

.book-link:hover {
    border-bottom-color: #8b1538;
}

/* Post footer */
.post-footer {
    text-align: center;
    margin: 60px 0 40px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 80px;
    padding: 30px 0;
}

.pagination-link {
    color: #8b1538;
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

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

.pagination-info {
    color: #999;
    font-size: 0.9em;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 120px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
    color: #999;
    font-size: 0.85em;
    font-weight: 300;
    letter-spacing: 1px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #8b1538;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    header {
        margin-bottom: 36px;
        padding: 50px 15px 30px;
    }

    .zen-circle {
        width: 60px;
        height: 60px;
    }

    h1.site-title {
        font-size: 1.8em;
        letter-spacing: 4px;
    }

    .site-tagline {
        font-size: 0.9em;
        letter-spacing: 1px;
    }

    .posts-list {
        gap: 50px;
    }

    .post-card {
        padding-bottom: 40px;
    }

    .post-title {
        font-size: 1.5em;
    }

    .post-excerpt {
        font-size: 1em;
        line-height: 1.9;
    }

    .post-content h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .post-body {
        font-size: 1em;
        line-height: 1.9;
    }

    .practice-box {
        padding: 25px;
    }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .book-item {
        padding: 20px;
    }

    .minimal-divider {
        margin: 40px auto;
    }

    .book-recommendations {
        margin-top: 70px;
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    h1.site-title {
        font-size: 1.5em;
        letter-spacing: 3px;
    }

    .post-title {
        font-size: 1.3em;
    }

    .post-content h2 {
        font-size: 1.5em;
    }
}

