/* Base Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #0f0f0f, #1a1a1a);
    color: #eee;
}

/* Header Styles */
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;
}

/* Dropdown Menu */
.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 */
.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;
}

.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 Card Styles */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.game-card {
    background-color: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    width: 220px;
    flex: 1 0 220px;
    max-width: 220px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.game-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.game-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.game-details {
    padding: 15px;
}

.game-details h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
    color: #ffd700;
}

.game-details p {
    font-size: 0.9em;
    color: #ccc;
    margin: 0;
}

/* Button Styles */
.game-actions button {
    background-color: #3a86ff;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 6px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.game-actions button:hover {
    background-color: #335c9a;
}

.in-cart {
    background-color: #4caf50;
}

.in-cart:hover {
    background-color: #3e8c3e;
}

/* Already Owned Button */
.owned {
    background-color: #555;
    color: #ccc;
    cursor: not-allowed;
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 8px;
    transition: background-color 0.3s;
}

.owned:hover {
    background-color: #666;
    color: #ddd;
}


.coming-soon {
    background-color: #555;
    color: #ddd;
    padding: 8px;
    border: none;
    border-radius: 6px;
    margin-top: 8px;
    width: 100%;
    font-weight: bold;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.coming-soon:hover {
    background-color: #777;
    color: #fff;
}

.disabled-game {
    background-color: #333;
    color: #888;
    padding: 8px;
    border: none;
    border-radius: 6px;
    margin-top: 8px;
    width: 100%;
    font-weight: bold;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.disabled-game:hover {
    background-color: #444;
    color: #bbb;
}

/* Clear Cart Button */
.clear-cart-button {
    background-color: #aa3333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
    font-weight: bold;
    transition: background-color 0.3s;
}

.clear-cart-button:hover {
    background-color: #cc4444;
    color: #fff;
}

.game-list h2 {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}



.notification-content {
    flex-grow: 1;
}

.notification-banner h2 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.notification-banner p {
    margin: 0;
    font-size: 0.9em;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.notification-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.notification-banner .close-banner {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    margin-left: 20px;
    transition: color 0.3s;
}

.notification-banner .close-banner:hover {
    color: #ff4444;
}

.banner-content {
    flex-grow: 1;
    max-width: calc(100% - 40px);
}


/* Slide down animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .notification-banner {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .close-banner {
        margin-top: 10px;
    }
}

.popup-banners {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-banner {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-banner .popup-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-banner .popup-content h2 {
    margin: 0;
    font-size: 1.2em;
}

.popup-banner .popup-content p {
    margin: 0;
    font-size: 0.9em;
    color: #ddd;
}

.popup-banner .close-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.popup-banner .close-button:hover {
    color: #ff4444;
}

.popup-banner.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Updates Section */
.hero-secondary {
    text-align: center;
    color: #ffd700;
    margin: 40px 0 20px;
    font-size: 1.5em;
}

#updates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.update-item {
    background-color: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.update-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.update-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.update-item h3 {
    margin: 15px 15px 10px;
    font-size: 1.2em;
    color: #ffd700;
}

.update-item p {
    margin: 0 15px 15px;
    color: #ddd;
    font-size: 0.9em;
}

/* Footer Styles */
.advanced-footer {
    background-color: #111;
    color: #ccc;
    padding: 40px 20px;
    border-top: 1px solid #333;
}

.advanced-footer .footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    text-align: center;
}

.advanced-footer .footer-column {
    flex: 1;
    min-width: 220px;
}

.advanced-footer .footer-column h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.advanced-footer .footer-column ul {
    list-style-type: none;
    padding: 0;
}

.advanced-footer .footer-column ul li {
    margin-bottom: 10px;
}

.advanced-footer .footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.advanced-footer .footer-column ul li a:hover {
    color: #ffd700;
}

.advanced-footer .social-icons a {
    color: #ccc;
    margin-right: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.advanced-footer .social-icons a:hover {
    color: #ffd700;
}

.advanced-footer .footer-row p {
    margin-top: 20px;
    color: #888;
    font-size: 0.9em;
}

.new-release-banner {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff8800;
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
}

/* New Release Banner */
.banner.new-release {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #00b7ff;
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
}

/* Coming Soon Banner */
.banner.coming-soon {
    position: absolute;
    top: 50px;
    left: 10px;
    background-color: #91ff00;
    color: black;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 4px;
    z-index: 9;
    pointer-events: none;
}

/* Cart Container */
.cart-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #1c1c1c;
    color: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Cart Header */
.cart-container h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.cart-item img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #444;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h3 {
    font-size: 1.5em;
    margin: 0;
    color: #FFD700;
}

.cart-item-details p {
    margin: 5px 0;
    font-size: 1em;
}

/* Buttons */
.remove-button,
.clear-cart-button {
    background-color: #b30000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.remove-button:hover,
.clear-cart-button:hover {
    background-color: #ff0000;
}

/* Cart Summary */
.cart-summary {
    text-align: right;
    background-color: #2c2c2c;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.cart-summary h3 {
    font-size: 2em;
    margin: 0;
    color: #FFD700;
}

/* PayPal Button Container */
#paypal-button-container {
    margin-top: 20px;
}

/* Back to Store Button */
.back-to-store {
    display: inline-block;
    background-color: #444;
    color: #f4f4f4;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.back-to-store:hover {
    background-color: #666;
}

/* 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;
}

/* Key: show menu when hovering wrapper */
.user-dropdown-wrapper:hover .dropdown-content {
    display: block;
}
