/* ==================================== */
/* ========== OGÓLNE ========== */
/* ==================================== */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    cursor: url('Assets/Images/Coursor.png'), auto;
    padding-top: 100px;
    scroll-behavior: smooth;
    background-color: #FFFF;
}

/* ===================================== */
/* ========== PASKI I NAGŁÓWEK ========== */
/* ===================================== */
.Up-Line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(43, 43, 41, 0.9);
    backdrop-filter: blur(3px);
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transform: translateY(-100%);
    animation: slideDown 0.6s forwards ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

#PageName img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

#PageName:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.7));
}

.highlight {
    display: grid;
    grid-template-columns: repeat(var(--items), 2fr);
    position: relative;
    gap: 55px;
    align-items: center;
    margin-right: 20px;
}

.highlight > .line {
    background: #b99a0e;
    height: 3px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    bottom: -5px;
    width: calc(100% / var(--items));
}

.highlight > a:hover ~ .line,
.highlight > .account-container:hover ~ .line {
    opacity: 1;
}

.highlight > a:nth-of-type(1):hover ~ .line {
    transform: translateX(-17%);
}

.highlight > .account-container:hover ~ .line {
    transform: translateX(105%);
}

.highlight > a img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.highlight > a:hover img,
.highlight > .account-container:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(236, 236, 236, 0.7));
}

/* ==================================== */
/* ========== SEKCJA WYSZUKIWANIA ========== */
/* ==================================== */
.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 400px;
    height: 50px;
    max-width: 90%;
    background: #111;
    border: 2px solid #ffd500;
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.7);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.search-container:hover {
    box-shadow: 0 0 15px #f7a901, 0 0 5px rgba(255, 165, 0, 0.7);
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #ffd400;
    font-size: 1.1rem;
    padding: 8px 10px;
}

.search-container input::placeholder {
    color: rgba(255, 212, 0, 0.6);
    font-style: italic;
}

.search-container .search-btn {
    background: #ffd400;
    border: none;
    color: #111;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container .search-btn:hover {
    background: #ffea00;
    transform: scale(1.1);
    box-shadow: 0 0 10px #ffd400;
}

/* ================================== */
/* ========== OFERTY GIER ========== */
/* ================================== */
.game-offers {
    padding: 60px 20px;
    text-align: center;
    transform: translateY(-100%);
    animation: fadeInUp 1.5s forwards ease-out;
}

.game-offers h2 {
    font-size: 2.8rem;
    color: #ffd400;
    margin-bottom: 50px;
    text-shadow: 0 0 1px rgba(255, 165, 0, 0.7);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
    grid-auto-flow: row dense;
    justify-items: center;
}

.offers-grid.single-result {
    display: flex;
    justify-content: center;
    grid-template-columns: none;
}

.game-card {
    background: #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 45px rgba(255, 165, 0, 0.4);
}

.no-offers-found {
    font-size: 1.5em;
    color: #ffd500;
    text-align: center;
    margin: 50px auto;
    width: 100%;
    z-index: 100;
}

/* ==================================== */
/* ========== PODGLĄD GRY ========== */
/* ==================================== */
.slider-container {
    position: relative;
    width: 100%;
    height: 320px;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.0);
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.6rem;
    line-height: 1;
}

.slider-btn.prev-btn {
    left: 12px;
}

.slider-btn.next-btn {
    right: 12px;
}

.game-info {
    padding: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.game-info h3 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    color: #fff;
}

.game-info .description {
    font-size: 1em;
    color: #aaa;
    min-height: 45px;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.price-section .price {
    font-size: 1.7rem;
    font-weight: bold;
    color: #ffd500;
}

.add-to-cart-btn {
    background-color: #ffd500;
    color: #0f0f0f;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #ffea00;
    transform: scale(1.05);
}

/* ==================================== */
/* ========== SZCZEGÓŁY GRY ========== */
/* ==================================== */
.game-details-page {
    padding: 60px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.game-details-container {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .game-details-container {
        flex-direction: row;
    }
}

.game-gallery {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}

.gallery-btn {
    background: rgba(241, 239, 239, 0);
    color: #fff;
    border: none;
    padding: 18px;
    cursor: pointer;
    font-size: 2.2rem;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
}

.thumbnail-gallery img {
    width: 130px;
    height: 90px;
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail-gallery img.active {
    border-color: #ffd500;
}

.game-info-details {
    flex: 1;
    background: #1c1c1c;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.game-info-details h1 {
    font-size: 2.8rem;
    color: #ffd500;
    margin-bottom: 25px;
}

.game-info-details p {
    font-size: 1.2em;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 25px;
}

.game-details-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffd500;
    margin-bottom: 25px;
}

.large-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3em;
    text-transform: uppercase;
}

/* =================================== */
/* ========== ANIMACJE ========== */
/* =================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.game-details-container {
    animation: fadeIn 1s ease-in-out forwards;
}

.game-gallery,
.game-info-details {
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================== */
/* ========== GŁÓWNE ========== */
/* ==================================== */
.intro-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 90px 20px;
    color: #fff;
    margin-top: -60px;
}

