/* ==========================================================================
   Toucan Talks Theme - Clean Blog Style
   ========================================================================== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
}

a {
    color: #4a7c59;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2d5a3a;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-icon {
    font-size: 2rem;
}

.site-info {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.site-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.4px;
    line-height: 1.2;
    text-decoration: none;
}

.site-title:hover {
    color: #333;
    text-decoration: none;
}

.site-subtitle {
    font-size: rem;
    color: #333;
    font-weight: 400;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: #555;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav .active a {
    color: #222;
    text-decoration: none;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.site-main {
    min-height: calc(100vh - 180px);
}

.main-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* ==========================================================================
   Articles Section (Index Page)
   ========================================================================== */
.articles-section {
    width: 100%;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Article Card - Vertical Layout */
.article-card {
    text-align: left;
}

.article-title {
    font-family: 'DM Sans', sans-serif;
    font-size: min(max(1.75rem, 5vw), 2.375rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
    text-align: left;
    letter-spacing: 1.5px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    text-align: left;
}

.article-title a:hover {
    color: #4a7c59;
    text-decoration: none;
}

.article-thumbnail {
    margin-bottom: 25px;
    overflow: hidden;
}

.article-summary {
    color: #333;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.article-meta a {
    color: #333;
}

.article-meta a:hover {
    text-decoration: underline;
}

.meta-icon {
    margin-right: 5px;
    opacity: 0.7;
}

.article-tags {
    font-size: 1rem;
    color: #333;
}

.article-tags a {
    color: #333;
}

.article-tags a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.pagination a {
    padding: 10px 20px;
    background: #4a7c59;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.pagination a:hover {
    background: #3a6249;
    text-decoration: none;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

.no-articles {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 60px 20px;
}

/* ==========================================================================
   Single Article Page
   ========================================================================== */
.article-full {
    max-width: 100%;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-full .article-meta {
    justify-content: center;
    margin-bottom: 20px;
}

.article-full .article-title {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.25;
    color: #333;
    margin-bottom: 20px;
}

.article-author {
    color: #666;
    font-size: 0.95rem;
}

.article-featured-image {
    margin-bottom: 35px;
    border-radius: 4px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

.article-body h2 {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #222;
}

.article-body h3 {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body ul,
.article-body ol {
    margin: 1.5em 0 1.5em 1.5em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body blockquote {
    border-left: 3px solid #4a7c59;
    padding-left: 25px;
    margin: 2em 0;
    color: #555;
    font-style: italic;
}

.article-body code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-body pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2em 0;
}

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

.article-body a {
    color: #4a7c59;
    text-decoration: underline;
}

.article-body a:hover {
    color: #2d5a3a;
}

.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.article-footer .article-tags {
    font-size: 0.9rem;
    color: #666;
}

.article-footer .article-tags a {
    color: #4a7c59;
    margin-left: 5px;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-navigation a {
    flex: 1;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.article-navigation a:hover {
    background: #f0f0f0;
    text-decoration: none;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: #4a7c59;
    font-weight: 500;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    color: #333;
    font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #f9f9f9;
    color: #666;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer p {
    font-size: 0.85rem;
}

.site-footer a {
    color: #4a7c59;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .site-branding {
        flex-direction: column;
        text-align: center;
    }

    .site-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-container {
        padding: 30px 15px;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-full .article-title {
        font-size: 2rem;
    }

    .article-navigation {
        flex-direction: column;
    }
}
