/* Financial Games Hub Styles */

.financial-games-hub {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: var(--body-font-font-family, Arial, sans-serif);
    color: var(--text-color, #333);
}

/* Header Styles */
.games-hub-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hub-title {
    color: var(--heading-color, #0056b3);
    font-size: 2.8rem;
    font-family: var(--heading-font-font-family, Arial, sans-serif);
    font-weight: var(--heading-font-weight, 700);
    margin-bottom: 15px;
}

.hub-subtitle {
    font-size: 1.2rem;
    color: var(--text-color, #555);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Styles */
.games-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    color: var(--heading-color, #0056b3);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primaryButtonBackgroundColor, #007bff);
    border-radius: 2px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Game Card */
.game-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-card.upcoming {
    opacity: 0.9;
}

/* Game Image */
.game-image-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-image {
    width: 50%;
    height: 50%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.release-date {
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Game Info */
.game-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-title {
    font-size: 1.5rem;
    color: var(--heading-color, #0056b3);
    margin-bottom: 10px;
    font-weight: 600;
}

.game-description {
    font-size: 1rem;
    color: var(--text-color, #555);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Game Metadata */
.game-metadata {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.game-difficulty,
.game-time {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

.game-difficulty {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.game-difficulty.beginner {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.game-difficulty.intermediate {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.game-difficulty.advanced {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.game-time {
    background-color: #e9ecef;
    color: #495057;
}

.game-time i {
    margin-right: 5px;
}

/* Game Skills */
.game-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.skill-tag {
    font-size: 0.8rem;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Game Button */
.game-button {
    background-color: var(--primaryButtonBackgroundColor, #0056b3);
    color: #000 !important;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-button:hover {
    background-color: var(--primaryButtonHoverBackgroundColor, #0056b3);
    text-decoration: none;
}

.game-button.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Footer */
.games-hub-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-style: italic;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .hub-title {
        font-size: 2.2rem;
    }
    
    .hub-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .hub-title {
        font-size: 1.8rem;
    }
    
    .games-hub-header {
        padding: 20px;
    }
    
    .game-image-container {
        height: 180px;
    }
}
