/* Membership and Resources Styling */
:root {
    --primary-color: #3a7ca5;  /* Professional blue */
    --secondary-color: #63a4c5;
    --accent-color: #d35400;  /* Vibrant orange for calls to action */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Resources Section */
.resources-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.resource-card {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.resource-links {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.resource-links li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.resource-links li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.resource-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.resource-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.resources-callout {
    background-color: rgba(58, 124, 165, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.book-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.book-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.book-cover {
    font-size: 3rem;
    color: var(--primary-color);
}

.book-details h4 {
    margin: 0 0 0.5rem 0;
}

.book-details p {
    margin: 0 0 0.5rem 0;
    font-style: italic;
    color: #666;
}

/* Membership Section */
.membership-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.membership-tiers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.membership-tier {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.membership-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.membership-tier.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 1;
}

.membership-tier.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tier-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.tier-price span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.tier-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
}

.tier-button {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.tier-button:hover {
    background-color: var(--accent-color);
    color: white;
}

.membership-tier.featured .tier-button {
    background-color: var(--accent-color);
}

.membership-tier.featured .tier-button:hover {
    background-color: #c24e00;
}

.membership-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: var(--border-radius);
}

.membership-guarantee i {
    font-size: 2rem;
    color: var(--success-color);
}

.membership-guarantee p {
    margin: 0;
    font-weight: 500;
}

/* Fun Visual Elements */
.fun-fact-bubble {
    position: relative;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    border-radius: 20px;
    margin: 2rem 0;
    animation: float 3s ease-in-out infinite;
}

.fun-fact-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    border-width: 15px 15px 0;
    border-style: solid;
    border-color: var(--accent-color) transparent;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.memory-game-preview {
    background-color: rgba(58, 124, 165, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.memory-game-preview h3 {
    margin-top: 0;
}

.memory-cards {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.memory-card {
    width: 80px;
    height: 120px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.memory-card:hover {
    transform: scale(1.05);
}

.brain-animation {
    text-align: center;
    margin: 2rem 0;
}

.brain-icon {
    font-size: 5rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .resources-grid, .book-recommendations {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .membership-tiers {
        flex-direction: column;
        align-items: center;
    }
    
    .membership-tier {
        width: 100%;
        max-width: 400px;
    }
    
    .membership-tier.featured {
        transform: scale(1);
        order: -1;
        margin-bottom: 1rem;
    }
    
    .membership-tier.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .book-recommendations {
        grid-template-columns: 1fr;
    }
    
    .memory-cards {
        gap: 0.5rem;
    }
    
    .memory-card {
        width: 60px;
        height: 90px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .book-item {
        flex-direction: column;
        text-align: center;
    }
    
    .membership-guarantee {
        flex-direction: column;
        text-align: center;
    }
}
