@import url('/Vazirmatn-font-face.css');

:root {
    --steam-darkest: #0f1726;  
    --steam-darker: #16202b;   
    --steam-card-bg: #1b2533; 
    --steam-hover: #2a3a4d;  

    --text-main: #f1f5f9;       
    --text-bright: #ffffff;   
    --text-dim: #9fb0c9;       

    --itch-primary: #2ea0f2; 
    --itch-primary-hover: #4ab4ff; 
    --itch-accent: #f6c21a; 
}

.auth-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.auth-logo img {
  width: 160px;
  max-width: 70%;
  height: auto;
  display: block;
}
.pw-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #cfcfcf;
}
.icon-eye { display: none; }
.pw-toggle .icon-open { display: inline-block; }
.pw-toggle.visible .icon-open { display: none; }
.pw-toggle.visible .icon-closed { display: inline-block; }
.pw-toggle:focus { outline: 2px solid #6ea8fe; border-radius: 6px; }

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    background-color: var(--steam-darker);
    color: var(--text-main);
    font-family: 'Vazirmatn', 'Lato', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.top-bar {
    background: var(--steam-darkest);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 13px 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-bright);
    letter-spacing: 1px;
    margin-left: 15px;
}

.main-nav {
    display: flex;
    gap: 15px;
}

    .main-nav .nav-item {
        color: var(--text-dim);
        text-transform: uppercase;
        font-size: 12px;
        font-weight: 700;
        padding: 5px 10px;
        border-radius: var(--radius-sm);
    }

        .main-nav .nav-item:hover {
            color: var(--text-bright);
            background: rgba(255,255,255,0.1);
        }

        .main-nav .nav-item.active {
            color: var(--text-bright);
        }

.btn-install {
    background: var(--itch-primary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s, transform 0.1s;
    border: none;
}

    .btn-install:hover {
        background: var(--itch-primary-hover);
        transform: translateY(-1px);
        color: white;
    }

.secondary-bar {
    background: var(--steam-darker);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.menu-item {
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 5px 10px;
}

    .menu-item:hover {
        color: var(--text-bright);
        text-decoration: underline;
    }

.search-wrapper {
    position: relative;
}

.search-input {
    background: var(--steam-card-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 8px 15px;
    color: var(--text-bright);
    width: 220px;
    outline: none;
    transition: all 0.2s;
}

    .search-input:focus {
        background: #1e4a6e;
        border-color: var(--itch-primary);
        box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
    }

    .search-input::placeholder {
        color: var(--text-dim);
    }

.search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
}

.sidebar {
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    padding: 15px;
    height: fit-content;
}

.sidebar-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

    .sidebar-list li a {
        display: block;
        padding: 8px 10px;
        border-radius: var(--radius-sm);
        color: var(--text-main);
        transition: background 0.15s;
    }

        .sidebar-list li a:hover {
            background: var(--steam-card-bg);
            color: var(--text-bright);
            padding-right: 15px;
        }

.feature-spotlight {
    position: relative;
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.spotlight-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.5);
    transform: scale(1.05);
    transition: transform 5s ease;
}

.feature-spotlight:hover .spotlight-bg {
    transform: scale(1.1);
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--steam-darker) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
}

.spotlight-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    z-index: 2;
}

    .spotlight-content h1 {
        font-size: 42px;
        font-weight: 900;
        margin: 0 0 10px 0;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
        color: var(--text-bright);
    }

.spotlight-meta {
    color: var(--text-dim);
    margin-bottom: 15px;
}

.spotlight-tags {
    margin-bottom: 20px;
}

    .spotlight-tags .tag {
        display: inline-block;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(5px);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        color: white;
        margin-left: 5px;
        border: 1px solid rgba(255,255,255,0.1);
    }

.spotlight-buy {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.6);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
}

.discount-percent {
    background: var(--itch-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 16px;
}

.final-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-bright);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-dim);
    font-size: 14px;
}

.btn-cart {
    background: var(--itch-primary);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-cart:hover {
        background: white;
        color: var(--itch-primary);
        transform: scale(1.05);
    }

.content-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 25px;
}

.tab {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 5px;
    cursor: pointer;
    position: relative;
    top: 2px;
}

    .tab.active {
        color: var(--text-bright);
        border-bottom: 2px solid var(--itch-primary);
    }

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.game-card {
    background: var(--steam-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

    .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.4);
        border-color: var(--itch-primary);
    }

.card-img-top {
    position: relative;
    aspect-ratio: 460/215;
    overflow: hidden;
}

    .card-img-top img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

.game-card:hover .card-img-top img {
    transform: scale(1.05);
}

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--itch-primary);
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dim);
}

.rating {
    color: #f5a623;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-price-action {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-text {
    font-weight: 700;
    color: var(--text-bright);
    font-size: 13px;
}

.original-text {
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-left: 5px;
}

.site-footer {
    background: var(--steam-darkest);
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 12px;
}

.footer-links a {
    margin-left: 15px;
}

    .footer-links a:hover {
        color: var(--itch-primary);
    }

@media (max-width: 768px) {
    .feature-spotlight {
        height: 350px;
    }

    .spotlight-content h1 {
        font-size: 28px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .sidebar {
        display: none;
    }
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px 0;
    background: #16202b;
}

.auth-card {
    background: var(--primary-gradient);
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

    .auth-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--itch-primary);
    }

.auth-toggle {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 4px;
}

.auth-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 10px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .auth-toggle-btn.active {
        background: var(--itch-primary);
        color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: var(--steam-darker);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 12px 15px;
    color: var(--text-bright);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .form-input:focus {
        outline: none;
        border-color: var(--itch-primary);
        box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    }

    .form-input::placeholder {
        color: rgba(255,255,255,0.3);
    }

.btn-submit {
    width: 100%;
    background: var(--itch-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

    .btn-submit:hover {
        background: var(--itch-primary-hover);
    }

    .btn-submit:active {
        transform: scale(0.98);
    }

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 13px;
    color: var(--text-dim);
}

    .auth-links a {
        color: var(--text-bright);
        font-weight: 500;
    }

        .auth-links a:hover {
            color: var(--itch-primary);
        }

.auth-form-section {
    display: none;
}

    .auth-form-section.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.vault-wrapper {
    position: relative;
    display: inline-block;
}

.vault-badge {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

    .vault-badge i {
        color: var(--itch-primary);
        margin-left: 8px;
    }

    .vault-badge:hover {
        background: rgba(255,255,255,0.15);
        border-color: var(--itch-primary);
    }

.vault-amount {
    font-weight: bold;
}

.vault-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

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

.vault-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

    .vault-dropdown-item:hover {
        background: rgba(255,255,255,0.05);
        color: var(--itch-primary);
    }

    .vault-dropdown-item i {
        font-size: 0.8rem;
    }
@media (max-width: 768px) {
  /* مخفی کردن بک‌گراند یا افکت‌های wrapper */
  .auth-wrapper {
    background: none !important;
    padding: 0 !important;
    min-height: 100vh;
  }

  /* کارت را تمام صفحه کن */
  .auth-card {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* یا flex-start بسته به نیاز */
    align-items: stretch;
    overflow: auto;
  }

  /* اگر لوگو یا هدر داخل کارت دارید که باید جمع و جور شود */
  .auth-logo-wrapper {
    padding: 16px;
    text-align: center;
  }

  /* فرم داخل کارت را طوری تنظیم کن که اسکرول داخلی داشته باشد */
  .auth-form-section {
    flex: 1 1 auto;
    padding: 16px;
    overflow-y: auto;
  }
}
