/* Games Page Styles */

/* Hero Section */
.rs-games-hero {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.85) 0%, rgba(42, 82, 152, 0.85) 50%, rgba(30, 60, 114, 0.85) 100%);
    position: relative;
    overflow: hidden;
}

.rs-games-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.rs-games-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* Game Cards */
.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.game-card .card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.game-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.05);
}

.game-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.game-card .card-overlay .view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.game-card .card-overlay .view-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.game-card .card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-card .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-card .card-title a:hover {
    color: #667eea;
}

.game-card .card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.game-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.game-card .card-footer .read-more {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.game-card .card-footer .read-more:hover {
    color: #764ba2;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.published {
    background: #d4edda;
    color: #155724;
}

.status-badge.coming-soon {
    background: #fff3cd;
    color: #856404;
}

.type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.type-badge.game {
    background: rgba(52, 152, 219, 0.85);
    color: #fff;
}

.type-badge.tool {
    background: rgba(155, 89, 182, 0.85);
    color: #fff;
}

/* Filter Buttons */
.game-filters .filter-btn {
    display: inline-block;
    padding: 8px 20px;
    margin: 4px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.game-filters .filter-btn:hover,
.game-filters .filter-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Game Detail Page */
.game-detail-hero {
    position: relative;
    overflow: hidden;
}

.game-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.game-detail-hero .hero-content {
    position: relative;
    z-index: 2;
}

.game-detail-hero .game-logo {
    max-height: 80px;
    margin-bottom: 1rem;
}

.game-detail-hero .game-meta .meta-item {
    display: inline-block;
    margin-right: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.game-detail-hero .game-meta .meta-item i {
    margin-right: 6px;
}

.game-detail-hero .btn-download {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: #28a745;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-detail-hero .btn-download:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: #fff;
}

.game-detail-hero .btn-download i {
    margin-right: 8px;
}

/* Screenshots Gallery */
.screenshots-section .screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.screenshots-section .screenshot-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.screenshots-section .screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.screenshots-section .screenshot-item:hover img {
    transform: scale(1.05);
}

/* System Requirements */
.system-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.system-requirements h4 {
    color: #333;
    margin-bottom: 15px;
}

.system-requirements pre {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9rem;
    color: #495057;
}

/* Download Page */
.download-section .platform-group {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

.download-section .platform-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.download-section .platform-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.download-section .platform-header .platform-icon {
    margin-right: 10px;
    font-size: 1.3rem;
}

.download-section .version-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.download-section .version-item:last-child {
    border-bottom: none;
}

.download-section .version-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-section .version-number {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
}

.download-section .version-meta {
    color: #888;
    font-size: 0.85rem;
}

.download-section .latest-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.download-section .btn-download-sm {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #28a745;
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-section .btn-download-sm:hover {
    background: #218838;
    color: #fff;
}

.download-section .btn-download-sm i {
    margin-right: 6px;
}

.download-section .changelog-toggle {
    cursor: pointer;
    color: #667eea;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.download-section .changelog-toggle:hover {
    color: #764ba2;
}

.download-section .changelog-content {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #555;
    white-space: pre-wrap;
}

/* No Results */
.no-games {
    text-align: center;
    padding: 60px 20px;
}

.no-games .icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.no-games h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-games p {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .game-card .card-image {
        height: 180px;
    }

    .download-section .version-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
