/* Oyun Kartları Sayfası CSS - Ana sayfa ile aynı tasarım */

/* Oyun filtreleri */
.game-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(30, 30, 30, 0.8) 50%, rgba(20, 20, 20, 0.9) 100%);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 111, 0, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 111, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.game-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight-color), #ff9e42, var(--highlight-color));
    border-radius: 20px 20px 0 0;
}

.filter-group {
    margin: 10px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--highlight-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 2px rgba(255, 111, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.filter-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Oyun Kartları */
.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(30, 30, 30, 0.8) 50%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 111, 0, 0.2);
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 111, 0, 0.1);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight-color), #ff9e42, var(--highlight-color));
    border-radius: 20px 20px 0 0;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 111, 0, 0.3), 0 0 40px rgba(255, 111, 0, 0.2);
    border-color: rgba(255, 111, 0, 0.4);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.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);
}

.game-completion {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--highlight-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-info {
    padding: 25px;
}

.game-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
    height: 60px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.game-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.game-details i {
    color: var(--highlight-color);
    margin-right: 5px;
}

.game-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    height: 80px;
    overflow: hidden;
}

.game-rating {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Yeni Oyun Ekle Butonu */
.add-game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--button-background);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 20px auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    width: fit-content;
    display: block;
    font-size: 16px;
}

.add-game-button i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.add-game-button:hover {
    background: var(--button-hover-background);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.7);
}

.add-game-button:hover i {
    transform: rotate(90deg);
}

/* Aktif menü */
.sidebar-button.active {
    background: rgba(255, 111, 0, 0.2);
    border-color: var(--highlight-color);
    box-shadow: 0 0 15px rgba(255, 111, 0, 0.5);
    transform: translateY(-3px);
}

.sidebar-button.active i,
.sidebar-button.active span {
    color: var(--highlight-color);
    text-shadow: 0 0 5px var(--highlight-color);
}

.sidebar-button.active .neon-border {
    border-color: var(--highlight-color);
    box-shadow: inset 0 0 10px var(--highlight-color),
                0 0 10px var(--highlight-color);
}

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .filter-group {
        min-width: 100%;
        margin: 5px 0;
    }
    
    .game-filters {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .game-title {
        font-size: 1.2rem;
        height: auto;
        min-height: 50px;
    }
    
    .game-description {
        height: auto;
        max-height: 80px;
    }
    
    .add-game-button {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .game-image {
        height: 180px;
    }
    
    .content {
        padding: 15px;
    }
    
    .profile-card {
        padding: 20px 15px;
    }
    
    .game-filters {
        flex-direction: column;
        gap: 15px;
    }
}

/* Oyun kartlarına animasyon efektleri */
.game-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

/* Filtreleme için JavaScript'le kullanılacak durumlar */
.game-card.hidden {
    display: none;
}

.game-card.filtered {
    animation: pulseHighlight 1s ease;
}

@keyframes pulseHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); box-shadow: 0 0 20px var(--highlight-color); }
    100% { transform: scale(1); }
}

/* Boş sonuç mesajı için stil */
.no-results {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.1) 0%, rgba(30, 30, 30, 0.8) 50%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 20px;
    border: 1px dashed rgba(255, 111, 0, 0.3);
    display: none;
    backdrop-filter: blur(15px);
}

.no-results i {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 15px;
    display: block;
}

/* Typing animasyonu */
.typing-animation {
    overflow: hidden;
    border-right: 2px solid var(--highlight-color);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--highlight-color); }
}

/* Fare Hareketleri */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overscroll-behavior-y: contain;
}