/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    text-align: center;
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.game-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.game-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.game-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 30px;
}

.version-item {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.version-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.version-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.version-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-latest {
    background: #28a745;
    color: white;
}

.badge-stable {
    background: #17a2b8;
    color: white;
}

.badge-beta {
    background: #ffc107;
    color: #212529;
}

.version-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.version-features {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.version-features li {
    color: #495057;
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.version-features li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Version Links */
.version-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.version-link {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-download {
    background: #28a745;
    color: white;
}

.link-download:hover {
    background: #218838;
    transform: translateY(-1px);
}

.link-demo {
    background: #007bff;
    color: white;
}

.link-demo:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.link-changelog {
    background: #6c757d;
    color: white;
}

.link-changelog:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.link-github {
    background: #333;
    color: white;
}

.link-github:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

/* Icons for links */
.version-link::before {
    font-size: 0.8rem;
}

.link-download::before {
    content: "⬇️";
}

.link-demo::before {
    content: "🎮";
}

.link-changelog::before {
    content: "📝";
}

.link-github::before {
    content: "🔗";
}

footer {
    text-align: center;
    color: white;
    margin-top: 50px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .version-links {
        flex-direction: column;
    }
    
    .version-link {
        text-align: center;
        justify-content: center;
    }
}
