/*
Theme Name: PlaySet
Theme URI: https://playset.ir
Author: تیم PlaySet
Author URI: https://playset.ir
Description: قالب فروشگاهی و وبلاگ پلی‌ست، طراحی مدرن و تیره برای گیمرها و علاقه‌مندان به بازی
Version: 1.0.0
License: GPL v2 or later
Text Domain: playset
Domain Path: /languages
*/

:root {
    --bg-primary: #0a0e14;
    --bg-secondary: #11161e;
    --bg-card: #161c26;
    --bg-card-hover: #1c2330;
    --text-primary: #e8e6e3;
    --text-secondary: #b0b8c1;
    --text-muted: #7a8290;
    --accent-purple: #a855f7;
    --accent-purple-dark: #7c3aed;
    --accent-cyan: #22d3ee;
    --accent-cyan-dark: #0891b2;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --gradient-hero: linear-gradient(135deg, #1a0a2e 0%, #0f172a 40%, #0a1628 70%, #1a0a2e 100%);
    --gradient-btn: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --gradient-btn-hover: linear-gradient(135deg, #c084fc 0%, #8b5cf6 100%);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(168, 85, 247, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(168, 85, 247, 0.25);
    --shadow-neon: 0 0 20px rgba(168, 85, 247, 0.3);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
}

/* ===== Particles Background ===== */
.particles-bg {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    pointer-events: none; 
    z-index: 0; 
    overflow: hidden;
}
.particles-bg span {
    position: absolute; 
    display: block; 
    width: 3px; 
    height: 3px;
    background: var(--accent-purple); 
    border-radius: 50%;
    animation: floatUp linear infinite; 
    opacity: 0;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-10vh) scale(1.4); opacity: 0; }
}

