/* Main content */
.main-content {
    padding: 1rem 0;
    flex: 1;
}

/* Section title */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h1 {
    font-size: 3rem;
    font-weight: 600;
    background: linear-gradient(135deg,
            #ff6b6b 0%,
            #4ecdc4 25%,
            #45b7d1 50%,
            #96ceb4 75%,
            #ffeaa7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    text-transform: uppercase;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Game cards */
.game-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 1.5rem;
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-purple);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px var(--shadow-glow);
}

.game-card:hover::before {
    opacity: 1;
}

.card-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(99, 102, 241, 0.4);
    transition: transform 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.game-card:hover .card-image {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-hint {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.card-hint::after {
    content: " →";
    font-style: normal;
}

.game-card:hover .card-hint {
    opacity: 1;
    color: #aaa;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet and smaller desktop */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem 0;
    }

    .section-title h1 {
        font-size: 2.5rem;
    }

    .card-image-container {
        height: 200px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .section-title h1 {
        font-size: 2rem;
    }
}