/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Custom properties */
:root {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --secondary-color: #1F2937;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --background-light: #F9FAFB;
}

/* Common components */
.game-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card .aspect-w-16 {
    position: relative;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
}

.game-card .aspect-w-16::before {
    content: attr(data-game-name);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

.game-card img {
    position: relative;
    z-index: 1;
}

/* Category cards */
.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.8;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.2s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Game grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Rating stars */
.rating-container .text-yellow-400 {
    letter-spacing: -1px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
}
