/* Oyun Kartları Stilleri */
.game-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 50px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.game-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

/* Oyun Kapak Tasarımları */
.game-cover-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Kelime Avcısı Kapağı */
.game-cover-kelime {
    background: linear-gradient(135deg, #4b6cb7 0%, #6c5ce7 100%);
    position: relative;
}

.game-cover-kelime::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.game-cover-kelime svg {
    animation: float 3s ease-in-out infinite;
}

/* Bulmaca Zamanı Kapağı */
.game-cover-bulmaca {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    position: relative;
}

.game-cover-bulmaca::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.game-cover-bulmaca svg {
    animation: float 3s ease-in-out infinite 0.5s;
}

/* Hafıza Oyunu Kapağı */
.game-cover-hafiza {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    position: relative;
}

.game-cover-hafiza::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.game-cover-hafiza svg {
    animation: float 3s ease-in-out infinite 1s;
}

/* Renk Yarışı Kapağı */
.game-cover-renk {
    background: linear-gradient(135deg, #ffd93d 0%, #ffed4e 100%);
    position: relative;
}

.game-cover-renk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.game-cover-renk svg {
    animation: float 3s ease-in-out infinite 1.5s;
}

/* Yüzen animasyon */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.game-card:hover .game-cover-content svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-details h3 {
    color: var(--dark-color);
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.game-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #6c757d;
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 20px;
}

.game-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
}

.btn-play i {
    margin-left: 8px;
    font-size: 1.1rem;
}

.btn-play:hover {
    background: #3a7bd5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 123, 213, 0.3);
}

/* Oyun Filtreleme İşlevselliği */
.game-card {
    display: block;
}

.game-card.hide {
    display: none;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .game-cards {
        grid-template-columns: 1fr;
    }
    
    .game-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}
