/* General Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
    color: #eee;
}

.secondary-navbar {
    background: #111;
    border-bottom: 1px solid #333;
    padding: 10px 0;
    text-align: center;
}

.secondary-navbar a {
    color: #ccc;
    margin: 0 15px;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.secondary-navbar a:hover {
    background-color: #ffd700;
    color: #000;
}

/* Game Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Game Card */
.game-card {
    position: relative;
    background: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.game-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.game-card h3 {
    margin: 0;
    padding: 15px;
    font-size: 1.2em;
    color: #ffd700;
}

/* Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 99;
}

.game-overlay.active {
    opacity: 1;
    visibility: visible;
}

.game-overlay h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

.game-overlay ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.game-overlay ul li {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #ddd;
}

.game-overlay button {
    background-color: #3a86ff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.game-overlay button:hover {
    background-color: #335c9a;
}

/* Main Header */
header {
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 2px solid #ffd700;
    flex-wrap: wrap;
}
.logo img {
    height: 40px;
}
.user-info {
    position: relative;
}
.user-dropdown {
    cursor: pointer;
    color: #fff;
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 35px;
    background-color: #111;
    border: 1px solid #333;
    min-width: 180px;
    z-index: 99;
    border-radius: 6px;
}
.dropdown-content a {
    color: #ccc;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}
.dropdown-content a:hover {
    background-color: #222;
    color: #ffd700;
}
.user-info:hover .dropdown-content {
    display: block;
}
.cart-icon {
    display: inline-block;
    margin-left: 15px;
    position: relative;
}
.cart-icon img {
    width: 28px;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    cursor: pointer;
    padding: 10px;
    background-color: #000;
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #000;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #444;
}

.user-dropdown-wrapper:hover .dropdown-content {
    display: block;
}