/* Content Block Styles for Subpages/Articles */

.content-block {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
    width: 100%;
}

/* Typography map to main layout but specific for content */
.content-block h1 {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 25px;
    line-height: 1.2;
}

.content-block h2 {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-top: 30px;
    margin-bottom: 20px;
}

.content-block h3 {
    font-size: 1.5rem;
    color: var(--prusa-orange);
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-block p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Lists - Fixing alignment issue */
.content-block ul,
.content-block ol {
    margin-bottom: 20px;
    padding-left: 2rem;
    /* Ensure bullets/numbers are inside */
    margin-left: 10px;
}

.content-block li {
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.5;
}

/* Code Blocks (for markdown code) */
.content-block pre {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.content-block code {
    font-family: 'Courier New', Courier, monospace;
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 4px;
    color: #e83e8c;
}

.content-block pre code {
    background: transparent;
    padding: 0;
    color: #333;
}

/* Images in content */
.content-block img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Latest Articles Section */
.latest-articles-section {
    width: 100%;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.text-center {
    text-align: center;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-mini-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.article-mini-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2);
    border-color: var(--primary-color);
}

.article-mini-card .article-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.article-mini-card h3 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    color: var(--heading-color);
}

/* Archive Link Card */
.article-mini-card.archive-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(230, 230, 255, 0.7));
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--primary-light);
}

.article-mini-card.archive-link:hover {
    background: white;
    border-color: var(--primary-color);
}

.article-mini-card.archive-link .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.article-mini-card.archive-link p {
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    opacity: 0.8;
}

/* Archive Page Styles */
.archive-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.archive-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, background 0.2s ease;
    border-left: 4px solid transparent;
}

.archive-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    border-left-color: var(--primary-color);
}

.archive-item .date {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 100px;
    padding-top: 0.2rem;
}

.archive-item .details h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.archive-item .details p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

.back-home {
    margin-top: 3rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .archive-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .archive-item .date {
        font-size: 0.9rem;
        opacity: 0.7;
    }
}

/* Subpage Tip Card Wrapper */
.subpage-tip-wrapper {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Ensure the tip card inside the wrapper takes appropriate width on subpages */
.subpage-tip-wrapper .tip-card {
    width: 100%;
    max-width: 700px;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    gap: 20px;
    margin: 0;
}

.subpage-tip-wrapper .tip-header {
    width: auto;
    margin-bottom: 0;
}

.subpage-tip-wrapper .tip-action-btn {
    width: auto;
    /* Allow natural width */
    margin-top: 0;
    white-space: nowrap;
    min-width: 150px;
}

@media (max-width: 600px) {
    .subpage-tip-wrapper .tip-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .subpage-tip-wrapper .tip-header {
        flex-direction: column;
        text-align: center;
    }

    .subpage-tip-wrapper .tip-action-btn {
        width: 100%;
    }
}
/* Article Navigation Button */
.article-footer-nav {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    border-top: 2px dashed #eee;
    padding-top: 30px;
}

.btn-creative-nav {
    display: inline-block;
    padding: 12px 25px;
    background: white;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-creative-nav:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(155, 89, 182, 0.3);
}
