/* Blog Page Styles */

.blog-page-section {
    padding: 60px 0 100px;
    min-height: 60vh;
    background-color: #fff4f8;
}

/* Page Header */
.blog-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-page-title {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2c0d18;
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-page-subtitle {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    color: #75213e;
    opacity: 0.8;
}

/* Loading State */
.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 400px;
}

.blog-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #d5bec6;
    border-top-color: #75213e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.blog-loading p {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #75213e;
}

/* Error State */
.blog-error {
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-error-icon {
    font-size: 64px;
    color: #75213e;
    margin-bottom: 24px;
    opacity: 0.6;
}

.blog-error h3 {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c0d18;
    margin-bottom: 12px;
}

.blog-error p {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #75213e;
    margin-bottom: 24px;
    opacity: 0.8;
}

.blog-retry-btn {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #75213e;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-retry-btn:hover {
    background-color: #5a1a2f;
    transform: translateY(-2px);
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-empty-icon {
    font-size: 64px;
    color: #75213e;
    margin-bottom: 24px;
    opacity: 0.4;
}

.blog-empty h3 {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2c0d18;
    margin-bottom: 12px;
}

.blog-empty p {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    color: #75213e;
    opacity: 0.8;
}

/* Articles Grid */
.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

/* Article Card */
.blog-article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(44, 13, 24, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 13, 24, 0.12);
}

/* Article Image */
.blog-article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f5e6ed;
}

.blog-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-article-card:hover .blog-article-image img {
    transform: scale(1.05);
}

/* Article Content */
.blog-article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-article-title {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #2c0d18;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-article-title a:hover {
    color: #75213e;
}

.blog-article-excerpt {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #75213e;
    opacity: 0.8;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Article Tags */
.blog-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.blog-tag {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #75213e;
    background-color: #f5e6ed;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Article Footer */
.blog-article-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f5e6ed;
}

.blog-read-more {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #75213e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #5a1a2f;
    gap: 12px;
}

.blog-read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    padding: 20px 0;
}

.blog-pagination-info {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2c0d18;
}

.blog-pagination-btn {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #75213e;
    background-color: #ffffff;
    border: 2px solid #d5bec6;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-pagination-btn:hover:not(:disabled) {
    background-color: #75213e;
    color: #ffffff;
    border-color: #75213e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 33, 62, 0.2);
}

.blog-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.blog-pagination-btn i {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .blog-page-section {
        padding: 40px 0 60px;
    }

    .blog-page-header {
        margin-bottom: 40px;
    }

    .blog-page-title {
        font-size: 36px;
    }

    .blog-page-subtitle {
        font-size: 16px;
    }

    .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .blog-article-image {
        height: 200px;
    }

    .blog-article-content {
        padding: 20px;
    }

    .blog-article-title {
        font-size: 20px;
    }

    .blog-pagination {
        flex-direction: column;
        gap: 16px;
    }

    .blog-pagination-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-page-title {
        font-size: 28px;
    }

    .blog-article-image {
        height: 180px;
    }

    .blog-article-content {
        padding: 16px;
    }

    .blog-article-title {
        font-size: 18px;
    }

    .blog-article-excerpt {
        font-size: 14px;
    }
}

/* Blog Detail Page Styles */
.blog-detail-page-section {
    padding: 10px 0 100px;
    min-height: 60vh;
    background-color: #fff4f8;
}

/* Back Link */
.blog-detail-back {
    margin-bottom: 20px;
}

.blog-back-link {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #75213e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.blog-back-link:hover {
    color: #5a1a2f;
    gap: 12px;
}

.blog-back-link i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.blog-back-link:hover i {
    transform: translateX(-4px);
}

/* Detail Loading State */
.blog-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 400px;
}

/* Detail Error State */
.blog-detail-error {
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.blog-detail-error .blog-retry-btn {
    text-decoration: none;
    display: inline-block;
}

/* Detail Content */
.blog-detail-content {
    /* max-width: 900px; */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(44, 13, 24, 0.08);
}

/* Detail Header */
.blog-detail-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f5e6ed;
}

.blog-detail-title {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #2c0d18;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-detail-meta {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.blog-detail-meta-description {
    font-size: 18px;
    line-height: 1.6;
    color: #75213e;
    opacity: 0.8;
    margin: 0;
}

/* Detail Image */
.blog-detail-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Detail Body */
.blog-detail-body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #2c0d18;
    margin-bottom: 40px;
}

.blog-detail-body h1,
.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4,
.blog-detail-body h5,
.blog-detail-body h6 {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    color: #2c0d18;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-detail-body h1 {
    font-size: 36px;
}

.blog-detail-body h2 {
    font-size: 30px;
}

.blog-detail-body h3 {
    font-size: 24px;
}

.blog-detail-body h4 {
    font-size: 20px;
}

.blog-detail-body h5 {
    font-size: 18px;
}

.blog-detail-body h6 {
    font-size: 16px;
}

.blog-detail-body p {
    margin-bottom: 20px;
}

.blog-detail-body p:last-child {
    margin-bottom: 0;
}

.blog-detail-body strong {
    font-weight: 700;
    color: #75213e;
}

.blog-detail-body ul,
.blog-detail-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-detail-body ul li,
.blog-detail-body ol li {
    margin-bottom: 12px;
}

.blog-detail-body a {
    color: #75213e;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-detail-body a:hover {
    color: #5a1a2f;
}

.blog-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.blog-detail-body blockquote {
    border-left: 4px solid #75213e;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #75213e;
    opacity: 0.8;
}

.blog-detail-body code {
    background-color: #f5e6ed;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #75213e;
}

.blog-detail-body pre {
    background-color: #f5e6ed;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-detail-body pre code {
    background: none;
    padding: 0;
}

/* Detail Footer */
.blog-detail-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #f5e6ed;
}

.blog-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.blog-detail-tags-label {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2c0d18;
}

.blog-detail-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-detail-share {
    text-align: center;
}

.blog-back-to-list {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #75213e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #75213e;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-back-to-list:hover {
    background-color: #75213e;
    color: #ffffff;
    gap: 12px;
}

.blog-back-to-list i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.blog-back-to-list:hover i {
    transform: translateX(-4px);
}

/* Detail Page Responsive */
@media (max-width: 768px) {
    .blog-detail-content {
        padding: 32px 24px;
    }

    .blog-detail-title {
        font-size: 32px;
    }

    .blog-detail-meta-description {
        font-size: 16px;
    }

    .blog-detail-body {
        font-size: 16px;
    }

    .blog-detail-body h1 {
        font-size: 28px;
    }

    .blog-detail-body h2 {
        font-size: 24px;
    }

    .blog-detail-body h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .blog-detail-content {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .blog-detail-title {
        font-size: 26px;
    }

    .blog-detail-meta-description {
        font-size: 15px;
    }

    .blog-detail-body {
        font-size: 15px;
    }

    .blog-detail-body h1 {
        font-size: 24px;
    }

    .blog-detail-body h2 {
        font-size: 20px;
    }

    .blog-detail-body h3 {
        font-size: 18px;
    }

    .blog-detail-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-back-to-list {
        width: 100%;
        justify-content: center;
    }
}

