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

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

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

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

.game-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.game-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #1b5e20;
}

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

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

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

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

.play-button:hover {
    transform: scale(1.05);
}

.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: #1b5e20;
    font-size: 1rem;
}

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

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

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

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:hover {
    background: #f5f5f5;
}

.comparison-table a {
    color: #1b5e20;
    text-decoration: none;
    font-weight: 600;
}

.comparison-table a:hover {
    text-decoration: underline;
}

.game-category {
    margin: 3rem 0;
}

.game-category h3 {
    color: #1b5e20;
    border-bottom: 3px solid #2e7d32;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 1.5rem;
    border: none;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-left: 4px solid #2e7d32;
    border-radius: 8px;
}

.faq-item h3 {
    color: #1b5e20;
    margin-bottom: 0.75rem;
}

.difficulty-list {
    list-style: none;
    padding: 0;
}

.difficulty-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: white;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
}

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

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

.cta-button:hover {
    transform: scale(1.05);
}

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

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .filter-container {
        padding: 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}
