@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap");

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

:root {
    --color: #ffbb00;
    --hover: #ffea00;
    --footer-color: #ffbb00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Spartan", sans-serif;
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #000;
    height: 100vh;
    background-position: relative;
    background-repeat: repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
}

#store-hero {
    margin-top: 90px;
    background-image: url("../media/hero-background.jpg");
    width: 100%;
    height: 40vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 14px;
}

#store-hero h2 {
    letter-spacing: 15px;
}

#store-hero p {
    letter-spacing: 5px;
    font-size: 12px;
}

#store-hero p a:hover {
    color: #0357b7;
}

#store-hero h2,
#store-hero p {
    color: #fff;
    margin-bottom: 30px;
}
.cards{
    width: 25%;
    margin-bottom: 20px;
    background-color: #000;
    border-radius: 5px;
    margin:10px;
    border: 0.5px solid rgb(70, 12, 56);
    box-sizing: border-box;
    text-align: center;
}

.image img{
    width: 100%;
    height: 350px;
    object-fit:fill;
    border-radius: 5px;
}
.title{
    text-align: center ;
    padding:5px;
}
.main{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 40px;
}
.des{
    text-align: center;
    padding: 6px;
}

button, .buy-btn {
    margin-top: 8px;
    margin-bottom: 8px;
    background: transparent;
    border: 2px solid var(--color);
    color: var(--color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

button:hover, .buy-btn:hover {
    background: var(--color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 187, 0, 0.3);
}

button:active, .buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 187, 0, 0.2);
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.store-header h1 {
    color: var(--color);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
}

.store-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-bar {
    position: relative;
    min-width: 250px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid rgba(255, 187, 0, 0.3);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--color);
    box-shadow: 0 0 15px rgba(255, 187, 0, 0.3);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color);
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 187, 0, 0.3);
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 0;
}

.filter-btn:hover {
    background: rgba(255, 187, 0, 0.1);
    border-color: var(--color);
    color: var(--color);
}

.filter-btn.active {
    background: var(--color);
    color: #000;
    border-color: var(--color);
}

.cards {
    width: 22%;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin: 8px;
    border: 1px solid rgba(255, 187, 0, 0.2);
    box-sizing: border-box;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    min-width: 200px;
}

.cards:hover {
    transform: translateY(-8px);
    border-color: var(--color);
    box-shadow: 0 15px 30px rgba(255, 187, 0, 0.2);
}

.image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

.cards:hover .image img {
    transform: scale(1.05);
}

.title {
    text-align: center;
    padding: 10px;
}

.title h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.category {
    background: var(--color);
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

.des {
    text-align: center;
    padding: 10px;
}

.price {
    color: var(--color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 10px;
    min-height: 30px;
}

.cart-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--color);
    color: var(--color);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.cart-message.success {
    border-color: #28a745;
    color: #28a745;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.no-games {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.7);
    grid-column: 1 / -1;
}

.no-games i {
    font-size: 4rem;
    color: var(--color);
    margin-bottom: 1rem;
}

.no-games h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 1200px) {
    .cards {
        width: 30%;
    }
}

@media (max-width: 768px) {
    .store-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .store-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-bar {
        min-width: 100%;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .cards {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .cards {
        width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}


#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }



#menu-toggle:checked ~ nav #navbar {
    display: flex;
    left: 0;
}

#burger-button {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    z-index: 2;
}

#burger-button .bar {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.3s;
}

#menu-toggle {
    display: none;
}

#menu-toggle:checked + #burger-button .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#menu-toggle:checked + #burger-button .bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked + #burger-button .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


@media only screen and (min-width: 1024px) {
    .main {
        justify-content: center;
        padding: 40px;
    }
    
    .cards {
        width: 30%;
        margin-bottom: 20px;
    }
    #burger-button {
        display: none;
    }

    #navbar {
        display: none;
        position: static;
        width: auto;
        background-color: transparent;
    }
}

@media only screen and (max-width: 1024px) and (min-width: 970px) {
    
    .main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding: 10px;
    }
    
    .cards {
        width: 40%;
        margin-bottom: 20px;
    }
    #logo img {
        max-height: 40px;
      }
    #navbar{
        margin-left: 0px;
        
    }
    #latest-games{
        text-align: center;
    }
    #burger-button {
        display: none;
    }
}
@media (min-width:768px) and (max-width:970px){
    
    #navbar li {
        line-height: 2;
        list-style: none;
    }

    #navbar li + li {
        margin-top: 10px;
    }
    #latest-games{
        text-align: center;
    }
    .main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding: 10px;
    }
    
    .cards {
        width: 40%;
        margin-bottom: 20px;
       
    }

    #burger-button {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    #menu-toggle:checked ~ nav {
        display: flex;
    }
}

@media only screen and (max-width: 768px) {
    #latest-games{
        text-align: center;
    }
    #navbar li {
        line-height: 2;
        list-style: none;
    }

    #navbar{
        display: flex;
        flex-direction: column;
        width:30vw;
        background-color: #000;
        }
    
    #navbar li + li {
        margin-top: 10px;
    }
    .main {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding: 10px;
    }
    
    .cards {
        width: 40%;
        margin-bottom: 20px;
    }

    #burger-button {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    #menu-toggle:checked ~ nav {
        display: flex;
    }
}

@media only screen and (max-width: 480px) {
    #navbar li {
        line-height: 2;
        list-style: none;
    }
    
    #navbar li + li {
        margin-top: 10px;
    }
    #latest-games{
        text-align: center;
    }#store-hero {
        height: 30vh;
    }
    
    #store-hero h2 {
        font-size: 1.2em;
        letter-spacing: 3px;
    }
    
    #store-hero p {
        font-size: 0.7em;
        letter-spacing: 1px;
    }
    
    .cards {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .image img {
        height: 200px;
    }
    
    button {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}
