/*
Theme Name: MSCoinShop
Theme URI: https://mscoinshop.example
Author: MSCoinShop
Author URI: https://mscoinshop.example
Description: قالب فروشگاهی MSCoinShop برای فروش سکه و ارز داخل بازی‌ها و اکانت گیمینگ، به همراه سبد خرید و نوار اخبار متحرک.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mscoinshop
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #0b3154 0%, #050b16 45%, #02050a 100%);
    font-family: Tahoma, Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ---------- Header / Hero ---------- */

header.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 50px 20px 34px;
}

.coin-wrap {
    width: 92px;
    height: 92px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 18px rgba(255, 201, 77, 0.55));
    animation: spin 7s linear infinite;
    will-change: transform;
}

.logo-frame {
    position: relative;
    width: 190px;
    height: 190px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-frame::before {
    content: "";
    position: absolute;
    inset: -10px;
    background: conic-gradient(from 0deg, #00aaff, #5fd4ff, #ffe27a, #ffc94d, #00aaff);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    opacity: 0.55;
    filter: blur(6px);
    animation: coinFloat 3.5s ease-in-out infinite;
}

.brand-logo {
    position: relative;
    width: 168px;
    height: 168px;
    object-fit: cover;
    border-radius: 26px;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    filter: drop-shadow(0 0 18px rgba(0, 170, 255, 0.45));
    animation: coinFloat 3.5s ease-in-out infinite;
    border: 2px solid rgba(255, 201, 77, 0.65);
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo, .logo-frame::before { animation: none; }
}

@keyframes spin {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .coin-wrap { animation: none; }
}

h1 {
    font-size: clamp(38px, 7vw, 66px);
    letter-spacing: 3px;
    background: linear-gradient(90deg, #00aaff 0%, #5fd4ff 35%, #ffe27a 65%, #ffc94d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(0, 170, 255, 0.55)) drop-shadow(0 0 20px rgba(255, 201, 77, 0.35));
}

.subtitle {
    margin-top: 14px;
    color: #b9dfff;
    font-size: 18px;
    max-width: 560px;
    line-height: 1.9;
}

.hero-badges {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 201, 77, 0.5);
    background: rgba(255, 201, 77, 0.08);
    color: #ffc94d;
    font-size: 13px;
}

/* ---------- Game category quick nav ---------- */

nav.game-nav {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

nav.game-nav a {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 170, 255, 0.35);
    background: rgba(0, 170, 255, 0.05);
    color: #b9dfff;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: 0.2s;
}

nav.game-nav a:hover {
    border-color: #00aaff;
    color: #00aaff;
}

/* ---------- Product grid ---------- */

main {
    flex: 1;
    padding: 26px 20px 10px;
}

.section-title {
    text-align: center;
    color: #e9f7ff;
    font-size: 22px;
    margin: 30px 0 20px;
    letter-spacing: 1px;
}

.section-title span {
    color: #ffc94d;
}

.games-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.game-card {
    border: 1px solid rgba(0, 170, 255, 0.35);
    border-radius: 18px;
    background: rgba(0, 170, 255, 0.05);
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.06);
    transition: 0.25s;
}

.game-card:hover {
    border-color: rgba(0, 170, 255, 0.8);
    box-shadow: 0 0 24px rgba(0, 170, 255, 0.18);
    transform: translateY(-3px);
}

.game-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.game-icon {
    font-size: 28px;
}

.game-name {
    color: #00aaff;
    font-weight: bold;
    font-size: 16px;
}

.game-currency {
    display: block;
    color: #8fb9d4;
    font-size: 12px;
    margin-top: 2px;
}

.tiers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
}

.tier-amount {
    color: #e9f7ff;
}

.tier-price {
    color: #ffc94d;
    direction: ltr;
    font-family: Arial, sans-serif;
}

.order-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00aaff, #0066ff);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.2s;
}

.order-btn:hover {
    filter: brightness(1.12);
}

.note {
    max-width: 700px;
    margin: 30px auto 10px;
    text-align: center;
    color: #6f93ad;
    font-size: 12.5px;
    line-height: 1.9;
}

/* ---------- Footer (kept identical to the shop's existing footer) ---------- */

footer {
    width: 100%;
    margin-top: 30px;
    padding: 22px 20px;
    background: rgba(0, 15, 35, 0.88);
    border-top: 1px solid rgba(0, 170, 255, 0.7);
    backdrop-filter: blur(12px);
}

.contact-info {
    max-width: 1000px;
    margin: 0 auto 22px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.info-card {
    min-width: 250px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 170, 255, 0.45);
    border-radius: 16px;
    background: rgba(0, 170, 255, 0.06);
    text-align: center;
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.08);
}

.info-card .icon {
    font-size: 22px;
    margin-left: 7px;
}

