/* 
 * Games Room styles for VonHoltenCodes site
 * Contains styles for the games list layout and components
 */

/* Games intro section */
.games-intro {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0 2rem 0;
    position: relative;
    border-left: 4px solid #ff4500; /* Red-Orange for games section */
    transition: border-left-color 0.3s ease;
}

body.night-mode .games-intro {
    border-left-color: #00ff00;
}

.games-intro h2 {
    color: #ff4500;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    transition: color 0.3s ease;
}

body.night-mode .games-intro h2 {
    color: #00ff00;
}

.games-intro p {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Games container */
.games-container {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0;
}

/* Vertical links layout */
.games-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.game-card {
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid #ff4500; /* Red-Orange for games section */
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ff4500, transparent);
    transition: background 0.3s ease;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
    background-color: rgba(255, 69, 0, 0.1);
}

.game-card:active {
    transform: translateY(1px);
}

.game-card .icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.game-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.game-card .card-title {
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.game-card .card-description {
    font-size: 14px;
    opacity: 0.8;
}

/* Night mode styles */
body.night-mode .game-card {
    border-color: #00ff00;
}

body.night-mode .game-card::before {
    background: linear-gradient(to right, transparent, #00ff00, transparent);
}

body.night-mode .game-card:hover {
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
    background-color: rgba(0, 255, 0, 0.1);
}

/* SVG icon styles */
.svg-icon {
    width: 40px;
    height: 40px;
    fill: #fff;
    transition: fill 0.3s ease;
}

.game-card:hover .svg-icon {
    fill: #ff4500;
}

body.night-mode .game-card:hover .svg-icon {
    fill: #00ff00;
}

/* Game difficulty badge */
.difficulty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.difficulty-easy {
    background-color: rgba(0, 128, 0, 0.7);
}

.difficulty-medium {
    background-color: rgba(255, 165, 0, 0.7);
}

.difficulty-hard {
    background-color: rgba(255, 0, 0, 0.7);
}

/* Coming soon badge */
.coming-soon {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(128, 128, 128, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    border-bottom-left-radius: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .games-container {
        padding: 0 15px;
    }
    
    .game-card {
        padding: 12px;
    }
    
    .game-card .icon-container {
        width: 48px;
        height: 48px;
    }
    
    .game-card .card-title {
        font-size: 16px;
    }
    
    .game-card .card-description {
        font-size: 12px;
    }
}