.intro-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.main-heading {
    font-size: 3.2rem;
    color: #ffd400;
    text-shadow: 0 0 12px rgba(255, 165, 0, 0.7);
    margin-bottom: 25px;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 45px;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.btn {
    padding: 18px 35px;
    border-radius: 6px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.4);
}

.btn-login {
    background-color: #ffd500;
    color: #0f0f0f;
}

.btn-login:hover {
    background-color: #ffea00;
}

.btn-register {
    background-color: transparent;
    border: 2px solid #ffd500;
    color: #ffd500;
}

.btn-register:hover {
    background-color: #ffd500;
    color: #0f0f0f;
}

/* ==================================== */
/* ========== KONTO I KOSZYK ========== */
/* ==================================== */
.account-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 101;
    margin-right: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.account-dropdown {
    visibility: hidden;
    opacity: 0;
    width: 220px;
    background-color: #1c1c1c;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 12px 18px;
    position: absolute;
    z-index: 100;
    top: 65px;
    right: -60px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease-in-out;
    transform: translateY(-12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-dropdown.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.account-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 65px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #1c1c1c;
}

.account-dropdown p {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 12px;
    line-height: 1.5;
}

.dropdown-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dropdown-buttons .btn {
    width: 100%;
    padding: 10px 2px;
    font-size: 1em;
    font-weight: normal;
    border-radius: 5px;
    box-shadow: none;
}

.dropdown-buttons .btn-login {
    background-color: #ffd500;
    color: #0f0f0f;
    border: none;
}

.dropdown-buttons .btn-login:hover {
    background-color: #ffea00;
    transform: translateY(-2px);
}

.dropdown-buttons .btn-register {
    background-color: transparent;
    border: 1px solid #ffd500;
    color: #ffd500;
}

.dropdown-buttons .btn-register:hover {
    background-color: #ffd500;
    color: #0f0f0f;
    transform: translateY(-2px);
}

/* =================================== */
/* ========== FOOTER ========== */
/* =================================== */
.content p {
    margin: 60px;
    font-size: 2.2rem;
    opacity: 0;
    transform: translateY(-100%);
    animation: fadeInUp 2s forwards ease-out;
}

.copyright {
    text-align: center;
    padding-bottom: 35px;
    font-size: 1em;
    color: #444;
    transform: translateY(-100%);
    animation: slideDown 0.6s forwards ease-out;
}

.payment-methods {
    text-align: center;
    font-size: 1.2em;
    color: #444;
    transform: translateY(-100%);
    animation: slideDown 0.6s forwards ease-out;
}

.payment-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.payment-images img {
    width: 180px !important;
    height: 110px !important;
    object-fit: contain;
}

/* ==================================== */
/* ========== COOKIES ========== */
/* ==================================== */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 320px;
    background-color: #161616;
    color: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    font-family: sans-serif;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cookie-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cookie-button:hover {
    background-color: #45a049;
}

/* ==================================== */
/* ========== SOCIALE ========== */
/* ==================================== */
.social-text {
    text-align: center;
    font-size: 1.2em;
    color: #444;
    transform: translateY(-100%);
    animation: slideDown 0.6s forwards ease-out;
}

.social-links {
    margin-top: 45px;
    margin-bottom: 45px;
    text-align: center;
    font-size: 2.2em;
    color: #444;
    transform: translateY(-100%);
    animation: slideDown 0.6s forwards ease-out;
}

.socials-icon {
    margin-inline: 25px;
    color: #1c1c1c;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.socials-icon:hover {
    transform: scale(1.1);
}

/* ====================================== */
/* ========== SCROLLBAR | INNE ========== */
/* ====================================== */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #1f1f1f;
}

body::-webkit-scrollbar-thumb {
    background: #d3d3d3;
    border-radius: 6px;
}

/* Dodatkowe style dla strony koszyka, aby tekst był widoczny */
.cart-list {
    list-style: none;
    padding: 0;
}

.cart-list li {
    color: #333;
    font-size: 1.2em;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-list li:last-child {
    border-bottom: none;
}