@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0d1117;
    --text-color: #e6edf3;
    --accent-color: #00AEE9;
    /* Harmony Blue */
    --secondary-accent: #69FABD;
    /* Harmony Greenish */
    --card-bg: rgba(22, 27, 34, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --hover-shadow: 0 0 20px rgba(0, 174, 233, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Animated Background */
    background: linear-gradient(-45deg, #0d1117, #161b22, #1a2e35, #0f1620);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Footer & Header Extras */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    /* Pushes footer down */
}

/* Stake Button in Header */
.stake-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: rgba(0, 174, 233, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.stake-btn:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 174, 233, 0.4);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #8b949e;
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    background: rgba(13, 17, 23, 0.8);
}

footer a {
    color: var(--secondary-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 174, 233, 0.3);
}

.subtitle {
    color: #8b949e;
    font-size: 1.2rem;
}

/* Gallery Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Card Styles */
.game-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.game-description {
    font-size: 0.95rem;
    color: #8b949e;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.play-btn {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-accent));
    color: #0b0e14;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: filter 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.play-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.info-link {
    color: #c9d1d9;
    /* Brighter gray */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* Slightly larger touch target */
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    /* More visible background */
}

.info-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 1rem;
    }
}