/* Base styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    padding: 40px 20px;
}

.wrapper {
    max-width: 650px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid #3b82f6; /* Blue underline like in your sketch */
    display: inline-block;
    width: 100%;
    padding-bottom: 10px;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
}

.subtitle {
    font-size: 0.9rem;
    color: #666;
}

/* Game Boxes */
.game-box {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.item-list {
    list-style: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.item-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-list li:hover {
    background-color: #f9fafb;
}

.item-list a {
    text-decoration: none;
    color: #4b5563;
    display: block;
    width: 100%;
}

.item-list a:hover {
    color: #3b82f6;
}

/* Info Section */
.info-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.info-section p {
    color: #555;
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    color: #999;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 20px 15px;
    }
    .main-title {
        font-size: 1.6rem;
    }
}


/* Styl pro herní kartu na hlavní stránce */
.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.game-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Efekt "Play Now" při najetí myší */
.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(59, 130, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.game-details {
    padding: 20px;
}

.game-item-title {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.game-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.play-button {
    display: inline-block;
    padding: 8px 20px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}