/* Mahjong Games Hub - Page-Specific Styles */

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

.content-page .layout-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.content-page .layout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.layout-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    border-radius: 50%;
    color: white;
    font-size: 2.25rem;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
}

.layout-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #831843;
}

.layout-meta {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.layout-meta span {
    white-space: nowrap;
}

.difficulty {
    color: #f57c00;
    font-weight: 600;
}

.depth {
    color: #be185d;
    font-weight: 600;
}

.content-page .play-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    color: white;
    text-decoration: none;
    border-bottom: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.content-page .play-button:hover {
    transform: scale(1.05);
    color: white;
    border-bottom: none;
}

.filter-container {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h3 {
    margin-bottom: 0.75rem;
    color: #831843;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #db2777;
    background: white;
    color: #db2777;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #db2777;
    color: white;
}

.cta-section {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #be185d;
    text-decoration: none;
    border-bottom: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.cta-section .cta-button:hover {
    transform: scale(1.05);
    border-bottom: none;
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        padding: 1rem;
    }
}
