* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body {
    background-color: #44444E;
    color: #ffffff;
    min-height: 100vh;
}

/* ------------------ HEADER ------------------ */

header {
    background-color: #7300CB;
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 80%; 
    border-radius: 24px;
}

/* LOGO */

.logo-section {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
    color: #D3DAD9;
    font-family: Konkhmer Sleokchher;
}

.logo-section .logo {
    margin-right: 10px;
}

.logo-section .fa-shopping-basket {
    font-size: 20px;
}

/* SEARCH */

.search-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-bar {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    width: 100%;
    max-width: 300px;
}

.search-bar i {
    margin-right: 10px;
    color: #ffffff;
    opacity: 0.7;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #ffffff;
    outline: none;
    width: 100%;
}

.search-section .sell-button {
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 10px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

/* PROFILE */

.profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-info span {
    font-size: 14px;
}

.profile-icon {
    font-size: 30px;
}

/* ------------------ MAIN ------------------ */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* GAME CARDS */

.game-cards-section {
    display: flex;
    gap: 100px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.game-card {
    width: 23%;
    height: 300px;
    background-color: #282846;
    border-radius: 39px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LISTINGS */

.listings-section {
    background-color: #37353E;
    border-radius: 50px;
    overflow: hidden;
    padding: 20px;
}

.listing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1444;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.listing-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.listing-details img {
    width: 50px;
}

.listing-item .price {
    font-size: 16px;
    font-weight: bold;
    color: #8e80e8;
}

.listing-item .highlight-price {
    font-size: 18px;
    color: #ffffff;
}

/* ------------------ FOOTER ------------------ */

footer {
    background-color: #37353E;
    margin-top: 40px;
    padding: 20px 0;
}

.social-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-item i {
    font-size: 40px;
    color: #ffffff;
}

.social-item span {
    font-size: 14px;
    color: #cccccc;
    margin-top: 8px;
}

/* -------- button light ------*/
/* From Uiverse.io by JkHuger */ 
.l {
  display: block;
  margin-bottom: 1.5em;
  font-size: 1em;
  cursor: pointer;
}

.l {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 0.75em;
  box-shadow: 0.125em 0.125em 0 0.125em rgba(0, 0, 0, 0.3) inset;
  color: #fdea7b;
  display: inline-flex;
  align-items: center;
  margin: auto;
  padding: 0.15em;
  width: 3em;
  height: 1.5em;
  transition:
    background-color 0.1s 0.3s ease-out,
    box-shadow 0.1s 0.3s ease-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.l:before,
.l:after {
  content: "";
  display: block;
}

.l:before {
  background-color: #d7d7d7;
  border-radius: 50%;
  width: 1.2em;
  height: 1.2em;
  transition:
    background-color 0.1s 0.3s ease-out,
    transform 0.3s ease-out;
  z-index: 1;
}

.l:after {
  background:
    linear-gradient(transparent 50%, rgba(0, 0, 0, 0.15) 0) 0 50% / 50% 100%,
    repeating-linear-gradient(90deg, #bbb 0, #bbb, #bbb 20%, #999 20%, #999 40%)
      0 50% / 50% 100%,
    radial-gradient(circle at 50% 50%, #888 25%, transparent 26%);
  background-repeat: no-repeat;
  border: 0.25em solid transparent;
  border-left: 0.4em solid #d8d8d8;
  border-right: 0 solid transparent;
  transition:
    border-left-color 0.1s 0.3s ease-out,
    transform 0.3s ease-out;
  transform: translateX(-22.5%);
  transform-origin: 25% 50%;
  width: 1.2em;
  height: 1em;
  box-sizing: border-box;
}
/* Checked */
.l:checked {
  background-color: rgba(0, 0, 0, 0.45);
  box-shadow: 0.125em 0.125em 0 0.125em rgba(0, 0, 0, 0.1) inset;
}

.l:checked:before {
  background-color: currentColor;
  transform: translateX(125%);
}

.l:checked:after {
  border-left-color: currentColor;
  transform: translateX(-2.5%) rotateY(180deg);
}
body.light-theme .header-container{
    background-color: white;
    color: black;
}
body.light-theme {
    background-color: #f5f5f5;
    color: #222;
}

body.light-theme header {
    background-color: #e6e6e6;
}

body.light-theme .listing-item {
    background-color: #ffffff;
    color: #000;
}
/* --- Плавная анимация при смене темы --- */
body, 
header, 
.listing-item, 
footer, 
.game-card, 
.header-container {
    transition: background-color 0.4s ease, color 0.4s ease;
}
/* ===========================
   🌞 СВЕТЛАЯ ТЕМА (Light Theme)
   =========================== */

body.light-theme {
    background-color: #f2f2f7;
    color: #222;
}

/* ----- HEADER ----- */
body.light-theme header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.light-theme .header-container {
    background-color: #ffffff;
    color: #333;
}

body.light-theme .logo-section {
    color: #5a3ec8;
}

body.light-theme .search-bar {
    background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .search-bar i {
    color: #555;
}

body.light-theme .search-bar input {
    color: #333;
}

body.light-theme .sell-button {
    border-color: #5a3ec8;
    color: #5a3ec8;
}

/* ----- PROFILE ----- */
body.light-theme .profile-section span {
    color: #333;
}

body.light-theme .profile-icon {
    color: #5a3ec8;
}

/* ----- GAME CARDS ----- */
body.light-theme .game-card {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ----- LISTINGS ----- */
body.light-theme .listings-section {
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

body.light-theme .listing-item {
    background-color: #f8f8fb;
    border: 1px solid #ddd;
    color: #333;
}

body.light-theme .listing-item .price {
    color: #6c63ff;
}

body.light-theme .listing-item .highlight-price {
    color: #222;
}

/* ----- FOOTER ----- */
body.light-theme footer {
    background-color: #ffffff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

body.light-theme .social-item i {
    color: #5a3ec8;
}

body.light-theme .social-item span {
    color: #444;
}

/* ----- Плавный переход ----- */
body, header, .listing-item, footer, .game-card, .header-container {
    transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.listing-item {
    transition: transform 0.15s ease-out;
    will-change: transform;
}
.log{
    color: rgb(249, 249, 249);
    background-color: #8c3bcf;
    padding: 5px;
    border-radius: 20px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 0;
}
.log:hover{
    background-color: #8f73ff;
}
