/* ==========================================================================
   Shared article styles for PipsPuzzle Game Hub guides
   Extracted from guides/guide-template.html so individual guide pages can
   stay focused on content. Per-guide pages may add a small inline override
   for their header background/accent color.
   ========================================================================== */

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--ghibli-spirit-blue), var(--ghibli-soft-peach));
    border-radius: 16px;
}

.article-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: white;
    opacity: 0.9;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--ghibli-spirit-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-content {
    background: var(--ghibli-paper-white);
    border: 2px solid var(--ghibli-forest-green);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px var(--ghibli-soft-shadow);
    line-height: 1.8;
}

.article-content h2 {
    color: var(--ghibli-deep-green);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ghibli-forest-green);
}

.article-content h3 {
    color: var(--ghibli-forest-green);
    margin-top: 30px;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--ghibli-charcoal);
}

.article-content ul,
.article-content ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 12px;
    color: var(--ghibli-charcoal);
}

.article-content a {
    color: var(--ghibli-forest-green);
}

/* Table of contents box */
.toc {
    background: var(--ghibli-warm-cream);
    border: 1px solid var(--ghibli-forest-green);
    border-radius: 12px;
    padding: 20px 28px;
    margin: 30px 0;
}

.toc h2 {
    margin-top: 0;
    border-bottom: none;
    font-size: 1.4rem;
}

/* Callout boxes */
.tip-box {
    background: linear-gradient(135deg, #e8f5e9, #fff9c4);
    border-left: 4px solid var(--ghibli-forest-green);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.tip-box strong {
    color: var(--ghibli-deep-green);
    font-size: 1.1rem;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0, #ffccbc);
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.warning-box strong {
    color: #d32f2f;
    font-size: 1.1rem;
}

.info-box {
    background: linear-gradient(135deg, #e3f2fd, #f1f8ff);
    border-left: 4px solid var(--ghibli-spirit-blue);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

.info-box strong {
    color: #1565c0;
    font-size: 1.1rem;
}

/* Data tables */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.98rem;
}

.guide-table th,
.guide-table td {
    border: 1px solid var(--ghibli-forest-green);
    padding: 12px 14px;
    text-align: left;
    color: var(--ghibli-charcoal);
}

.guide-table th {
    background: var(--ghibli-forest-green);
    color: white;
}

.guide-table tr:nth-child(even) td {
    background: var(--ghibli-warm-cream);
}

.game-screenshot {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 4px 15px var(--ghibli-soft-shadow);
}

figure.game-figure {
    margin: 30px 0;
    text-align: center;
}

figure.game-figure figcaption {
    font-size: 0.85rem;
    color: var(--ghibli-charcoal);
    opacity: 0.8;
    margin-top: 8px;
}

/* Call to action */
.cta-play {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--ghibli-forest-green), var(--ghibli-spirit-blue));
    border-radius: 16px;
}

.cta-play h3 {
    color: white;
    margin-bottom: 16px;
}

.cta-play p {
    color: white;
    opacity: 0.95;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--ghibli-deep-green);
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Related guides */
.related-guides {
    margin-top: 60px;
    padding: 40px;
    background: var(--ghibli-warm-cream);
    border-radius: 16px;
}

.related-guides h3 {
    color: var(--ghibli-deep-green);
    margin-bottom: 24px;
    text-align: center;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.related-link {
    background: white;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ghibli-charcoal);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.related-link:hover {
    border-color: var(--ghibli-forest-green);
    transform: translateY(-2px);
}

.related-link strong {
    color: var(--ghibli-deep-green);
}

@media (max-width: 768px) {
    .article-content {
        padding: 24px;
    }

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

    .article-content h2 {
        font-size: 1.5rem;
    }

    .guide-table {
        font-size: 0.85rem;
    }
}
