/**
 * Index Page Styles
 * Homepage mit Create-Form und Game-Liste
 */

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    border-radius: 15px;
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.header-card-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    transition: opacity 0.3s ease-in-out;
    height: 160px;
    align-items: center;
}

.header-card-container img {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: slideIn 0.3s ease-out;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: white;
    margin-top: 0;
    font-weight: bold;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Create Game Section */
.create-game {
    max-width: 500px;
    margin: 0 auto var(--spacing-xl);
    padding: var(--spacing-lg);
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(45, 106, 79, 0.1);
    border: 1px solid var(--light-green);
}

.create-game h2 {
    text-align: center;
    color: var(--dark-green);
    font-weight: 600;
}

/* Games List */
.games-list {
    margin-top: var(--spacing-xl);
}

.games-list h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--dark-green);
    font-weight: 600;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.game-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 2px solid var(--light-green);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.game-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.player-count {
    color: var(--color-text-muted);
}

.game-card .btn {
    width: 100%;
}

/* Card Test Section */
.card-test {
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border-radius: 12px;
    text-align: center;
}

.card-test h3 {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}