.info-title {
    color: #00aaff;
    font-weight: bold;
    margin-bottom: 7px;
}

.email-link {
    display: block;
    direction: ltr;
    color: #e9f7ff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: 0.25s;
}

.email-link:hover {
    color: #00aaff;
}

.email-type {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #8fb9d4;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 170, 255, 0.35);
    background: rgba(0, 170, 255, 0.05);
    transition: 0.25s;
}

.social-link:hover {
    border-color: #00aaff;
    box-shadow: 0 0 16px rgba(0, 170, 255, 0.35);
}

.social-link img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.mydot {
    background: white;
}

.mydot img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    border-radius: 14px;
}

@media (max-width: 500px) {
    .socials {
        gap: 16px;
    }
    .section-title {
        font-size: 19px;
    }
}

/* ===== MS COIN SHOP PRO UPGRADE: BLUE / CYAN ONLY ===== */
:root{--blue:#00aaff;--cyan:#00e5ff;--deep:#030914;--panel:rgba(8,24,48,.78);--gold:#ffc94d}
body{background:radial-gradient(circle at 50% -10%,#0b5d96 0%,#07182c 28%,#02050b 72%);position:relative}
body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.22;background-image:linear-gradient(rgba(0,229,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(0,229,255,.08) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,#000,transparent 80%)}
header.hero{position:relative;padding:72px 20px 48px;overflow:hidden;background:linear-gradient(180deg,rgba(0,170,255,.08),transparent)}
header.hero:before,header.hero:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;filter:blur(55px);opacity:.22;pointer-events:none}
header.hero:before{background:#00aaff;top:-260px;right:-120px} header.hero:after{background:#00e5ff;bottom:-300px;left:-100px}
.coin-wrap{width:112px;height:112px;filter:drop-shadow(0 0 12px #00e5ff) drop-shadow(0 0 32px rgba(0,170,255,.7));animation:spin 9s linear infinite,coinFloat 3.5s ease-in-out infinite}
@keyframes coinFloat{50%{translate:0 -10px}}
h1{position:relative;font-size:clamp(44px,8vw,78px);background:linear-gradient(135deg,#fff 0%,#9feaff 35%,#00aaff 70%,#00e5ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 0 20px rgba(0,170,255,.45))}
.subtitle{font-size:19px;color:#d6efff;text-shadow:0 2px 18px rgba(0,0,0,.8)}
.hero-badges .badge{border-color:rgba(0,229,255,.45);background:linear-gradient(135deg,rgba(0,170,255,.16),rgba(0,229,255,.05));color:#dff9ff;box-shadow:inset 0 0 18px rgba(0,170,255,.06),0 0 18px rgba(0,170,255,.08)}
nav.game-nav{padding-bottom:18px;scrollbar-color:#00aaff #07182c} nav.game-nav a{background:rgba(4,20,42,.72);backdrop-filter:blur(12px);border-color:rgba(0,229,255,.24)} nav.game-nav a:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(0,170,255,.18);color:#fff}
.section-title{font-size:28px;margin-top:22px}.section-title span{color:var(--cyan);text-shadow:0 0 18px rgba(0,229,255,.35)}
.games-grid{gap:20px}.game-card{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(10,32,62,.92),rgba(3,11,24,.82));border-color:rgba(0,170,255,.25);box-shadow:0 14px 42px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.04)}
.game-card:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 25%,rgba(0,229,255,.07) 48%,transparent 72%);transform:translateX(-130%);transition:transform .7s ease}.game-card:hover:before{transform:translateX(130%)}
.game-card:hover{border-color:#00e5ff;box-shadow:0 18px 48px rgba(0,170,255,.22),0 0 0 1px rgba(0,229,255,.15);transform:translateY(-7px) scale(1.015)}
.game-icon{font-size:34px;filter:drop-shadow(0 0 10px rgba(0,229,255,.25))}.game-name{color:#fff;font-size:18px}.game-currency{color:#8ed8ff}.tier{border:1px solid rgba(255,255,255,.035);background:rgba(255,255,255,.035)}.tier:hover{background:rgba(0,170,255,.09)}
.order-btn{position:relative;overflow:hidden;background:linear-gradient(135deg,#0077ff,#00c8ff);box-shadow:0 10px 24px rgba(0,119,255,.25)}.order-btn:before{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.32) 50%,transparent 70%);transform:translateX(-130%);transition:.6s}.order-btn:hover:before{transform:translateX(130%)}.order-btn:hover{filter:brightness(1.1);transform:translateY(-2px)}
footer{background:linear-gradient(180deg,rgba(2,10,23,.94),rgba(0,6,15,.98));border-top-color:rgba(0,229,255,.55)}.info-card{background:rgba(0,170,255,.055);border-color:rgba(0,229,255,.24);transition:.25s}.info-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(0,170,255,.14);border-color:#00aaff}.info-title{color:#7fddff}.social-link{background:linear-gradient(145deg,rgba(0,170,255,.12),rgba(0,229,255,.03));border-color:rgba(0,229,255,.3)}
.note{background:rgba(0,170,255,.045);border:1px solid rgba(0,170,255,.12);border-radius:16px;padding:12px 18px}

/* ===== Cart ===== */

.tier {
    position: relative;
    padding-left: 46px;
}

.cart-add-btn {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: rgba(0, 170, 255, 0.18);
    color: #dff9ff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: 0.2s;
}

.cart-add-btn:hover {
    background: #00aaff;
    transform: translateY(-50%) scale(1.08);
}

.cart-fab {
    position: fixed;
    bottom: max(22px, env(safe-area-inset-bottom));
    left: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077ff, #00c8ff);
    border: none;
    box-shadow: 0 10px 26px rgba(0, 119, 255, 0.4);
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ffc94d;
    color: #1a1200;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 5, 12, 0.55);
    backdrop-filter: blur(2px);
    z-index: 2147483001;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
    touch-action: manipulation;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -100vw;
    width: min(360px, 88vw);
    height: 100%;
    background: linear-gradient(180deg, #061428, #020810);
    border-left: 1px solid rgba(0, 229, 255, 0.3);
    z-index: 2147483002;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,0.4);
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 600px) {
    .cart-panel {
        width: 100vw;
        border-left: none;
    }
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 170, 255, 0.25);
}

.cart-header h3 {
    color: #7fddff;
    font-size: 17px;
}

.cart-close {
    background: none;
    border: none;
    color: #8fb9d4;
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-empty {
    color: #6f93ad;
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

.cart-item {
    background: rgba(0, 170, 255, 0.06);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item-name {
    color: #e9f7ff;
    font-size: 13.5px;
}

.cart-item-amount {
    color: #8fb9d4;
    font-size: 12px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0, 170, 255, 0.35);
    background: rgba(0, 170, 255, 0.08);
    color: #dff9ff;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cart-item-qty {
    color: #e9f7ff;
    font-size: 13px;
    min-width: 16px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 17px;
    cursor: pointer;
    margin-right: 4px;
    padding: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cart-footer {
    padding: 16px 18px 20px;
    border-top: 1px solid rgba(0, 170, 255, 0.25);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    color: #e9f7ff;
    font-size: 15px;
    margin-bottom: 12px;
}

.cart-total-row span:last-child {
    color: #ffc94d;
    direction: ltr;
    font-family: Arial, sans-serif;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0077ff, #00c8ff);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.cart-note {
    margin-top: 10px;
    font-size: 11.5px;
    color: #6f93ad;
    text-align: center;
    line-height: 1.8;
}

/* ===== Game tabs (coins / accounts) ===== */

.game-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.game-tab {
    flex: 1;
    padding: 7px 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    background: rgba(0, 170, 255, 0.04);
    color: #8fb9d4;
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

.game-tab.active {
    background: linear-gradient(135deg, #0077ff, #00c8ff 55%, #ffc94d);
    color: white;
    border-color: transparent;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ===== News section ===== */

.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
}

.news-card {
    border: 1px solid rgba(0, 170, 255, 0.25);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(10,32,62,.7), rgba(3,11,24,.7));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-image-placeholder {
    aspect-ratio: 16 / 10;
    width: 100%;
    border: 1px dashed rgba(0, 229, 255, 0.4);
    background: rgba(0, 170, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6f93ad;
    font-size: 14px;
}

.news-image-placeholder .icon {
    font-size: 44px;
}

.news-body {
    padding: 20px 22px 24px;
}

.news-date {
    color: #7fddff;
    font-size: 13px;
}

.news-title {
    color: #e9f7ff;
    font-size: 19px;
    font-weight: bold;
    margin: 9px 0 8px;
}

.news-excerpt {
    color: #8fb9d4;
    font-size: 14.5px;
    line-height: 2;
}

/* ===== News ticker (scrolling line) ===== */

.news-ticker {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(0,170,255,.14), rgba(0,229,255,.06));
    border-bottom: 1px solid rgba(0, 229, 255, 0.35);
    padding: 9px 0;
}

.ticker-label {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: linear-gradient(90deg, transparent, #030914 55%);
    padding-left: 40px;
    color: #ffc94d;
    font-size: 12.5px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
}

.ticker-track {
    display: flex;
    width: max-content;
    direction: ltr;
    gap: 60px;
    animation: tickerScroll 15s linear infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #dff9ff;
    font-size: 13px;
    direction: rtl;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

</style>