/* ===== Header ===== */
.header {
    position: sticky; 
    top: 0; 
    z-index: 1000;
    background: rgba(10, 14, 20, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(10, 14, 20, 0.93);
    border-bottom-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.nav-container {
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 24px;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 68px;
}
.logo {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.6rem;
    font-weight: 900; 
    color: #fff; 
    text-decoration: none;
}
.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo span {
    background: linear-gradient(135deg, #c084fc, #22d3ee);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Navigation ===== */
.nav-links {
    display: flex; 
    list-style: none; 
    gap: 6px; 
    align-items: center;
}
.nav-links li { 
    list-style: none; 
}
.nav-links a {
    color: var(--text-secondary); 
    text-decoration: none; 
    padding: 8px 16px;
    border-radius: 25px; 
    font-weight: 500; 
    font-size: 0.93rem;
    transition: var(--transition); 
    position: relative; 
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links .current-menu-item a,
.nav-links .current_page_item a,
.nav-links .current_page_parent a {
    color: #fff; 
    background: rgba(168, 85, 247, 0.12);
}
.nav-links a.active::after,
.nav-links .current-menu-item a::after,
.nav-links .current_page_item a::after,
.nav-links .current_page_parent a::after {
    content: ''; 
    position: absolute; 
    bottom: 2px; 
    left: 50%;
    transform: translateX(-50%); 
    width: 20px; 
    height: 3px;
    background: var(--accent-cyan); 
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}
.nav-icons {
    display: flex; 
    align-items: center; 
    gap: 14px;
}
.cart-icon-wrap {
    position: relative; 
    cursor: pointer; 
    color: #fff; 
    font-size: 1.3rem;
    transition: var(--transition); 
    padding: 8px;
}
.cart-icon-wrap:hover {
    color: var(--accent-cyan); 
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}
.cart-count {
    position: absolute; 
    top: -2px; 
    right: -6px;
    background: var(--accent-pink); 
    color: #fff; 
    font-size: 0.68rem;
    font-weight: 700; 
    width: 20px; 
    height: 20px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}
.btn-login {
    background: var(--gradient-btn); 
    color: #fff; 
    border: none;
    padding: 9px 22px; 
    border-radius: 25px; 
    font-weight: 600;
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    cursor: pointer; 
    transition: var(--transition); 
    font-size: 0.9rem;
    white-space: nowrap; 
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-login:hover {
    background: var(--gradient-btn-hover);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
    color: #fff;
}
.hamburger {
    display: none; 
    background: none; 
    border: none;
    color: #fff; 
    font-size: 1.6rem; 
    cursor: pointer; 
    padding: 6px;
}

/* ============================================
   ساختار اصلی - تفکیک محتوا و سایدبرگ
   ============================================ */

/* === ساختار اصلی با گرید === */
.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 24px;
    position: relative;
    z-index: 1;
}

/* === بخش داخلی محتوای اصلی === */
.main-content-inner {
    min-width: 0;
    overflow: hidden;
}

/* === سایدبرگ === */
.main-content .sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ============================================
   چیدمان مجله‌ای دو ستونه
   ============================================ */

.mag-box {
    width: 100%;
}

.mag-box .container-wrapper {
    background: transparent;
    padding: 0;
}

.mag-box .mag-box-container {
    position: relative;
    width: 100%;
}

/* === عنوان آرشیو و جستجو === */
.archive-title,
.search-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding: 0 4px;
    color: #fff;
}

.archive-title span,
.search-title span {
    color: var(--accent-cyan);
}

/* === لیست پست‌ها === */
.mag-box .posts-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === هر آیتم پست === */
.mag-box .posts-items .post-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mag-box .posts-items .post-item:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
}

/* === تصویر شاخص === */
.mag-box .posts-items .post-item .post-thumb {
    display: block;
    height: 210px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.mag-box .posts-items .post-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mag-box .posts-items .post-item:hover .post-thumb img {
    transform: scale(1.06);
}

/* === آیکون جایگزین تصویر === */
.mag-box .posts-items .post-item .post-thumb .post-icon {
    font-size: 4rem;
    color: var(--accent-purple);
    opacity: 0.4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.mag-box .posts-items .post-item:hover .post-thumb .post-icon {
    opacity: 0.7;
    color: var(--accent-cyan);
}

/* === جزئیات پست === */
.mag-box .posts-items .post-item .post-details {
    padding: 18px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* === متادیتا === */
.mag-box .posts-items .post-item .post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mag-box .posts-items .post-item .post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mag-box .posts-items .post-item .post-meta .author-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.mag-box .posts-items .post-item .post-meta .date {
    color: var(--text-muted);
}

/* === عنوان پست === */
.mag-box .posts-items .post-item .post-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}

.mag-box .posts-items .post-item .post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.mag-box .posts-items .post-item .post-title a:hover {
    color: var(--accent-cyan);
}

/* === خلاصه متن === */
.mag-box .posts-items .post-item .post-excerpt {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

/* === برچسب‌ها === */
.mag-box .posts-items .post-item .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mag-box .posts-items .post-item .post-tags .tag {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.mag-box .posts-items .post-item .post-tags .tag:hover {
    background: var(--accent-purple);
    color: #fff;
}

/* ============================================
   صفحه‌بندی
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
    padding: 10px 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-numbers:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

/* ============================================
   Single Post (صفحه تک مقاله)
   ============================================ */
.article-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: var(--shadow-card);
}
.article-header { 
    margin-bottom: 24px; 
}
.article-header .category-badge {
    background: var(--accent-purple);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 14px;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
    text-decoration: none;
}
.article-header h1 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.article-meta {
    display: flex; 
    gap: 16px; 
    color: var(--text-muted);
    font-size: 0.85rem; 
    flex-wrap: wrap; 
    margin-bottom: 20px;
}
.article-meta span {
    display: flex; 
    align-items: center; 
    gap: 4px;
}
.article-featured-image {
    width: 100%;
    height: 300px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    overflow: hidden;
}
.article-featured-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}
.article-featured-image i {
    font-size: 6rem;
    color: var(--accent-purple);
    opacity: 0.6;
}
.article-content {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 1rem;
}
.article-content p {
    margin-bottom: 16px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}
.article-content h2, .article-content h3 {
    color: #fff;
    margin-top: 24px;
    margin-bottom: 12px;
}
.article-content ul, .article-content ol {
    padding-right: 24px;
    margin-bottom: 16px;
}
.article-content .wp-block-image {
    margin: 20px 0;
}
.article-content .wp-block-image figcaption {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 8px;
}

/* ============================================
   کامنت‌ها
   ============================================ */
.comments-section {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-top: 24px;
}
.comments-section h3 {
    font-weight: 800;
    margin-bottom: 20px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.comment {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.04);
}
.comment-author {
    font-weight: 700; 
    color: #fff; 
    margin-bottom: 4px;
}
.comment-date {
    font-size: 0.75rem; 
    color: var(--text-muted); 
    margin-right: 8px;
}
.comment-text {
    color: var(--text-secondary); 
    font-size: 0.9rem;
}
.comment-form { 
    margin-top: 20px; 
}
.comment-form h4 {
    margin-bottom: 16px;
}
.form-group { 
    margin-bottom: 16px; 
}
.form-group label {
    display: block; 
    margin-bottom: 6px; 
    font-weight: 500;
    color: var(--text-secondary);
}
.form-control {
    width: 100%; 
    padding: 12px 16px;
    border-radius: 25px; 
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; 
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    font-size: 0.9rem; 
    transition: var(--transition);
}
.form-control:focus {
    outline: none; 
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(168,85,247,0.2);
}
textarea.form-control {
    border-radius: var(--radius-md); 
    resize: vertical;
}
.btn-submit {
    background: var(--accent-purple); 
    color: #fff;
    border: none; 
    padding: 12px 28px; 
    border-radius: 25px;
    font-weight: 600; 
    cursor: pointer; 
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    transition: var(--transition);
}
.btn-submit:hover {
    background: var(--accent-cyan); 
    color: #000;
}

/* ============================================
   مطالب مرتبط
   ============================================ */
.related-posts { 
    margin-top: 40px; 
}
.related-posts h3 {
    font-weight: 800; 
    margin-bottom: 20px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.related-grid .post-card {
    background: var(--bg-card); 
    border-radius: var(--radius-lg);
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: var(--shadow-card); 
    transition: var(--transition);
    text-decoration: none; 
    color: inherit; 
    display: block;
}
.related-grid .post-card:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}
.related-grid .post-card-img {
    height: 120px; 
    background: var(--bg-secondary);
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-bottom: 1px solid rgba(168,85,247,0.2);
    overflow: hidden;
}
.related-grid .post-card-img img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}
.related-grid .post-card-img i {
    font-size: 2.5rem; 
    color: var(--accent-purple); 
    opacity: 0.6;
}
.related-grid .post-card-body {
    padding: 12px 16px;
}
.related-grid .post-card-body h5 {
    font-weight: 700; 
    color: #fff; 
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.related-grid .post-card-body .post-date {
    font-size: 0.75rem; 
    color: var(--text-muted);
}

/* ============================================
   سایدبار ویجت‌ها
   ============================================ */
.sidebar-widget {
    background: var(--bg-card); 
    border-radius: var(--radius-md);
    padding: 20px; 
    border: 1px solid rgba(255,255,255,0.04);
}
.sidebar-widget h4 {
    font-weight: 700; 
    margin-bottom: 16px;
    display: flex; 
    align-items: center; 
    gap: 8px;
    color: var(--accent-purple);
}
.sidebar-widget ul {
    list-style: none;
}
.sidebar-widget ul li {
    margin-bottom: 10px;
}
.sidebar-widget ul li a {
    color: var(--text-secondary); 
    text-decoration: none;
    display: flex; 
    justify-content: space-between;
    transition: var(--transition); 
    padding: 4px 0;
}
.sidebar-widget ul li a:hover {
    color: var(--accent-cyan); 
    padding-right: 8px;
}
.search-box {
    display: flex; 
    gap: 8px;
}
.search-input {
    flex-grow: 1; 
    padding: 10px 16px;
    border-radius: 25px; 
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; 
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    font-size: 0.9rem; 
    transition: var(--transition);
}
.search-input:focus {
    outline: none; 
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px rgba(168,85,247,0.2);
}
.search-btn {
    background: var(--accent-purple); 
    color: #fff;
    border: none; 
    padding: 10px 16px; 
    border-radius: 25px;
    cursor: pointer; 
    transition: var(--transition);
}
.search-btn:hover { 
    background: var(--accent-cyan); 
    color: #000; 
}
.category-count {
    background: rgba(168,85,247,0.2); 
    color: var(--accent-purple);
    border-radius: 15px; 
    padding: 2px 10px; 
    font-size: 0.8rem;
}
.tags-cloud {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px;
}
.tag {
    background: var(--bg-secondary); 
    color: var(--text-muted);
    padding: 6px 14px; 
    border-radius: 20px; 
    text-decoration: none; 
    transition: var(--transition);
}
.tag:hover {
    background: var(--accent-purple); 
    color: #fff;
    box-shadow: var(--shadow-neon);
}

/* ============================================
   فرم جستجو (صفحه خالی)
   ============================================ */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto 0;
}
.search-form label {
    flex: 1;
}
.search-form .search-field {
    width: 100%;
    padding: 12px 18px;
    border-radius: 25px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}
.search-form .search-submit {
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.search-form .search-submit:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* ============================================
   سبد خرید (سایدبار)
   ============================================ */
.cart-sidebar {
    position: fixed; 
    top: 0; 
    left: -420px; 
    width: 400px; 
    max-width: 90vw;
    height: 100vh; 
    background: var(--bg-secondary); 
    z-index: 2000;
    box-shadow: -8px 0 40px rgba(0,0,0,0.8);
    transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex; 
    flex-direction: column;
    border-right: 1px solid rgba(168,85,247,0.25);
}
.cart-sidebar.open { 
    left: 0; 
}
.cart-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.7); 
    z-index: 1999;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.4s;
}
.cart-overlay.show { 
    opacity: 1; 
    pointer-events: all; 
}
.cart-header {
    padding: 20px 24px; 
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}
.cart-header h3 { 
    font-weight: 800; 
}
.btn-close-cart {
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 1.4rem; 
    cursor: pointer;
}
.cart-items {
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 16px 24px;
    display: flex; 
    flex-direction: column; 
    gap: 14px;
}
.cart-footer {
    padding: 20px 24px; 
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cart-total {
    display: flex; 
    justify-content: space-between; 
    font-weight: 700;
    margin-bottom: 16px; 
    font-size: 1.1rem; 
    color: #fff;
}
.btn-checkout {
    width: 100%; 
    background: var(--gradient-btn); 
    color: #fff;
    border: none; 
    padding: 14px; 
    border-radius: 30px; 
    font-weight: 700;
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
    cursor: pointer; 
    transition: var(--transition);
}
.btn-checkout:hover {
    background: var(--gradient-btn-hover);
}

/* ============================================
   فوتر
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(168,85,247,0.2);
    margin-top: 50px; 
    padding: 30px 24px; 
    text-align: center;
    color: var(--text-muted); 
    font-size: 0.85rem; 
    position: relative; 
    z-index: 1;
}
.footer .social-links {
    display: flex; 
    gap: 16px; 
    justify-content: center; 
    margin-bottom: 14px;
}
.footer .social-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition);
}
.footer .social-links a:hover {
    color: var(--accent-cyan);
}
.footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   صفحه ۴۰۴
   ============================================ */
.error404 .main-content.without-sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}
.error404 .article-container {
    text-align: center;
    padding: 60px 30px;
    max-width: 600px;
}
.error404 .article-container .error-icon {
    font-size: 5rem;
    color: var(--accent-purple);
    opacity: 0.5;
    margin-bottom: 20px;
}
.error404 .article-container h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error404 .article-container .error-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ============================================
   رفع مشکل پس‌زمینه بنفش در صفحات برچسب و دسته‌بندی
   ============================================ */

/* غیرفعال کردن هوور در صفحه برچسب و دسته‌بندی */
body.tag .post-item,
body.category .post-item {
    transition: none !important;
}

body.tag .post-item:hover,
body.category .post-item:hover {
    transform: none !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
    background: var(--bg-card) !important;
}

body.tag .post-item .post-thumb img,
body.category .post-item .post-thumb img {
    transition: none !important;
}

body.tag .post-item:hover .post-thumb img,
body.category .post-item:hover .post-thumb img {
    transform: none !important;
}

body.tag .post-item:hover .post-thumb .post-icon,
body.category .post-item:hover .post-thumb .post-icon {
    opacity: 0.4 !important;
    color: var(--accent-purple) !important;
}

body.tag .post-item,
body.category .post-item {
    background: var(--bg-card) !important;
}

/* ===== تنظیم سایز فونت برای صفحه tag (همانند بقیه صفحات) ===== */
body.tag .post-item .post-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

body.tag .post-item .post-title a {
    color: #fff !important;
    font-size: inherit !important;
}

body.tag .post-item .post-title a:hover {
    color: var(--accent-cyan) !important;
}

body.tag .post-item .post-excerpt {
    font-size: 0.88rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.8 !important;
}

body.tag .post-item .post-meta {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
}

body.tag .post-item .post-meta .author-name {
    font-size: inherit !important;
    color: var(--text-secondary) !important;
}

body.tag .post-item .post-meta .date {
    font-size: inherit !important;
    color: var(--text-muted) !important;
}

body.tag .post-item .post-tags .tag {
    font-size: 0.7rem !important;
}

body.tag .particles-bg,
body.category .particles-bg {
    opacity: 0.15 !important;
}

body.tag,
body.category {
    background-color: var(--bg-primary) !important;
}

body.tag .main-content,
body.category .main-content {
    background-color: transparent !important;
}

/* ============================================
   واکنش‌گرایی (Responsive)
   ============================================ */

/* تبلت و صفحه‌های متوسط */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-content .sidebar {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .mag-box .posts-items {
        gap: 18px;
    }
    
    .mag-box .posts-items .post-item .post-thumb {
        height: 180px;
    }
    
    .article-header h1 {
        font-size: 1.6rem;
    }
}

/* موبایل بزرگ و تبلت کوچک */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 16px;
    }
    
    .main-content .sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .nav-links {
        display: none; 
        flex-direction: column; 
        position: absolute;
        top: 68px; 
        right: 0; 
        width: 100%;
        background: rgba(10,14,20,0.97); 
        backdrop-filter: blur(16px);
        padding: 16px 24px; 
        border-bottom: 1px solid rgba(168,85,247,0.3);
        gap: 4px;
    }
    .nav-links.show { 
        display: flex; 
    }
    .hamburger { 
        display: block; 
    }
    
    .mag-box .posts-items {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .mag-box .posts-items .post-item .post-thumb {
        height: 150px;
    }
    
    .mag-box .posts-items .post-item .post-details {
        padding: 14px 16px 18px;
    }
    
    .mag-box .posts-items .post-item .post-title {
        font-size: 0.95rem;
    }
    
    .mag-box .posts-items .post-item .post-excerpt {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    .mag-box .posts-items .post-item .post-meta {
        font-size: 0.7rem;
        gap: 10px;
    }
    
    .cart-sidebar { 
        width: 100%; 
        max-width: 100%; 
        left: -100%; 
    }
    
    .article-featured-image {
        height: 200px;
    }
    
    .article-header h1 {
        font-size: 1.4rem;
    }
    
    .article-container {
        padding: 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .main-content {
        padding: 16px 12px;
    }
    
    .mag-box .posts-items {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .mag-box .posts-items .post-item .post-thumb {
        height: 190px;
    }
    
    .mag-box .posts-items .post-item .post-details {
        padding: 16px 18px 20px;
    }
    
    .mag-box .posts-items .post-item .post-title {
        font-size: 1.05rem;
    }
    
    .mag-box .posts-items .post-item .post-excerpt {
        font-size: 0.85rem;
    }
    
    .archive-title,
    .search-title {
        font-size: 1.2rem;
    }
    
    .article-featured-image {
        height: 160px;
    }
    
    .article-header h1 {
        font-size: 1.2rem;
    }
    
    .article-container {
        padding: 16px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .btn-login {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* ============================================
   انیمیشن‌ها
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mag-box .posts-items .post-item {
    animation: fadeInUp 0.5s ease forwards;
}

.mag-box .posts-items .post-item:nth-child(2) {
    animation-delay: 0.05s;
}
.mag-box .posts-items .post-item:nth-child(3) {
    animation-delay: 0.10s;
}
.mag-box .posts-items .post-item:nth-child(4) {
    animation-delay: 0.15s;
}
.mag-box .posts-items .post-item:nth-child(5) {
    animation-delay: 0.20s;
}
.mag-box .posts-items .post-item:nth-child(6) {
    animation-delay: 0.25s;
}
.mag-box .posts-items .post-item:nth-child(7) {
    animation-delay: 0.30s;
}
.mag-box .posts-items .post-item:nth-child(8) {
    animation-delay: 0.35s;
}

/* ============================================
   اسکرول بار سفارشی
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ============================================
   انتخاب متن
   ============================================ */
::selection {
    background: var(--accent-purple);
    color: #fff;
}
::-moz-selection {
    background: var(--accent-purple);
    color: #fff;
}

/* ============================================
   کلاس‌های کمکی
   ============================================ */
.text-center {
    text-align: center;
}
.text-muted {
    color: var(--text-muted);
}
.mt-10 {
    margin-top: 10px;
}
.mt-20 {
    margin-top: 20px;
}
.mb-10 {
    margin-bottom: 10px;
}
.mb-20 {
    margin-bottom: 20px;
}
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}
/* ============================================
   برچسب‌ها (Tags) - جلوگیری از تغییر رنگ
   ============================================ */

/* برچسب‌های داخل پست */
.mag-box .posts-items .post-item .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mag-box .posts-items .post-item .post-tags .tag {
    background: var(--bg-secondary);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.mag-box .posts-items .post-item .post-tags .tag a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mag-box .posts-items .post-item .post-tags .tag a:visited,
.mag-box .posts-items .post-item .post-tags .tag a:active {
    color: var(--text-muted) !important;
}

.mag-box .posts-items .post-item .post-tags .tag:hover {
    background: var(--accent-purple);
}

.mag-box .posts-items .post-item .post-tags .tag:hover a {
    color: #fff !important;
}

/* برچسب‌های سایدبار */
.tags-cloud .tag {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tags-cloud .tag:visited,
.tags-cloud .tag:active {
    color: var(--text-muted) !important;
}

.tags-cloud .tag:hover {
    background: var(--accent-purple);
    color: #fff !important;
    box-shadow: var(--shadow-neon);
}

a[rel="category tag"]:visited {
    color: inherit !important;
}

.cat-links a:visited,
.post-categories a:visited,
.category-list a:visited {
    color: inherit !important;
}
/* ============================================
   استایل متای مقاله - هر بخش جداگانه
   ============================================ */

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* استایل مشترک همه متاها */
.article-meta .meta-author,
.article-meta .meta-date,
.article-meta .meta-category,
.article-meta .meta-comments {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* آیکون‌ها */
.article-meta .meta-author i,
.article-meta .meta-date i,
.article-meta .meta-category i,
.article-meta .meta-comments i {
    color: var(--accent-purple);
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

/* ===== استایل اختصاصی هر بخش ===== */

/* نویسنده */
.article-meta .meta-author {
    color: var(--text-secondary);
    font-weight: 500;
}

.article-meta .meta-author i {
    color: var(--accent-cyan);
}

/* تاریخ */
.article-meta .meta-date {
    color: var(--text-muted);
}

.article-meta .meta-date i {
    color: var(--accent-orange);
}

/* دسته‌بندی */
.article-meta .meta-category {
    color: var(--text-muted);
}

.article-meta .meta-category i {
    color: var(--accent-purple);
}

.article-meta .meta-category a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-meta .meta-category a:hover {
    color: var(--accent-cyan);
}

.article-meta .meta-category a:visited {
    color: var(--text-muted) !important;
}

/* تعداد نظرات */
.article-meta .meta-comments {
    color: var(--text-muted);
}

.article-meta .meta-comments i {
    color: var(--accent-pink);
}

.article-meta .meta-comments a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-meta .meta-comments a:hover {
    color: var(--accent-cyan);
}

/* ============================================
   واکنش‌گرایی متا
   ============================================ */
@media (max-width: 576px) {
    .article-meta {
        gap: 10px 16px;
        padding: 10px 0;
    }
    
    .article-meta .meta-author,
    .article-meta .meta-date,
    .article-meta .meta-category,
    .article-meta .meta-comments {
        font-size: 0.78rem;
    }
}
/* ============================================
   ویجت بازی‌های در راه
   ============================================ */
.upcoming-games-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-games-list li {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--accent-purple);
    transition: all 0.3s ease;
}

.upcoming-games-list li:hover {
    background: var(--bg-card-hover);
    border-right-color: var(--accent-cyan);
    transform: translateX(-4px);
}

.upcoming-games-list .game-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 3px;
}

.upcoming-games-list .game-link:visited {
    color: inherit;
}

.upcoming-games-list .game-link:active {
    color: inherit;
}

/* عنوان بازی */
.upcoming-games-list .game-title {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 2px;
}

.upcoming-games-list li:hover .game-title {
    color: var(--accent-cyan);
}

/* تاریخ انتشار - خط جداگانه */
.upcoming-games-list .game-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.upcoming-games-list .game-meta i {
    color: var(--accent-orange);
    font-size: 0.7rem;
}

/* پلتفرم‌ها - خط جداگانه */
.upcoming-games-list .game-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* رنگ‌های اختصاصی هر پلتفرم */
.upcoming-games-list .game-platform .fa-playstation {
    color: #0066ff;
    font-size: 0.9rem;
}

.upcoming-games-list .game-platform .fa-xbox {
    color: #107c10;
    font-size: 0.9rem;
}

.upcoming-games-list .game-platform .fa-desktop {
    color: #00b4d8;
    font-size: 0.9rem;
}

.upcoming-games-list .game-platform .fa-nintendo-switch {
    color: #e60012;
    font-size: 0.9rem;
}

.upcoming-games-list .game-platform .fa-steam {
    color: #1b2838;
    font-size: 0.9rem;
}
.article-content a,
.article-content a:visited {
    color: inherit;
    text-decoration: none;
}