/* Junior Genius Club - Shared Styles */
:root {
    --primary-color: #c2185b; /* Darker Pink/Rose - Accessible */
    --secondary-color: #f8bbd0; /* Soft Pink */
    --accent-color: #0277bd; /* Darker Blue - Accessible */
    --text-color: #212121; /* Darker Text */
    --bg-color: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding-top: 140px; /* Adjust based on header height */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header h1 a:hover {
    text-decoration: underline;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    font-style: italic;
}

main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 180px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h2 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

article h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

article h2 {
    color: var(--accent-color);
    margin-top: 2rem;
}

article p {
    margin-bottom: 1.2rem;
}

.game-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.game-link:hover {
    background-color: #8bb3f7;
}

/* Interactive Elements */
.callout {
    background-color: #f8f9fa;
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.callout-philosophy {
    border-color: var(--primary-color);
    background-color: #fff9f9;
    border: 1px dashed var(--primary-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 10px;
}

.callout-tip {
    border-color: #ffeeba;
    background-color: #fffdf5;
    border-left: 5px solid #ffc107;
}

.cta-block {
    text-align: center;
    background-color: #eef4ff;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.cta-block i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.cta-block h3 {
    margin-top: 0;
    color: var(--text-color);
}

.play-button-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
}

.faq-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

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

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #555;
    margin-top: 0;
}

footer {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    margin-top: auto;
}

footer nav {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
}

footer nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: opacity 0.2s;
}

footer nav a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
    body {
        padding-top: 120px;
    }
    header {
        padding: 1rem 1rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
    header p {
        font-size: 1rem;
    }
    main {
        padding: 1.5rem 1rem;
    }
    .card-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    .card-content {
        padding: 1.2rem;
    }
    article h1 {
        font-size: 1.75rem;
    }
    article h2 {
        font-size: 1.4rem;
    }
    article p {
        font-size: 1.05rem;
    }
    footer nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    footer nav a {
        margin: 0;
        padding: 0.3rem 0;
        display: inline-block;
        font-size: 0.95rem;
    }
}
