:root {
    --primary-gradient: linear-gradient(135deg, #00bd6a 0%, #000000 50%, #006d85 100%);
    --secondary-gradient: linear-gradient(135deg, #00bd6a 0%, #006d85 100%);

    --primary-color: #00fd8f;
    --secondary-color: #00d0ff;
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --card-bg: #f4f4f4;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --text-color: #f8fafc;
        --card-bg: rgb(26, 39, 62);
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    background:
        radial-gradient(circle at bottom left, rgba(0, 208, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at top right, rgba(0, 255, 145, 0.3) 0%, transparent 50%),
        #000000;

    background-attachment: fixed;
}

header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.intro-text {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
    font-weight: 400;
}

.intro-text h1 {
    color: rgb(100, 255, 150);
    /* Yeni seçtiğin canlı yeşil tonu */
    font-size: 2rem;
    /* Başlık olduğu için büyük ve iddialı olsun */
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 800;
    /* Daha kalın ve oturaklı durması için */

    /* Alternatif: Eğer biraz daha kalite katmak istersen hafif bir parlama ekleyebilirsin */
    text-shadow: 0 0 20px rgba(100, 255, 150, 1);
}

.intro-text p:last-child {
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #f8fafc;
}

nav {
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 1rem;
    background: var(--card-bg);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
}

.games-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* "Let's Check Our Games" */
.games-container h2 {
    color: rgb(100, 227, 255);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(100, 227, 150, 1);
}

.game-card {
    flex-wrap: wrap;
    border-radius: 25px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background: rgba(255, 255, 255, 0.1);
    /* Çok hafif şeffaf beyaz */
    backdrop-filter: blur(10px);
    /* Arka planı bulanıklaştırır */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Çok ince bir parıltı çizgisi */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    /* Derinlik katan yumuşak gölge */
    transition: transform 0.3s ease;
}

.card-top {
    display: flex;
    align-items: flex-start;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.game-details {
    flex: 1;
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 1.2rem;
}

/* Oyun İsmi */
.game-details h3 {
    color: rgb(100, 255, 150);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(100, 255, 150, 1);
}

.game-icon {
    width: 200px;
    height: 200px;
    border-radius: 50px;
    object-fit: cover;
}

.game-screenshots {
    display: flex;
    justify-content: space-between;
    /* Aralara eşit boşluk bırakır */
    gap: 10px;
    width: 100%;
}

.game-screenshots img {
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 22%;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.game-screenshots img:hover {
    transform: scale(1.10);
    border-color: var(--primary-color);
}

@media (max-width: 600px) {
    .game-screenshots img {
        width: 47%;
    }
}

.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-buttons img {
    height: 55px;
    width: auto;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--card-bg);
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

a {
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Mobil Düzenlemeleri */
@media (max-width: 768px) {

nav {
        justify-content: flex-start; /* Başlangıçtan başlasın */
        overflow-x: auto;            /* Yatay kaydırmayı aç */
        white-space: nowrap;         /* Yazıları alt satıra geçirme */
        padding: 1rem 1.5rem;
        scrollbar-width: none;       /* Firefox için scrollbar gizle */
    }

    nav::-webkit-scrollbar {
        display: none;               /* Chrome/Safari için scrollbar gizle */
    }

    nav a {
        display: inline-block;
        padding: 8px 15px;
        font-size: 0.9rem;           /* Yazıları bir tık küçült */
    }

    /* Oyun Kartı Üst Kısmı: Her şeyi alt alta diziyoruz */
    .card-top {
        flex-direction: column;
        align-items: center;
        /* Her şeyi ortala */
        text-align: center;
        /* Metinleri ortala */
        gap: 20px;
    }

    /* İkon Boyutu: Mobilde 200px çok büyük, küçültüyoruz */
    .game-icon {
        width: 120px;
        height: 120px;
        border-radius: 30px;
    }

    /* Metin Alanı: Mobilde justify (iki yana yasla) kötü durabilir, merkeze alıyoruz */
    .game-details {
        text-align: center;
        text-justify: none;
    }

    /* Butonlar: Yan yana dizilsinler ki çok yer kaplamasınlar */
    .store-buttons {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .store-buttons img {
        height: 45px;
        /* Butonları biraz küçültüyoruz */
    }

    /* Ekran Görüntüleri: 2 satır 2 sütun şeklinde dizilsinler */
    .game-screenshots {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .game-screenshots img {
        width: calc(50% - 10px);
        /* Yan yana 2 tane sığar */
    }

    .intro-text h1 {
        font-size: 1.2rem;
    }

    .intro-text p {
        font-size: .8rem;
    }

    .intro-text p:last-child {
        font-size: .9rem;
    }

    .games-container p {
        font-size: .9rem;
        text-align: center;
    }

    .games-container h2 {
        font-size: 1.1rem;
        text-align: center;
    }

    .games-container h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .game-details {
        flex: 1;
        font-size: .9rem;
        text-justify: inter-word;
        margin-bottom: .2rem;
    }

    /* Ana paragraflar ve liste elemanları */
    .legal-text p, 
    .legal-text li {
        font-size: 0.75rem; /* Standart 1rem'den daha küçük */
        line-height: 1.5;   /* Satır arasını biraz daraltarak yer kazanalım */
    }

    /* Alt başlıklar (1. Use of the Games vb.) */
    .legal-text h3 {
        font-size: .9rem;  /* Başlıkları da metinle orantılı küçültüyoruz */
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    /* "Last Updated" veya vurgulu küçük metinler */
    .legal-text em, 
    .legal-text strong {
        font-size: 0.75rem;
    }
}