/* ==========================================================================
   MAIN STYLE - SORTE DOBRADA (MODERN UI)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #020617; /* Darker Slate */
    color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Highlight Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, #1e293b 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: #ffd700;
    border-radius: 4px;
}

/* GAMES GRID */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.3);
}

.game-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-img img {
    transform: scale(1.1);
}

.game-info {
    padding: 15px;
    background: linear-gradient(to top, #0f172a, #1e293b);
}

.game-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f1f5f9;
}

/* Overriding specific card button for UI alignment */
.game-info .btn-register {
    width: 100%;
    margin-top: 0 !important;
    padding: 12px;
    font-size: 0.75rem !important;
    border-radius: 10px;
}

/* MODALS (Enhanced Design) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0f172a;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.btn-submit {
    width: 100%;
    background: #ffd700;
    color: #000;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* Responsive Grid Adjustments */
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .container {
        margin: 20px auto;
    }

    h2 {
        font-size: 1.4rem;
    }
}
