/* Frontend Styles for Game Manager Plugin */

/* Games Grid */
.games-grid,
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.game-card,
.sport-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover,
.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.game-thumbnail,
.sport-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.game-thumbnail img,
.sport-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card:hover .game-thumbnail img,
.sport-card:hover .sport-thumbnail img {
    transform: scale(1.05);
}

.game-content,
.sport-content {
    padding: 20px;
}

.game-content h3,
.sport-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.game-content h3 a,
.sport-content h3 a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.3s;
}

.game-content h3 a:hover,
.sport-content h3 a:hover {
    color: #0073aa;
}

.game-excerpt,
.sport-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.game-link,
.sport-link {
    display: inline-block;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.game-link:hover,
.sport-link:hover {
    background: #005a87;
}

/* Game Specifications */
.game-specifications {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.game-specifications h3 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    color: #2c2c2c;
    font-size: 24px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    text-align: left;
    padding: 15px 20px 15px 0;
    font-weight: 600;
    color: #555;
    width: 200px;
    vertical-align: top;
}

.specs-table td {
    padding: 15px 0;
    color: #333;
}

/* System Requirements */
.system-requirements {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.system-requirements h3 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    color: #2c2c2c;
    font-size: 24px;
}

.requirements-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.req-tab {
    padding: 12px 30px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    color: #666;
}

.req-tab:hover {
    background: #e0e0e0;
}

.req-tab.active {
    background: #0073aa;
    color: #fff;
}

.requirements-content {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 0 5px 5px 5px;
}

.requirements-content h4 {
    margin: 0 0 15px;
    color: #0073aa;
    font-size: 20px;
}

.requirements-table {
    width: 100%;
    border-collapse: collapse;
}

.requirements-table tr {
    border-bottom: 1px solid #ddd;
}

.requirements-table tr:last-child {
    border-bottom: none;
}

.requirements-table th {
    text-align: left;
    padding: 12px 20px 12px 0;
    font-weight: 600;
    color: #555;
    width: 150px;
    vertical-align: top;
}

.requirements-table td {
    padding: 12px 0;
    color: #333;
    line-height: 1.6;
}

/* Game Gallery */
.game-gallery {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.game-gallery h3 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    color: #2c2c2c;
    font-size: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item a {
    display: block;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .games-grid,
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .specs-table th,
    .requirements-table th {
        width: 120px;
        font-size: 14px;
    }
    
    .specs-table td,
    .requirements-table td {
        font-size: 14px;
    }
    
    .requirements-tabs {
        flex-direction: column;
    }
    
    .req-tab {
        border-radius: 5px;
    }
}

@media (max-width: 480px) {
    .game-specifications,
    .system-requirements,
    .game-gallery {
        padding: 20px;
    }
    
    .specs-table,
    .requirements-table {
        font-size: 13px;
    }
    
    .specs-table th,
    .requirements-table th {
        display: block;
        width: 100%;
        padding: 10px 0 5px;
    }
    
    .specs-table td,
    .requirements-table td {
        display: block;
        padding: 0 0 15px;
    }
}
