/* Landing Page Shared Styles */
/* Used by: spider-solitaire.html, freecell.html, solitaire.html, google-solitaire.html */

body {
    background: linear-gradient(135deg, #0a7d0a 0%, #006400 100%);
    min-height: 100vh;
}

.content-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.content-page h1 {
    color: #006400;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid #006400;
    padding-bottom: 0.75rem;
    font-size: 2.2rem;
}

.content-page h2 {
    color: #2e7d32;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.content-page h3 {
    color: #388e3c;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.content-page p {
    color: #333;
    line-height: 1.9;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.content-page ul {
    color: #333;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.content-page li {
    margin-bottom: 0.75rem;
}

.content-page ol {
    color: #333;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.content-page ol li {
    margin-bottom: 0.75rem;
}

.highlight-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 5px solid #2e7d32;
    padding: 1.75rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box h3 {
    margin-top: 0;
    color: #1b5e20;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.game-card {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    border: 2px solid #2e7d32;
    border-radius: 6px;
    text-decoration: none;
    color: #1b5e20;
    font-weight: 600;
    transition: all 0.2s ease;
}

.game-card:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

figure {
    margin: 2rem 0;
    padding: 0;
}

figure img {
    display: block;
    margin: 0 auto;
}

figure figcaption {
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-section {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-question {
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #333;
    line-height: 1.8;
    margin-left: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #006400;
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: 2px solid #006400;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #006400;
    color: white;
}

/* Keyboard Accessibility */
.game-card:focus,
.cta-button:focus,
.back-link:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.game-card:focus {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .content-page {
        margin: 1rem;
        padding: 1.5rem;
    }

    .content-page h1 {
        font-size: 1.8rem;
    }

    .content-page h2 {
        font-size: 1.4rem;
    }

    figure {
        margin: 1.5rem 0;
    }

    figure img {
        border-radius: 6px;
    }

    figure figcaption {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    /* Improved Mobile CTA Buttons */
    .cta-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.2rem;
        width: 100%;
        max-width: 400px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Professional Content Page Header */
.content-page-header {
    background: linear-gradient(135deg, #2c5f2d 0%, #4caf50 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-brand:hover {
    opacity: 0.9;
}

.header-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}
