/* Pillowtalk Games — Kozmik Tema */

/* === Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Animasyonlar === */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes twinkle-1 {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes twinkle-2 {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.1; }
}

@keyframes twinkle-3 {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(142, 197, 252, 0.08); }
    50% { box-shadow: 0 4px 30px rgba(142, 197, 252, 0.2), 0 0 60px rgba(142, 197, 252, 0.06); }
}

/* === Temel Stiller === */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0a0a1a;
    color: #e0e0f0;
    overflow-x: hidden;
}

/* === Yildiz Arkaplan === */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    border-radius: 50%;
}

.star--white {
    background: #fff;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.3);
}

.star--blue {
    background: #8ec5fc;
    box-shadow: 0 0 6px 2px rgba(142, 197, 252, 0.4);
}

.star--pink {
    background: #f5c6d0;
    box-shadow: 0 0 5px 2px rgba(245, 198, 208, 0.3);
}

.star--purple {
    background: #e0c3fc;
    box-shadow: 0 0 5px 2px rgba(224, 195, 252, 0.3);
}

/* === Isik Lekeleri === */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb--blue {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(142, 197, 252, 0.08), transparent 70%);
    top: -100px;
    right: -100px;
}

.glow-orb--purple {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(224, 195, 252, 0.06), transparent 70%);
    bottom: -50px;
    left: -80px;
}

.glow-orb--pink {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 198, 208, 0.05), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
}

/* === Header === */
header {
    text-align: center;
    padding: 5rem 1rem 3rem;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #8ec5fc, #f5c6d0, #e0c3fc, #8ec5fc);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite, fade-in-up 1s ease-out both;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fade-in-up 1s ease-out 0.3s both;
}

.header-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(142, 197, 252, 0.4), transparent);
    margin: 1.5rem auto 0;
    animation: fade-in-up 1s ease-out 0.6s both;
}

/* === Oyun Kartlari Grid === */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    padding: 1rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* === Oyun Karti — Showcase === */
.game-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    animation: fade-in-up 0.8s ease-out 0.9s both, float-card 6s ease-in-out 1.7s infinite, glow-pulse 5s ease-in-out 1.7s infinite;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(142, 197, 252, 0.15), 0 0 80px rgba(142, 197, 252, 0.05);
    border-color: rgba(142, 197, 252, 0.25);
}

/* === Kart Banner === */
.game-banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a3e, #2d1b69, #1a1a3e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-banner::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 197, 252, 0.15), transparent 70%);
    top: -30px;
    right: -30px;
}

.game-banner::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 195, 252, 0.1), transparent 70%);
    bottom: -20px;
    left: -20px;
}

/* === Kart Ici Elemanlar === */
.game-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.game-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.game-description {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

/* === Store Badge'leri === */
.store-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.store-badges a {
    transition: transform 0.2s ease, filter 0.2s ease;
}

.store-badges a:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.store-badges a img {
    height: 40px;
    width: auto;
}

.store-badges a img[alt="Get it on Google Play"] {
    height: 60px;
    margin: -10px 0;
}

/* === Site Linki === */
.game-site-link {
    font-size: 0.85rem;
    color: #8ec5fc;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(142, 197, 252, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.game-site-link:hover {
    background: rgba(142, 197, 252, 0.1);
    border-color: rgba(142, 197, 252, 0.4);
}

/* === Footer === */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0 auto 1.5rem;
}

/* === Responsive === */
@media (min-width: 768px) {
    header {
        padding: 6rem 1rem 3.5rem;
    }

    header h1 {
        font-size: 3.5rem;
    }

    .game-banner {
        height: 220px;
    }

    .game-icon-wrapper {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    header h1 {
        font-size: 4rem;
    }

    .game-banner {
        height: 240px;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
