/* Genel Stiller */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary-color: #00cec9;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --gray-color: #dfe6e9;
    --success-color: #00b894;
    --danger-color: #d63031;
    --warning-color: #fdcb6e;
    --info-color: #0984e3;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #00b5b2;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Header Stilleri */
.header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.logo span {
    color: var(--primary-color);
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 25px;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid var(--gray-color);
    border-radius: 30px;
    outline: none;
    width: 200px;
    transition: var(--transition);
    padding-right: 40px;
}

.search-box input:focus {
    width: 250px;
    border-color: var(--primary-color);
}

.search-box button {
    position: absolute;
    right: 10px;
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--box-shadow);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-item:hover {
    background-color: var(--gray-color);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.search-result-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Bölümü */
.hero {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-item div span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-item div p {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.hero-image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 1;
}

.featured-game {
    position: absolute;
    width: 180px;
    height: 120px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    object-fit: cover;
    transition: var(--transition);
    z-index: 2;
}

.featured-game-1 {
    top: 0;
    left: 0;
    transform: translate(-20%, -20%);
}

.featured-game-2 {
    bottom: 0;
    right: 0;
    transform: translate(20%, 20%);
}

.featured-game-3 {
    top: 50%;
    right: 0;
    transform: translate(20%, -50%);
}

.featured-game:hover {
    transform: scale(1.05) translate(-20%, -20%);
    z-index: 3;
}

.featured-game-2:hover {
    transform: scale(1.05) translate(20%, 20%);
}

.featured-game-3:hover {
    transform: scale(1.05) translate(20%, -50%);
}

/* Oyunlar Bölümü */
.featured-games {
    padding: 80px 0;
    background-color: white;
}

.section-filter select {
    padding: 10px 15px;
    border: 1px solid var(--gray-color);
    border-radius: 30px;
    outline: none;
    cursor: pointer;
    background-color: white;
    font-size: 0.9rem;
}

.section-filter select:focus {
    border-color: var(--primary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--danger-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.game-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.game-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-rating {
    color: var(--warning-color);
    font-weight: 600;
}

.game-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-size {
    font-size: 0.9rem;
    color: #777;
}

.game-actions {
    display: flex;
    gap: 10px;
}

.game-btn {
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.game-btn-download {
    background-color: var(--primary-color);
    color: white;
}

.game-btn-download:hover {
    background-color: var(--primary-dark);
}

.game-btn-details {
    background-color: var(--gray-color);
    color: var(--dark-color);
}

.game-btn-details:hover {
    background-color: #d1d8dc;
}

.load-more {
    text-align: center;
}

/* Top Oyunlar Slider */
.top-games {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.top-games-slider {
    position: relative;
}

.slider-container {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
}

.slider-item {
    min-width: calc(33.333% - 20px);
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.slider-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.slider-item .game-image {
    height: 150px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    z-index: 2;
    transition: var(--transition);
}

.slider-nav:hover {
    background-color: var(--primary-color);
    color: white;
}

.slider-nav.prev {
    left: -20px;
}

.slider-nav.next {
    right: -20px;
}

/* Kategoriler Bölümü */
.categories {
    padding: 80px 0;
    background-color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    background-color: var(--primary-color);
    color: white;
}

.category-card:hover i,
.category-card:hover h3,
.category-card:hover p {
    color: white;
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    transition: var(--transition);
}

.category-card p {
    color: #777;
    font-size: 0.9rem;
    transition: var(--transition);
}

/* Oyun Detay Modal */
.game-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.game-details-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--gray-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: var(--danger-color);
    color: white;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-header {
    display: flex;
    gap: 30px;
}

.modal-game-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    max-width: 300px;
}

.modal-game-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-game-info {
    flex: 2;
}

.modal-game-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.modal-game-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.modal-game-category {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--warning-color);
    font-weight: 600;
}

.modal-game-size {
    color: #777;
}

.modal-game-downloads {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-game-description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.modal-game-requirements {
    margin-bottom: 20px;
}

.modal-game-requirements h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.modal-game-requirements ul {
    list-style-position: inside;
    margin-left: 10px;
}

.modal-game-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-game-btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.modal-game-btn-download {
    background-color: var(--primary-color);
    color: white;
}

.modal-game-btn-download:hover {
    background-color: var(--primary-dark);
}

.modal-game-btn-wishlist {
    background-color: var(--gray-color);
    color: var(--dark-color);
}

.modal-game-btn-wishlist:hover {
    background-color: #d1d8dc;
}

.modal-screenshots h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.modal-screenshot {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.modal-screenshot:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.modal-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-about {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #bbb;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .slider-item {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .modal-header {
        flex-direction: column;
    }
    
    .modal-game-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        flex-direction: column;
        padding: 30px;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar ul li {
        margin: 15px 0;
    }
    
    .search-box {
        margin-left: auto;
        margin-right: 20px;
    }
    
    .search-box input:focus {
        width: 200px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .slider-item {
        min-width: 100%;
    }
    
    .modal-container {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animasyonlar */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-animated {
    animation: countUp 1s ease forwards;
}