ehsan-dashboards/dashboards/blog/category.html

1839 lines
No EOL
111 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="fa" dir="rtl" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0">
<title>وبلاگ اکیپا | مرجع تخصصی بازی‌های گروهی، اتاق فرار و بردگیم</title>
<!-- Google Fonts: Vazirmatn for Persian typography -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<!-- Font Awesome 6 Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['Vazirmatn', 'system-ui', 'sans-serif'],
},
colors: {
ekipa: {
dark: '#070a13',
card: '#0f172a',
cardBorder: '#1e293b',
accent: '#8b5cf6',
neon: '#06b6d4',
fire: '#f43f5e',
amber: '#f59e0b',
emerald: '#10b981'
}
},
boxShadow: {
'glow-purple': '0 0 25px -5px rgba(139, 92, 246, 0.45)',
'glow-cyan': '0 0 25px -5px rgba(6, 182, 212, 0.45)',
'glow-card': '0 10px 30px -10px rgba(0, 0, 0, 0.7)'
}
}
}
}
</script>
<style>
/* Custom Scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #090d16;
}
::-webkit-scrollbar-thumb {
background: #334155;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #8b5cf6;
}
.no-scrollbar::-webkit-scrollbar {
display: none;
}
.no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* Glassmorphism utilities */
.glass-panel {
background: rgba(15, 23, 42, 0.82);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.text-shadow-sm {
text-shadow: 0 2px 4px rgba(0,0,0,0.85);
}
/* Keypad Shake for wrong lock */
@keyframes shake-wrong {
0%, 100% { transform: translateX(0); }
20%, 60% { transform: translateX(-6px); }
40%, 80% { transform: translateX(6px); }
}
.animate-shake {
animation: shake-wrong 0.4s ease-in-out;
}
/* Category Accordion Header for Desktop */
.cat-accordion-item {
transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease;
}
@media (min-width: 1024px) {
.cat-accordion-item {
flex: 1;
}
.cat-accordion-item:hover, .cat-accordion-item.active-accordion {
flex: 3.2;
}
.cat-accordion-item .accordion-caption {
opacity: 0;
max-height: 0;
transform: translateY(8px);
transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s, max-height 0.4s ease;
}
.cat-accordion-item:hover .accordion-caption, .cat-accordion-item.active-accordion .accordion-caption {
opacity: 1;
max-height: 100px;
transform: translateY(0);
}
}
</style>
</head>
<body class="bg-ekipa-dark text-slate-100 font-sans selection:bg-purple-600 selection:text-white antialiased min-h-screen flex flex-col overflow-x-hidden">
<!-- Toast Notification Box (No alert requirement) -->
<div id="toast-container" class="fixed top-20 sm:top-24 left-1/2 -translate-x-1/2 z-50 flex flex-col gap-2 pointer-events-none transition-all duration-300 w-11/12 max-w-md"></div>
<!-- Reading Progress Bar (Single Page) -->
<div id="reading-progress-bar" class="fixed top-0 left-0 right-0 h-1 bg-gradient-to-r from-purple-500 via-pink-500 to-cyan-400 z-50 transform origin-right scale-x-0 transition-transform duration-100 hidden"></div>
<!-- Global Header & Navigation -->
<header class="sticky top-0 z-40 glass-panel border-b border-white/5 transition-all duration-300">
<div class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 h-16 sm:h-20 flex items-center justify-between gap-3">
<!-- Brand Logo -->
<div class="flex items-center gap-2.5 sm:gap-3 cursor-pointer shrink-0" onclick="switchPage('landing')">
<div class="w-10 h-10 sm:w-12 sm:h-12 rounded-2xl bg-gradient-to-tr from-purple-600 via-pink-600 to-amber-500 flex items-center justify-center shadow-glow-purple">
<i class="fa-solid fa-dice-d20 text-white text-xl sm:text-2xl"></i>
</div>
<div>
<span class="text-xl sm:text-2xl font-black tracking-tight bg-gradient-to-r from-white via-slate-100 to-purple-300 bg-clip-text text-transparent">اکیپـا</span>
<span class="text-[10px] sm:text-xs font-semibold block text-purple-400 tracking-wider">مجله تخصصی بازی و دورهمی</span>
</div>
</div>
<!-- Desktop Navigation Menu -->
<nav class="hidden lg:flex items-center gap-1 bg-slate-900/60 p-1.5 rounded-2xl border border-white/5">
<a href="index.html" id="nav-landing" class="nav-tab-btn px-4 py-2 rounded-xl text-sm font-medium text-slate-300 hover:text-white hover:bg-white/5 transition flex items-center gap-1.5">
<i class="fa-solid fa-house-chimney text-xs"></i> صفحه اصلی وبلاگ
</a>
<a href="category.html" id="nav-category" class="nav-tab-btn px-4 py-2 rounded-xl text-sm font-medium text-white bg-purple-600/30 border border-purple-500/40 transition flex items-center gap-1.5">
<i class="fa-solid fa-layer-group text-xs"></i> دسته‌بندی موضوعی
</a>
<a href="single.html" id="nav-single" class="nav-tab-btn px-4 py-2 rounded-xl text-sm font-medium text-slate-300 hover:text-white hover:bg-white/5 transition flex items-center gap-1.5">
<i class="fa-solid fa-newspaper text-xs"></i> نمونه مقاله (سینگل)
</a>
<div class="h-4 w-px bg-white/10 mx-1"></div>
<a href="#newsletter-section" class="px-3 py-2 rounded-xl text-xs font-medium text-amber-400 hover:text-amber-300 transition flex items-center gap-1.5">
<i class="fa-solid fa-bell"></i> پیامک‌نامه
</a>
</nav>
<!-- Quick Action Buttons -->
<div class="flex items-center gap-2 sm:gap-3">
<!-- Search Trigger -->
<button onclick="openSearchModal()" class="w-9 h-9 sm:w-10 sm:h-10 rounded-xl bg-slate-800/80 hover:bg-slate-700/80 border border-white/10 flex items-center justify-center text-slate-300 hover:text-white transition" title="جستجو در مقالات">
<i class="fa-solid fa-magnifying-glass text-xs sm:text-sm"></i>
</button>
<!-- Mobile Menu Toggle Button -->
<button onclick="toggleMobileMenu()" class="lg:hidden w-9 h-9 sm:w-10 sm:h-10 rounded-xl bg-slate-800/80 border border-white/10 flex items-center justify-center text-slate-200">
<i class="fa-solid fa-bars text-base"></i>
</button>
<!-- CTA Member Button -->
<a href="#newsletter-section" class="hidden sm:flex items-center gap-2 px-3.5 sm:px-4 py-2 sm:py-2.5 rounded-xl bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-500 hover:to-indigo-500 text-white text-xs sm:text-sm font-bold shadow-lg shadow-purple-600/20 transition transform hover:-translate-y-0.5">
<i class="fa-solid fa-users-viewfinder"></i>
عضویت اکیپا
</a>
</div>
</div>
<!-- Mobile Dropdown Navigation -->
<div id="mobile-nav" class="hidden lg:hidden border-t border-white/10 bg-slate-900/98 backdrop-blur-xl px-4 py-3 space-y-2">
<a href="index.html" class="w-full text-right px-4 py-2.5 rounded-xl text-xs sm:text-sm font-medium text-slate-300 hover:bg-white/5 flex items-center gap-2">
<i class="fa-solid fa-house-chimney text-purple-400"></i> صفحه اصلی لندینگ
</a>
<a href="category.html" class="w-full text-right px-4 py-2.5 rounded-xl text-xs sm:text-sm font-medium text-white bg-purple-600/20 border border-purple-500/30 flex items-center gap-2">
<i class="fa-solid fa-layer-group text-cyan-400"></i> صفحه دسته‌بندی مقالات
</a>
<a href="single.html" class="w-full text-right px-4 py-2.5 rounded-xl text-xs sm:text-sm font-medium text-slate-300 hover:bg-white/5 flex items-center gap-2">
<i class="fa-solid fa-newspaper text-amber-400"></i> نمونه مقاله (سینگل)
</a>
</div>
</header>
<!-- Search Modal Overlay -->
<div id="search-modal" class="fixed inset-0 z-50 bg-black/80 backdrop-blur-md hidden flex items-start justify-center pt-20 sm:pt-24 px-4 transition-opacity">
<div class="bg-slate-900 border border-purple-500/30 rounded-3xl w-full max-w-2xl p-5 sm:p-6 shadow-2xl relative">
<button onclick="closeSearchModal()" class="absolute top-4 left-4 text-slate-400 hover:text-white text-lg">
<i class="fa-solid fa-xmark"></i>
</button>
<h3 class="text-base sm:text-lg font-bold text-white mb-3 sm:mb-4 flex items-center gap-2">
<i class="fa-solid fa-magnifying-glass text-purple-400"></i> جستجو در مجله اکیپا
</h3>
<div class="relative">
<input type="text" id="search-input" placeholder="عنوان مقاله، بازی یا ژانر مدنظرتان را بنویسید (مثلاً: اتاق فرار)..."
class="w-full bg-slate-800/90 border border-slate-700 rounded-2xl px-4 py-3 text-white placeholder-slate-400 focus:outline-none focus:border-purple-500 transition text-xs sm:text-sm">
</div>
<div class="mt-3 flex flex-wrap gap-1.5 sm:gap-2 text-[11px] sm:text-xs">
<span class="text-slate-400 self-center">داغ‌ترین‌ها:</span>
<button onclick="fillSearch('اسکیپ روم ترسناک')" class="px-2.5 py-1 rounded-lg bg-slate-800 text-purple-300 hover:bg-purple-900/50">#اسکیپ_روم_ترسناک</button>
<button onclick="fillSearch('نقش‌های شب مافیا')" class="px-2.5 py-1 rounded-lg bg-slate-800 text-purple-300 hover:bg-purple-900/50">#نقش‌های_مافیا</button>
<button onclick="fillSearch('بردگیم استراتژیک')" class="px-2.5 py-1 rounded-lg bg-slate-800 text-purple-300 hover:bg-purple-900/50">#بردگیم_کژوال</button>
</div>
</div>
</div>
<!-- MAIN WRAPPER FOR 3 PAGES -->
<main class="flex-grow">
<!-- ===============================================================
PAGE 1: LANDING PAGE (دست‌نخورده، کاملاً مطابق دیزاین اصلی اولیه)
=============================================================== -->
<div id="page-category" class="page-view block transition-all duration-300">
<!-- ۱. هدر کرکره‌ای ۵ بنره (در دسکتاپ اکاردئون هاور با کپشن، در موبایل ۵ بنر جدا با فاصله ۱۰px بدون کپشن) -->
<section class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 pt-4 sm:pt-6 pb-6">
<div class="flex items-center justify-between mb-3 sm:mb-4">
<div class="flex items-center gap-2">
<span class="w-2.5 h-6 bg-cyan-400 rounded-full"></span>
<div>
<h1 class="text-base sm:text-2xl font-black text-white">پرونده‌های طلایی و تجربیات برگزیده اسکیپ‌روم</h1>
<p class="text-[10px] sm:text-xs text-slate-400">کاوش عمیق در شاخص‌ترین سناریوهای سال به انتخاب منتقدان اکیپا</p>
</div>
</div>
<span class="text-[11px] text-purple-400 hidden sm:inline-block font-mono">CATEGORY: #ESCAPE_ROOMS</span>
</div>
<!-- کانتینر هدر کرکره‌ای ۵ بنره:
در موبایل: flex-col gap-[10px] و هر بنر ارتفاع ثابت h-28 (112px) بدون کپشن
در دسکتاپ: flex-row h-[360px] اکاردئون با هاور و کپشن
-->
<div class="flex flex-col lg:flex-row gap-[10px] lg:gap-3 h-auto lg:h-[380px] w-full select-none">
<!-- بنر ۱ -->
<div class="cat-accordion-item active-accordion relative rounded-2xl overflow-hidden h-28 lg:h-full cursor-pointer border border-white/10 group shadow-lg">
<img src="https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=800&q=80" alt="معمای باستانی" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-700">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/50 to-transparent"></div>
<div class="absolute top-2.5 right-2.5 z-10">
<span class="px-2 py-0.5 rounded-md bg-purple-900/80 backdrop-blur-md text-purple-200 text-[9px] sm:text-[10px] font-bold border border-purple-500/30">
#باستانی
</span>
</div>
<div class="absolute bottom-2.5 right-2.5 left-2.5 sm:bottom-4 sm:right-4 sm:left-4 z-10">
<h3 class="text-xs sm:text-base lg:text-lg font-black text-white group-hover:text-purple-300 transition-colors leading-tight">
معمای کتیبه‌های نفرین‌شده در مقبره فرعون
</h3>
<!-- فقط در دسکتاپ نمایش داده می‌شود؛ در موبایل پنهان است -->
<p class="accordion-caption hidden lg:block text-xs text-slate-300 mt-1 leading-relaxed">
کالبدشکافی مکانیسم‌های پنهان سنگ‌های وزنی و نحوه غوطه‌وری بازیکن در اتمسفر معابد تاریخی بدون یک قفل مکانیکی مدرن.
</p>
</div>
</div>
<!-- بنر ۲ -->
<div class="cat-accordion-item relative rounded-2xl overflow-hidden h-28 lg:h-full cursor-pointer border border-white/10 group shadow-lg">
<img src="https://images.unsplash.com/photo-1509198397868-475647b2a1e5?auto=format&fit=crop&w=800&q=80" alt="تیمارستان متروک" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-700">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/50 to-transparent"></div>
<div class="absolute top-2.5 right-2.5 z-10">
<span class="px-2 py-0.5 rounded-md bg-rose-900/80 backdrop-blur-md text-rose-200 text-[9px] sm:text-[10px] font-bold border border-rose-500/30">
#وحشت_روانی
</span>
</div>
<div class="absolute bottom-2.5 right-2.5 left-2.5 sm:bottom-4 sm:right-4 sm:left-4 z-10">
<h3 class="text-xs sm:text-base lg:text-lg font-black text-white group-hover:text-rose-300 transition-colors leading-tight">
تیمارستان متروک شماره ۹ و ترس از ناشناخته‌ها
</h3>
<p class="accordion-caption hidden lg:block text-xs text-slate-300 mt-1 leading-relaxed">
بررسی تکنیک‌های نوین مهندسی صدا، سنسورهای تاریکی و شوک‌های روانی بدون اعمال تماس فیزیکی مستقیم.
</p>
</div>
</div>
<!-- بنر ۳ -->
<div class="cat-accordion-item relative rounded-2xl overflow-hidden h-28 lg:h-full cursor-pointer border border-white/10 group shadow-lg">
<img src="https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=800&q=80" alt="سایبرپانک" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-700">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/50 to-transparent"></div>
<div class="absolute top-2.5 right-2.5 z-10">
<span class="px-2 py-0.5 rounded-md bg-cyan-900/80 backdrop-blur-md text-cyan-200 text-[9px] sm:text-[10px] font-bold border border-cyan-500/30">
#سایبرپانک
</span>
</div>
<div class="absolute bottom-2.5 right-2.5 left-2.5 sm:bottom-4 sm:right-4 sm:left-4 z-10">
<h3 class="text-xs sm:text-base lg:text-lg font-black text-white group-hover:text-cyan-300 transition-colors leading-tight">
پروتکل فرار از آزمایشگاه بیومتریک ۲۰۷۷
</h3>
<p class="accordion-caption hidden lg:block text-xs text-slate-300 mt-1 leading-relaxed">
رمزگشایی فایروال‌های صوتی، تابلوهای فرمان نئونی و پازل‌های برنامه‌ریزی‌شده با میکروکنترلرهای آردوینو.
</p>
</div>
</div>
<!-- بنر ۴ -->
<div class="cat-accordion-item relative rounded-2xl overflow-hidden h-28 lg:h-full cursor-pointer border border-white/10 group shadow-lg">
<img src="https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=800&q=80" alt="جنایی شرلوک" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-700">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/50 to-transparent"></div>
<div class="absolute top-2.5 right-2.5 z-10">
<span class="px-2 py-0.5 rounded-md bg-amber-900/80 backdrop-blur-md text-amber-200 text-[9px] sm:text-[10px] font-bold border border-amber-500/30">
#کارآگاهی
</span>
</div>
<div class="absolute bottom-2.5 right-2.5 left-2.5 sm:bottom-4 sm:right-4 sm:left-4 z-10">
<h3 class="text-xs sm:text-base lg:text-lg font-black text-white group-hover:text-amber-300 transition-colors leading-tight">
قتل در کافه لندن؛ معمای استنتاجی بدون چاشنی وحشت
</h3>
<p class="accordion-caption hidden lg:block text-xs text-slate-300 mt-1 leading-relaxed">
راهنمای تفکیک سرنخ‌های انحرافی از شواهد واقعی در اتاق‌های کارآگاهی نسل نو برای تیم‌های تحلیل‌گر.
</p>
</div>
</div>
<!-- بنر ۵ -->
<div class="cat-accordion-item relative rounded-2xl overflow-hidden h-28 lg:h-full cursor-pointer border border-white/10 group shadow-lg">
<img src="https://images.unsplash.com/photo-1543783207-ec64e4d95325?auto=format&fit=crop&w=800&q=80" alt="تئاتر تعاملی" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-700">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/50 to-transparent"></div>
<div class="absolute top-2.5 right-2.5 z-10">
<span class="px-2 py-0.5 rounded-md bg-emerald-900/80 backdrop-blur-md text-emerald-200 text-[9px] sm:text-[10px] font-bold border border-emerald-500/30">
#تئاتر_تعاملی
</span>
</div>
<div class="absolute bottom-2.5 right-2.5 left-2.5 sm:bottom-4 sm:right-4 sm:left-4 z-10">
<h3 class="text-xs sm:text-base lg:text-lg font-black text-white group-hover:text-emerald-300 transition-colors leading-tight">
نقش انتخاب‌های اخلاقی پلیرها در پایان‌بندی سناریو
</h3>
<p class="accordion-caption hidden lg:block text-xs text-slate-300 mt-1 leading-relaxed">
چگونه دیالوگ‌های رد و بدل شده با بازیگران می‌تواند سرنوشت خروج تیم از بازی را به کلی تغییر دهد؟
</p>
</div>
</div>
</div>
</section>
<!-- ۲. چیپست‌های فیلتر سطح ۲ و تاگل زمان مطالعه -->
<section class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 pb-4 sm:pb-6">
<div class="flex flex-col sm:flex-row items-center justify-between gap-3 glass-panel p-3 sm:p-4 rounded-xl sm:rounded-2xl">
<div class="flex items-center gap-1.5 sm:gap-2 overflow-x-auto no-scrollbar w-full sm:w-auto pb-1 sm:pb-0" id="subcat-chips">
<button onclick="filterSubCat('all', this)" class="subcat-chip shrink-0 px-3.5 py-1.5 rounded-xl bg-purple-600 text-white text-xs font-bold shadow-md">
همه زیرژانرها
</button>
<button onclick="filterSubCat('horror', this)" class="subcat-chip shrink-0 px-3.5 py-1.5 rounded-xl bg-slate-800 text-slate-300 hover:text-white text-xs font-medium">
🩸 وحشت و دلهره‌آور
</button>
<button onclick="filterSubCat('detective', this)" class="subcat-chip shrink-0 px-3.5 py-1.5 rounded-xl bg-slate-800 text-slate-300 hover:text-white text-xs font-medium">
🔍 معمایی و جنایی
</button>
<button onclick="filterSubCat('theatre', this)" class="subcat-chip shrink-0 px-3.5 py-1.5 rounded-xl bg-slate-800 text-slate-300 hover:text-white text-xs font-medium">
🎭 تئاتر تعاملی
</button>
<button onclick="filterSubCat('beginner', this)" class="subcat-chip shrink-0 px-3.5 py-1.5 rounded-xl bg-slate-800 text-slate-300 hover:text-white text-xs font-medium">
⚡ مناسب مبتدیان
</button>
</div>
<!-- تاگل زمان مطالعه -->
<div class="flex items-center gap-2 text-xs text-slate-400 w-full sm:w-auto justify-end">
<span class="text-[11px] text-slate-400">فیلتر مطالعه:</span>
<div class="inline-flex rounded-xl bg-slate-800/90 p-1 border border-white/5 text-[11px]">
<button onclick="setReadTimeFilter('all', this)" class="readtime-btn px-2.5 py-1 rounded-lg bg-purple-600 text-white font-bold">همه</button>
<button onclick="setReadTimeFilter('quick', this)" class="readtime-btn px-2.5 py-1 rounded-lg text-slate-300 hover:text-white">سریع (&lt;۵ د)</button>
<button onclick="setReadTimeFilter('deep', this)" class="readtime-btn px-2.5 py-1 rounded-lg text-slate-300 hover:text-white">پرونده (+۸ د)</button>
</div>
</div>
</div>
</section>
<!-- ۳. بنر کوییز هوشمند انتخاب بازی (Quick Finder Banner) -->
<section class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-3 sm:py-4">
<div class="relative rounded-2xl sm:rounded-3xl p-4 sm:p-6 bg-gradient-to-r from-indigo-950 via-purple-950 to-slate-900 border border-purple-500/30 shadow-xl overflow-hidden flex flex-col md:flex-row items-center justify-between gap-4">
<div class="flex items-center gap-3 sm:gap-4">
<div class="w-12 h-12 rounded-2xl bg-gradient-to-tr from-amber-400 to-orange-500 text-slate-950 flex items-center justify-center text-xl font-black shrink-0 shadow-lg shadow-amber-400/20">
<i class="fa-solid fa-wand-magic-sparkles"></i>
</div>
<div>
<h3 class="text-xs sm:text-base font-extrabold text-white">نمی‌دانی کدام بازی برای اکیپ شما مناسب‌تر است؟</h3>
<p class="text-[11px] sm:text-xs text-slate-300 mt-0.5">با پاسخ به ۳ سوال سریع، نزدیک‌ترین بازی به سلیقه و آستانه ترس تیم‌تان را پیدا کنید.</p>
</div>
</div>
<button onclick="openQuizModal()" class="w-full md:w-auto px-5 py-2.5 rounded-xl bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-400 hover:to-pink-400 text-white font-extrabold text-xs shadow-lg shadow-purple-600/30 transition transform hover:scale-105 active:scale-95 whitespace-nowrap">
شروع کوئیز هوشمند انتخاب بازی
</button>
</div>
</section>
<!-- ۴. ریتم اول مقالات دسته‌بندی: کارت شاخص عریض در کنار دو کارت متوسط -->
<section class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-4 sm:py-6">
<div class="flex items-center gap-2 mb-3 sm:mb-4">
<span class="w-2 h-5 bg-purple-500 rounded-full"></span>
<h2 class="text-sm sm:text-xl font-black text-white">ریتم اول: مقالات جریان‌ساز و ترند اتاق فرار</h2>
</div>
<div class="grid grid-cols-1 lg:grid-cols-12 gap-3 sm:gap-5">
<!-- کارت عریض شاخص (۸ ستون در دسکتاپ) -->
<div onclick="window.location.href='single.html'" class="lg:col-span-8 cursor-pointer group bg-slate-900 rounded-2xl sm:rounded-3xl p-3.5 sm:p-5 border border-white/10 hover:border-purple-500/50 transition flex flex-col sm:flex-row gap-3 sm:gap-5">
<div class="relative w-full sm:w-1/2 aspect-video sm:aspect-auto rounded-xl sm:rounded-2xl overflow-hidden shrink-0">
<img src="https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=800&q=80" alt="نقد شاخص" class="w-full h-full object-cover group-hover:scale-105 transition duration-500">
<span class="absolute top-2 right-2 px-2.5 py-1 rounded-xl bg-purple-600 text-white text-[10px] font-bold">منتخب منتقدان</span>
</div>
<div class="flex-1 flex flex-col justify-between py-1">
<div>
<div class="flex items-center gap-2 text-[10px] sm:text-xs text-purple-300 mb-1.5">
<span>ژانر وحشت روانشناختی</span>
<span>•</span>
<span>⏱ ۹ دقیقه مطالعه</span>
</div>
<h3 class="text-xs sm:text-lg font-black text-white group-hover:text-purple-300 transition leading-snug">
کالبدشکافی سناریوی راز جنگل سرخ؛ چگونه یک دکور مگامکانیک واقعیت را به چالش می‌کشد؟
</h3>
<p class="text-[11px] sm:text-xs text-slate-400 mt-2 line-clamp-3 leading-relaxed">
گزارش تیم تست اکیپا از تاریک‌ترین دکور فرار سال، آنالیز نحوه هدایت تیم توسط اکتور نگهبان و استانداردهای طراحی سیستم تهویه در دالان‌های زیرزمینی.
</p>
</div>
<div class="mt-3 pt-3 border-t border-white/5 flex items-center justify-between text-xs text-slate-400">
<span class="flex items-center gap-1.5"><i class="fa-solid fa-user-pen text-purple-400 text-[10px]"></i> سامان یزدانی</span>
<span><i class="fa-regular fa-eye ml-1 text-cyan-400"></i> ۵,۱۲۰ بازدید</span>
</div>
</div>
</div>
<!-- دو کارت متوسط در کنار هم (۴ ستون در دسکتاپ) -->
<div class="lg:col-span-4 flex flex-col gap-3 sm:gap-5">
<div onclick="window.location.href='single.html'" class="cursor-pointer group bg-slate-900 rounded-2xl p-3 sm:p-4 border border-white/10 hover:border-cyan-500/50 transition flex items-center gap-3">
<div class="relative w-24 h-24 rounded-xl overflow-hidden shrink-0">
<img src="https://images.unsplash.com/photo-1543783207-ec64e4d95325?auto=format&fit=crop&w=400&q=80" alt="معما خطی" class="w-full h-full object-cover group-hover:scale-105 transition">
<span class="absolute top-1 right-1 px-1.5 py-0.5 rounded bg-cyan-950/80 text-cyan-300 text-[8px] font-bold">پازل</span>
</div>
<div class="flex-1 min-w-0">
<span class="text-[9px] text-cyan-400 font-semibold block">مهندسی بازی</span>
<h4 class="text-xs font-bold text-white group-hover:text-cyan-300 transition line-clamp-2 leading-snug">
تفاوت پازل‌های خطی و غیرخطی در اسکیپ روم؛ چطور تیم تقسیم شود؟
</h4>
<span class="text-[10px] text-slate-400 mt-1 block">⏱ ۴ دقیقه مطالعه</span>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group bg-slate-900 rounded-2xl p-3 sm:p-4 border border-white/10 hover:border-amber-500/50 transition flex items-center gap-3">
<div class="relative w-24 h-24 rounded-xl overflow-hidden shrink-0">
<img src="https://images.unsplash.com/photo-1509198397868-475647b2a1e5?auto=format&fit=crop&w=400&q=80" alt="اکتور تئاتر" class="w-full h-full object-cover group-hover:scale-105 transition">
<span class="absolute top-1 right-1 px-1.5 py-0.5 rounded bg-amber-950/80 text-amber-300 text-[8px] font-bold">تئاتری</span>
</div>
<div class="flex-1 min-w-0">
<span class="text-[9px] text-amber-400 font-semibold block">هنرهای تعاملی</span>
<h4 class="text-xs font-bold text-white group-hover:text-amber-300 transition line-clamp-2 leading-snug">
نقش اکتور تئاتر در هدایت روانشناختی بازیکنان وحشت‌زده
</h4>
<span class="text-[10px] text-slate-400 mt-1 block">⏱ ۶ دقیقه مطالعه</span>
</div>
</div>
</div>
</div>
</section>
<!-- ۵. ریتم دوم مقالات دسته‌بندی: پوسترهای مستطیلی بلند -->
<section class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-4 sm:py-6">
<div class="flex items-center justify-between mb-3 sm:mb-4">
<div class="flex items-center gap-2">
<span class="w-2 h-5 bg-rose-500 rounded-full"></span>
<h2 class="text-sm sm:text-xl font-black text-white">ریتم دوم: کالکشن پوستری اتاق‌های سناریومحور</h2>
</div>
<span class="text-[10px] text-slate-400">فرمت پوستر عمودی</span>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-2.5 sm:gap-5">
<div onclick="window.location.href='single.html'" class="cursor-pointer group relative rounded-2xl overflow-hidden aspect-[9/13] bg-slate-900 border border-white/10 hover:border-purple-500/50 transition">
<img src="https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=600&q=80" alt="پرونده" class="w-full h-full object-cover group-hover:scale-105 transition duration-500">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/40 to-transparent"></div>
<div class="absolute bottom-0 inset-x-0 p-2.5 sm:p-3.5 z-10">
<span class="text-[9px] text-purple-300 block mb-0.5">ژانر کارآگاهی</span>
<h4 class="text-xs sm:text-sm font-bold text-white group-hover:text-purple-300 transition line-clamp-2 leading-snug">
پرونده ناپدید شدن کارآگاه در عمارت بلک‌هیل
</h4>
<div class="flex items-center justify-between text-[9px] text-slate-400 mt-1.5 pt-1.5 border-t border-white/10">
<span>⏱ ۶ د</span>
<span>👁 ۳.۱k</span>
</div>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group relative rounded-2xl overflow-hidden aspect-[9/13] bg-slate-900 border border-white/10 hover:border-rose-500/50 transition">
<img src="https://images.unsplash.com/photo-1509198397868-475647b2a1e5?auto=format&fit=crop&w=600&q=80" alt="پرونده" class="w-full h-full object-cover group-hover:scale-105 transition duration-500">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/40 to-transparent"></div>
<div class="absolute bottom-0 inset-x-0 p-2.5 sm:p-3.5 z-10">
<span class="text-[9px] text-rose-300 block mb-0.5">تسخیر روحی</span>
<h4 class="text-xs sm:text-sm font-bold text-white group-hover:text-rose-300 transition line-clamp-2 leading-snug">
احضار روح در کلیسای قرن هفدهم؛ خطرات و هیجان
</h4>
<div class="flex items-center justify-between text-[9px] text-slate-400 mt-1.5 pt-1.5 border-t border-white/10">
<span>⏱ ۸ د</span>
<span>👁 ۵.۴k</span>
</div>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group relative rounded-2xl overflow-hidden aspect-[9/13] bg-slate-900 border border-white/10 hover:border-cyan-500/50 transition">
<img src="https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&w=600&q=80" alt="پرونده" class="w-full h-full object-cover group-hover:scale-105 transition duration-500">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/40 to-transparent"></div>
<div class="absolute bottom-0 inset-x-0 p-2.5 sm:p-3.5 z-10">
<span class="text-[9px] text-cyan-300 block mb-0.5">اکشن و بقا</span>
<h4 class="text-xs sm:text-sm font-bold text-white group-hover:text-cyan-300 transition line-clamp-2 leading-snug">
فرار از پناهگاه زیرزمینی هسته‌ای قبل از اتمام اکسیژن
</h4>
<div class="flex items-center justify-between text-[9px] text-slate-400 mt-1.5 pt-1.5 border-t border-white/10">
<span>⏱ ۵ د</span>
<span>👁 ۴.۲k</span>
</div>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group relative rounded-2xl overflow-hidden aspect-[9/13] bg-slate-900 border border-white/10 hover:border-amber-500/50 transition">
<img src="https://images.unsplash.com/photo-1563089145-599997674d42?auto=format&fit=crop&w=600&q=80" alt="پرونده" class="w-full h-full object-cover group-hover:scale-105 transition duration-500">
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/40 to-transparent"></div>
<div class="absolute bottom-0 inset-x-0 p-2.5 sm:p-3.5 z-10">
<span class="text-[9px] text-amber-300 block mb-0.5">تاریخی اساطیری</span>
<h4 class="text-xs sm:text-sm font-bold text-white group-hover:text-amber-300 transition line-clamp-2 leading-snug">
هفت‌خوان رستم در اتاق فرار؛ تجسم افسانه‌های کهن ایرانی
</h4>
<div class="flex items-center justify-between text-[9px] text-slate-400 mt-1.5 pt-1.5 border-t border-white/10">
<span>⏱ ۷ د</span>
<span>👁 ۲.۸k</span>
</div>
</div>
</div>
</div>
</section>
<!-- ۶. ریتم سوم: گرید ساختاریافته مقالات در روبروی کاردسکشن پیشنهاد بازی با ایندیکیتور و فلش‌ها -->
<section class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-5 sm:py-8">
<div class="flex items-center gap-2 mb-4">
<span class="w-2 h-5 bg-amber-500 rounded-full"></span>
<h2 class="text-sm sm:text-xl font-black text-white">ریتم سوم: دانشنامه مقالات و پیشنهاد رزرو بازی‌های منتخب اکیپا</h2>
</div>
<div class="grid grid-cols-1 lg:grid-cols-12 gap-6 items-start">
<!-- سمت راست (در دسکتاپ): گرید مقالات ساختاریافته (۸ ستون) -->
<div class="lg:col-span-8 order-2 lg:order-1">
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3.5 sm:gap-4">
<div onclick="window.location.href='single.html'" class="cursor-pointer group bg-slate-900 rounded-2xl p-3 border border-white/10 hover:border-purple-500/40 transition flex flex-col justify-between">
<div>
<div class="relative aspect-video rounded-xl overflow-hidden mb-2">
<img src="https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=400&q=80" alt="مقاله" class="w-full h-full object-cover group-hover:scale-105 transition">
<span class="absolute top-1.5 right-1.5 px-2 py-0.5 rounded bg-purple-900/80 text-purple-200 text-[9px] font-bold">راهنما</span>
</div>
<h4 class="text-xs font-bold text-white group-hover:text-purple-300 transition line-clamp-2 leading-relaxed">
چگونه بدون هینت گرفتن از گیم‌مستر اتاق فرار را تمام کنیم؟
</h4>
</div>
<div class="mt-2 pt-2 border-t border-white/5 flex items-center justify-between text-[10px] text-slate-400">
<span>⏱ ۵ دقیقه</span>
<span>۱۴۰۵/۰۱/۱۲</span>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group bg-slate-900 rounded-2xl p-3 border border-white/10 hover:border-cyan-500/40 transition flex flex-col justify-between">
<div>
<div class="relative aspect-video rounded-xl overflow-hidden mb-2">
<img src="https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=400&q=80" alt="مقاله" class="w-full h-full object-cover group-hover:scale-105 transition">
<span class="absolute top-1.5 right-1.5 px-2 py-0.5 rounded bg-cyan-900/80 text-cyan-200 text-[9px] font-bold">تجهیزات</span>
</div>
<h4 class="text-xs font-bold text-white group-hover:text-cyan-300 transition line-clamp-2 leading-relaxed">
سنسورهای التراسونیک و مگنتی چگونه قفل‌ها را حذف کردند؟
</h4>
</div>
<div class="mt-2 pt-2 border-t border-white/5 flex items-center justify-between text-[10px] text-slate-400">
<span>⏱ ۶ دقیقه</span>
<span>۱۴۰۵/۰۱/۱۱</span>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group bg-slate-900 rounded-2xl p-3 border border-white/10 hover:border-rose-500/40 transition flex flex-col justify-between">
<div>
<div class="relative aspect-video rounded-xl overflow-hidden mb-2">
<img src="https://images.unsplash.com/photo-1509281373149-e957c6296406?auto=format&fit=crop&w=400&q=80" alt="مقاله" class="w-full h-full object-cover group-hover:scale-105 transition">
<span class="absolute top-1.5 right-1.5 px-2 py-0.5 rounded bg-rose-900/80 text-rose-200 text-[9px] font-bold">ایمنی</span>
</div>
<h4 class="text-xs font-bold text-white group-hover:text-rose-300 transition line-clamp-2 leading-relaxed">
دکمه‌های خروج اضطراری (Panic Buttons) در اتاق‌های تاریک
</h4>
</div>
<div class="mt-2 pt-2 border-t border-white/5 flex items-center justify-between text-[10px] text-slate-400">
<span>⏱ ۴ دقیقه</span>
<span>۱۴۰۵/۰۱/۱۰</span>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group bg-slate-900 rounded-2xl p-3 border border-white/10 hover:border-amber-500/40 transition flex flex-col justify-between">
<div>
<div class="relative aspect-video rounded-xl overflow-hidden mb-2">
<img src="https://images.unsplash.com/photo-1563089145-599997674d42?auto=format&fit=crop&w=400&q=80" alt="مقاله" class="w-full h-full object-cover group-hover:scale-105 transition">
<span class="absolute top-1.5 right-1.5 px-2 py-0.5 rounded bg-amber-900/80 text-amber-200 text-[9px] font-bold">مهندسی معما</span>
</div>
<h4 class="text-xs font-bold text-white group-hover:text-amber-300 transition line-clamp-2 leading-relaxed">
منحنی خستگی ذهن در ۲۰ دقیقه پایانی اسکیپ‌روم و راهکار آن
</h4>
</div>
<div class="mt-2 pt-2 border-t border-white/5 flex items-center justify-between text-[10px] text-slate-400">
<span>⏱ ۷ دقیقه</span>
<span>۱۴۰۵/۰۱/۰۹</span>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group bg-slate-900 rounded-2xl p-3 border border-white/10 hover:border-emerald-500/40 transition flex flex-col justify-between">
<div>
<div class="relative aspect-video rounded-xl overflow-hidden mb-2">
<img src="https://images.unsplash.com/photo-1543269865-cbf427effbad?auto=format&fit=crop&w=400&q=80" alt="مقاله" class="w-full h-full object-cover group-hover:scale-105 transition">
<span class="absolute top-1.5 right-1.5 px-2 py-0.5 rounded bg-emerald-900/80 text-emerald-200 text-[9px] font-bold">تیم‌ورک</span>
</div>
<h4 class="text-xs font-bold text-white group-hover:text-emerald-300 transition line-clamp-2 leading-relaxed">
ارتباط کلامی موثر: چرا فریاد زدن مانع باز شدن قفل‌هاست؟
</h4>
</div>
<div class="mt-2 pt-2 border-t border-white/5 flex items-center justify-between text-[10px] text-slate-400">
<span>⏱ ۵ دقیقه</span>
<span>۱۴۰۵/۰۱/۰۷</span>
</div>
</div>
<div onclick="window.location.href='single.html'" class="cursor-pointer group bg-slate-900 rounded-2xl p-3 border border-white/10 hover:border-purple-500/40 transition flex flex-col justify-between">
<div>
<div class="relative aspect-video rounded-xl overflow-hidden mb-2">
<img src="https://images.unsplash.com/photo-1509198397868-475647b2a1e5?auto=format&fit=crop&w=400&q=80" alt="مقاله" class="w-full h-full object-cover group-hover:scale-105 transition">
<span class="absolute top-1.5 right-1.5 px-2 py-0.5 rounded bg-purple-900/80 text-purple-200 text-[9px] font-bold">نقد بازی</span>
</div>
<h4 class="text-xs font-bold text-white group-hover:text-purple-300 transition line-clamp-2 leading-relaxed">
۱۰ اتاق فرار برتر تهران با دکورهای سینمایی چندطبقه
</h4>
</div>
<div class="mt-2 pt-2 border-t border-white/5 flex items-center justify-between text-[10px] text-slate-400">
<span>⏱ ۸ دقیقه</span>
<span>۱۴۰۵/۰۱/۰۵</span>
</div>
</div>
</div>
</div>
<!-- سمت چپ (در دسکتاپ): کاردسکشن شیک پیشنهاد بازی با ایندیکیتور و فلش‌های کنترل (۴ ستون) -->
<aside class="lg:col-span-4 order-1 lg:order-2 w-full">
<div class="relative rounded-3xl bg-gradient-to-b from-[#131b32] to-[#0c1222] border border-purple-500/40 p-4 sm:p-5 shadow-2xl overflow-hidden">
<!-- هدر کاردسکشن با دکمه‌های فلش کنترل -->
<div class="flex items-center justify-between mb-3 pb-3 border-b border-white/10">
<div>
<div class="flex items-center gap-1.5 text-[11px] font-bold text-purple-400">
<span class="w-2 h-2 rounded-full bg-purple-500 animate-ping"></span>
پل رزرو آنلاین اکیپا
</div>
<h3 class="text-xs sm:text-sm font-black text-white mt-0.5">بازی‌های پیشنهادی این دسته‌بندی</h3>
</div>
<!-- فلش‌های جلو و عقب -->
<div class="flex items-center gap-1.5">
<button onclick="prevCatGame()" title="قبلی" class="w-7 h-7 rounded-lg bg-white/5 hover:bg-purple-600 border border-white/10 flex items-center justify-center text-slate-200 transition-colors">
<i class="fa-solid fa-chevron-right text-xs"></i>
</button>
<button onclick="nextCatGame()" title="بعدی" class="w-7 h-7 rounded-lg bg-white/5 hover:bg-purple-600 border border-white/10 flex items-center justify-center text-slate-200 transition-colors">
<i class="fa-solid fa-chevron-left text-xs"></i>
</button>
</div>
</div>
<!-- محتوای اسلایدر بازی با انیمیشن روان -->
<div id="catGameCardContainer" class="transition-all duration-300">
<div class="relative h-44 rounded-2xl overflow-hidden mb-3 border border-white/10">
<img id="catGameImage" src="https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=600&q=80" alt="پوستر بازی" class="w-full h-full object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black/85 via-black/25 to-transparent"></div>
<span id="catGameBadge" class="absolute top-2.5 right-2.5 text-[10px] font-bold px-2.5 py-0.5 rounded-full bg-purple-600/90 text-white backdrop-blur-md">🔥 پرمخاطب‌ترین</span>
<span id="catGameRating" class="absolute top-2.5 left-2.5 text-[10px] font-bold px-2 py-0.5 rounded-md bg-amber-500 text-black">⭐ ۹.۸ / ۱۰</span>
<div class="absolute bottom-2.5 right-2.5 text-right">
<p id="catGameGenre" class="text-[10px] text-purple-300 font-semibold">اتاق فرار • دلهره‌آور</p>
<h4 id="catGameTitle" class="text-sm sm:text-base font-extrabold text-white">دخمه جن‌زده آرارات</h4>
</div>
</div>
<div class="grid grid-cols-2 gap-2 text-[11px] text-slate-300 mb-3 bg-white/[0.03] p-2.5 rounded-xl border border-white/5">
<div>📍 لوکیشن: <span id="catGameLocation" class="font-bold text-white">میرداماد</span></div>
<div>👥 ظرفیت: <span id="catGameCapacity" class="font-bold text-white">۴-۸ نفر</span></div>
<div>⏱️ سانس: <span id="catGameDuration" class="font-bold text-white">۸۰ دقیقه</span></div>
<div>🎯 سختی: <span id="catGameDifficulty" class="font-bold text-amber-400">سخت</span></div>
</div>
<div class="flex items-center justify-between gap-2 pt-1">
<div>
<span class="text-[9px] text-slate-400 block">شروع قیمت هر نفر:</span>
<span id="catGamePrice" class="text-xs sm:text-sm font-extrabold text-amber-400">۲۸۰,۰۰۰ تومان</span>
</div>
<button onclick="showToast('اتصال مستقیم به صفحه رزرو این سانس در پلتفرم اکیپا...', 'success')" class="px-4 py-2 sm:px-5 sm:py-2.5 rounded-xl text-xs font-bold text-white bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-500 shadow-lg shadow-purple-600/30 transition-all flex items-center gap-1.5 whitespace-nowrap">
<span>رزرو سانس در اکیپا</span>
<i class="fa-solid fa-arrow-left text-[10px]"></i>
</button>
</div>
</div>
<!-- ایندیکیتور نقطه‌ای (Dots Indicator) -->
<div class="flex items-center justify-center gap-2 mt-4 pt-3 border-t border-white/5">
<button onclick="goToCatGame(0)" class="cat-dot-ind w-6 h-1.5 rounded-full bg-purple-500 transition-all duration-300"></button>
<button onclick="goToCatGame(1)" class="cat-dot-ind w-2 h-1.5 rounded-full bg-white/20 hover:bg-white/40 transition-all duration-300"></button>
<button onclick="goToCatGame(2)" class="cat-dot-ind w-2 h-1.5 rounded-full bg-white/20 hover:bg-white/40 transition-all duration-300"></button>
<button onclick="goToCatGame(3)" class="cat-dot-ind w-2 h-1.5 rounded-full bg-white/20 hover:bg-white/40 transition-all duration-300"></button>
</div>
</div>
</aside>
</div>
</section>
<!-- ۷. باکس سراسری لینک‌های مربوط به دسته‌بندی -->
<section class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-5">
<div class="rounded-2xl p-5 bg-slate-900/80 border border-white/10 shadow-lg space-y-3">
<span class="text-xs font-bold text-slate-300 flex items-center gap-2">
<i class="fa-solid fa-link text-purple-400"></i> لینک‌های مرتبط با دسته‌بندی اتاق فرار:
</span>
<div class="flex flex-wrap gap-2 text-xs">
<a href="#" onclick="showToast('فیلتر اتاق‌های تهران فعال شد', 'info')" class="px-3 py-1.5 rounded-lg bg-white/5 hover:bg-purple-600/30 hover:text-purple-300 text-slate-400 transition">اتاق فرار ترسناک تهران</a>
<a href="#" onclick="showToast('فیلتر اتاق‌های بدون ترس فعال شد', 'info')" class="px-3 py-1.5 rounded-lg bg-white/5 hover:bg-purple-600/30 hover:text-purple-300 text-slate-400 transition">اسکیپ روم معمایی بدون چاشنی وحشت</a>
<a href="#" onclick="showToast('فیلتر تئاتر تعاملی فعال شد', 'info')" class="px-3 py-1.5 rounded-lg bg-white/5 hover:bg-purple-600/30 hover:text-purple-300 text-slate-400 transition">تئاترهای تعاملی با اکتور زنده</a>
<a href="#" onclick="showToast('فیلتر اتاق‌های کرج فعال شد', 'info')" class="px-3 py-1.5 rounded-lg bg-white/5 hover:bg-purple-600/30 hover:text-purple-300 text-slate-400 transition">اتاق فرار مهیج کرج و فردیس</a>
<a href="#" onclick="showToast('فیلتر اتاق‌های مبتدی فعال شد', 'info')" class="px-3 py-1.5 rounded-lg bg-white/5 hover:bg-purple-600/30 hover:text-purple-300 text-slate-400 transition">راهنمای انتخاب اولین اسکیپ‌روم</a>
</div>
</div>
</section>
<!-- ۸. بخش متنی و مقاله‌ای سئو ویژه دسته‌بندی (۳ سرفصل با ۳ پاراگراف عمیق ۶ خطی) -->
<section class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8 py-6 sm:py-10">
<div class="glass-panel rounded-2xl sm:rounded-3xl p-5 sm:p-10 border border-white/10 space-y-6 sm:space-y-8">
<div class="border-b border-white/5 pb-6 sm:pb-8">
<h3 class="text-sm sm:text-xl font-black text-white mb-2 sm:mb-3 flex items-center gap-2">
<span class="w-2 h-5 sm:w-2.5 sm:h-6 bg-purple-500 rounded-full shrink-0"></span>
استانداردهای ایمنی و مهندسی دکور در اتاق‌های فرار برگزیده اکیپا
</h3>
<p class="text-[11px] sm:text-sm text-slate-300 leading-relaxed text-justify">
یکی از ارکان بنیادین ارزیابی کارشناسان اکیپا در معرفی اتاق‌های فرار، تطابق کامل سازه بازی با استانداردهای بین‌المللی ایمنی و سلامت بازیکنان است. وجود خروجی‌های اضطراری بدون قفل (Panic Exits)، دکمه‌های توقف آنی بازی، روشنایی‌های اضطراری در هنگام قطع برق و سیستم‌های اطفاء حریق خودکار، حداقل شروط پذیرش یک مجموعه در پایگاه داده ما محسوب می‌شوند. فضاسازی‌های ترسناک هرگز نباید ایمنی فیزیکی افراد را در دالان‌های تاریک یا راه‌پله‌های شیب‌دار به خطر بیندازند. مجموعه‌های حرفه‌ای پیش از ورود تیم، با ارائه بریفینگ دقیق و بازبینی وضعیت تنفسی بازیکنان، بستری ایمن فراهم می‌آورند تا هیجان بدون دغدغه تجربه شود. وبلاگ اکیپا به عنوان دیده‌بان تخصصی این صنعت، همواره مجموعه‌ها را بر اساس چک‌لیست‌های مدون مهندسی ساختمان و سلامت تجهیزات مورد پایش دائمی قرار می‌دهد تا اطمینان خاطر بازیکنان تضمین گردد. ما معتقدیم آدرنالین واقعی تنها در محیطی جریان می‌یابد که امنیت روانی و جسمی تک‌تک اعضای اکیپ در آن به عنوان اصلی خدشه‌ناپذیر محترم شمرده شده باشد.
</p>
</div>
<div class="border-b border-white/5 pb-6 sm:pb-8">
<h3 class="text-sm sm:text-xl font-black text-white mb-2 sm:mb-3 flex items-center gap-2">
<span class="w-2 h-5 sm:w-2.5 sm:h-6 bg-cyan-500 rounded-full shrink-0"></span>
چگونه ترکیب تیمی و درجه سختی معماها را پیش از رزرو سانس هماهنگ کنیم؟
</h3>
<p class="text-[11px] sm:text-sm text-slate-300 leading-relaxed text-justify">
انتخاب یک اتاق فرار با درجه سختی ۹ از ۱۰ برای گروهی که برای نخستین بار پای به این دنیا می‌گذارند، معمولاً حاصلی جز استیصال و ناامیدی زودهنگام به همراه نخواهد داشت. ساختار معماها در بازی‌ها معمولاً به دو گونه خطی و غیرخطی تقسیم می‌شوند؛ در بازی‌های خطی تمام اعضا باید گام‌به‌گام بر روی یک پازل متمرکز شوند، در حالی که در بازی‌های مدرن غیرخطی، سرنخ‌ها به طور موازی پخش شده و نیازمند تقسیم وظایف موثر در اکیپ هستند. اگر ترکیب تیم شما شامل افراد درون‌گرا و تحلیل‌گر است، سناریوهای کارآگاهی و معماهای محاسباتی بدون اکتور ترسناک انتخابی رویایی خواهند بود. در مقابل، اکیپ‌های پرانرژی و به دنبال هیجان شدید، با سناریوهای تئاتر تعاملی و وحشت روانشناختی پیوندی عمیق‌تر برقرار خواهند کرد. خواندن دقیق نقدهای منتشر شده در وبلاگ اکیپا و بررسی شاخص‌های سختی به شما اجازه می‌دهد متناسب با روحیه جمع، بهترین سانس را رزرو کنید و از هدررفت بودجه تفریحی جلوگیری نمایید. شناخت استعدادهای فردی در اکیپ، کلید حل به‌موقع ناممکن‌ها و تجربه غرورآفرین رهایی از اتاق در دقایق پایانی است.
</p>
</div>
<div>
<h3 class="text-sm sm:text-xl font-black text-white mb-2 sm:mb-3 flex items-center gap-2">
<span class="w-2 h-5 sm:w-2.5 sm:h-6 bg-amber-500 rounded-full shrink-0"></span>
فلسفه نقد مستقل و بررسی بدون اسپویلر سناریوها در مجله تخصصی اکیپا
</h3>
<p class="text-[11px] sm:text-sm text-slate-300 leading-relaxed text-justify">
یکی از بزرگ‌ترین چالش‌های عاشقان اتاق فرار، مواجهه با نقدهای غیرواقعی یا لو رفتن نقاط اوج و معماهای بازی پیش از تجربه شخصی (اسپویل) است. خط مشی تحریریه اکیپا بر پایه راستی‌آزمایی میدانی، ناشناس ماندن تست‌کنندگان در حین بازی و عدم پذیرش هرگونه سفارش تبلیغاتی جهت دستکاری امتیازات بنا شده است. ما مکانیزم‌ها، کیفیت تعامل اکتورها و طراحی صوتی را بدون فاش کردن رمزها و پیچش‌های داستانی بررسی می‌کنیم تا هیجان کشف معما تمام و کمال برای خود بازیکن محفوظ بماند. شفافیت در بازتاب نقاط ضعف، از قفل‌های مستهلک گرفته تا تاخیر در پذیرش پرسنل، سبب شده است تا جامعه بازی‌دوستان به عنوان امین‌ترین مرجع تصمیم‌گیری به وبلاگ اکیپا اعتماد ورزند. هدف نهایی ما نه صرفاً معرفی اتاق‌ها، بلکه ارتقای ذائقه عمومی و هدایت طراحان به سمت آفرینش تجربیاتی خلاقانه، عمیق و شایسته وقت مخاطبان فرهیخته ایرانی است. با همراهی در این مسیر، شما نیز می‌توانید با ثبت نظرات بدون اسپویل پس از هر بازی، به تقویت این جامعه پویا و حرفه‌ای یاری رسانید.
</p>
</div>
</div>
</section>
</div>
<!-- ===============================================================
PAGE 3: SINGLE ARTICLE PAGE (صفحه تک‌مقاله تخصصی)
=============================================================== -->
</main>
<!-- MODAL: SMART ENTERTAINMENT FINDER QUIZ (سیستم پیشرفته پیشنهاد بازی و دسته‌بندی اکیپا) -->
<div id="quiz-modal" class="fixed inset-0 z-50 bg-black/85 backdrop-blur-md hidden flex items-center justify-center p-3 sm:p-4 transition-all duration-300">
<div class="bg-slate-900 border border-purple-500/40 rounded-3xl w-full max-w-xl p-5 sm:p-7 shadow-2xl relative overflow-hidden max-h-[92vh] overflow-y-auto">
<!-- Ambient Glows -->
<div class="absolute -top-14 -right-14 w-40 h-40 bg-purple-600/20 rounded-full blur-3xl pointer-events-none"></div>
<div class="absolute -bottom-14 -left-14 w-40 h-40 bg-pink-600/20 rounded-full blur-3xl pointer-events-none"></div>
<!-- Close Button -->
<button onclick="closeQuizModal()" class="absolute top-4 left-4 w-8 h-8 rounded-full bg-slate-800 text-slate-400 hover:text-white hover:bg-slate-700 flex items-center justify-center text-sm transition">
<i class="fa-solid fa-xmark"></i>
</button>
<!-- Quiz Header -->
<div class="flex items-center justify-between mb-2 pl-8">
<div class="flex items-center gap-2 text-purple-400 text-xs font-bold">
<i class="fa-solid fa-wand-magic-sparkles"></i> موتور هوشمند پیشنهاد بازی اکیپا
</div>
<span id="quiz-step-badge" class="px-2.5 py-0.5 rounded-full text-[10px] font-bold bg-purple-500/20 border border-purple-500/30 text-purple-300">گام ۱ از ۳: دسته‌بندی</span>
</div>
<!-- Progress Track -->
<div class="w-full bg-slate-800/80 h-1.5 rounded-full mb-4 overflow-hidden border border-white/5">
<div id="quiz-progress-bar" class="bg-gradient-to-r from-purple-500 via-pink-500 to-amber-400 h-full w-1/3 transition-all duration-300"></div>
</div>
<!-- Question Title & Description -->
<div id="quiz-question-header" class="mb-4">
<h3 class="text-base sm:text-lg font-black text-white" id="quiz-question-title">
گام اول: چه مدل سرگرمی و تجربه‌ای مد نظرتونه؟
</h3>
<p class="text-xs text-slate-400 mt-1" id="quiz-question-subtitle">
ابتدا دسته‌بندی اصلی سرگرمی مورد علاقه اکیپ را مشخص کنید:
</p>
</div>
<!-- Options Container -->
<div id="quiz-options-container" class="space-y-2.5">
<!-- Rendered via JS -->
</div>
<!-- Result Showcase Container -->
<div id="quiz-result-container" class="hidden space-y-4 pt-1">
<!-- Rendered via JS -->
</div>
</div>
</div>
<!-- FOOTER GLOBAL -->
<footer class="mt-12 sm:mt-16 bg-slate-950 border-t border-white/10 pt-8 sm:pt-12 pb-6 sm:pb-8 text-xs text-slate-400">
<div class="max-w-7xl mx-auto px-3 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-12 gap-6 sm:gap-8 pb-8 sm:pb-12 border-b border-white/5">
<div class="md:col-span-5 space-y-3">
<div class="flex items-center gap-3">
<div class="w-9 h-9 sm:w-10 sm:h-10 rounded-xl bg-purple-600 flex items-center justify-center text-white">
<i class="fa-solid fa-dice-d20 text-lg sm:text-xl"></i>
</div>
<span class="text-lg sm:text-xl font-black text-white">مجله تخصصی اکیپا</span>
</div>
<p class="text-slate-400 leading-relaxed text-justify pr-1 text-[11px] sm:text-xs">
اکیپا پلتفرم جامع تحلیل، نقد صادقانه و هدایت علاقه‌مندان به دنیای تفریحات تیمی، اتاق فرار، بوردگیم‌های رومیزی و بازی‌های نقش‌مخفی در ایران است. هدف ما غنی‌سازی لحظات دورهمی شما با چاشنی هوش و آدرنالین است.
</p>
<div class="flex items-center gap-2.5 pt-1 text-slate-300 text-sm">
<a href="#" class="w-8 h-8 sm:w-9 sm:h-9 rounded-xl bg-slate-900 hover:bg-purple-600 hover:text-white flex items-center justify-center transition"><i class="fa-brands fa-instagram"></i></a>
<a href="#" class="w-8 h-8 sm:w-9 sm:h-9 rounded-xl bg-slate-900 hover:bg-purple-600 hover:text-white flex items-center justify-center transition"><i class="fa-brands fa-telegram"></i></a>
<a href="#" class="w-8 h-8 sm:w-9 sm:h-9 rounded-xl bg-slate-900 hover:bg-purple-600 hover:text-white flex items-center justify-center transition"><i class="fa-brands fa-youtube"></i></a>
</div>
</div>
<div class="md:col-span-3 space-y-2">
<h5 class="text-xs sm:text-sm font-bold text-white mb-2.5 sm:mb-3">صفحات اصلی مجله</h5>
<ul class="space-y-1.5 sm:space-y-2 text-[11px] sm:text-xs">
<li><button onclick="window.location.href='index.html'" class="hover:text-purple-400 transition">صفحه نخست وبلاگ</button></li>
<li><button onclick="window.location.href='category.html'" class="hover:text-purple-400 transition">آرشیو دسته‌بندی موضوعی</button></li>
<li><button onclick="window.location.href='single.html'" class="hover:text-purple-400 transition">آخرین مقاله ویژه سردبیر</button></li>
<li><a href="#newsletter-section" class="hover:text-purple-400 transition">ثبت شماره در خبرنامه</a></li>
</ul>
</div>
<div class="md:col-span-4 space-y-2.5 sm:space-y-3">
<h5 class="text-xs sm:text-sm font-bold text-white mb-1.5 sm:mb-2">اطمینان و استاندارد محتوا</h5>
<div class="p-3 sm:p-3.5 rounded-xl sm:rounded-2xl bg-slate-900/70 border border-white/5 space-y-1.5">
<div class="flex items-center gap-2 text-purple-300 font-bold text-xs">
<i class="fa-solid fa-certificate"></i> نقد مستقل و بدون حمایت مالی اتاق‌ها
</div>
<p class="text-[10px] sm:text-[11px] text-slate-400 leading-normal">
تمامی مقالات و امتیازهای درج‌شده حاصل آزمون تجربی اتاق‌ها توسط تیم منتقدان اکیپا بدون دریافت وجه از مراکز بازی می‌باشد.
</p>
</div>
</div>
</div>
<div class="pt-4 sm:pt-6 flex flex-col sm:flex-row items-center justify-between gap-2.5 text-slate-500 text-[10px] sm:text-[11px]">
<div>© ۲۰۲۶ تمامی حقوق مادی و معنوی برای مجله سرگرمی و بازی «اکیپـا» محفوظ است.</div>
<div class="flex items-center gap-3">
<a href="#" class="hover:text-slate-300">حریم خصوصی</a>
<a href="#" class="hover:text-slate-300">قوانین و مقررات</a>
<a href="#" class="hover:text-slate-300">تماس با تحریریه</a>
</div>
</div>
</div>
</footer>
<script>
function switchPage(pageKey) {
if (pageKey === 'landing') window.location.href = 'index.html';
else if (pageKey === 'category') window.location.href = 'category.html';
else if (pageKey === 'single') window.location.href = 'single.html';
}
document.addEventListener('DOMContentLoaded', () => {
if (typeof renderCatGame === 'function') {
renderCatGame(0);
}
});
</script>
<script>
// ==========================================
// 1. SPA ROUTER LOGIC
// ==========================================
function switchPage(pageKey) {
window.scrollTo({ top: 0, behavior: 'smooth' });
const pages = ['landing', 'category', 'single'];
pages.forEach(p => {
const el = document.getElementById('page-' + p);
if (el) {
if (p === pageKey) {
el.classList.remove('hidden');
} else {
el.classList.add('hidden');
}
}
});
document.querySelectorAll('.nav-tab-btn').forEach(btn => {
btn.classList.remove('bg-purple-600/30', 'border', 'border-purple-500/40', 'text-white');
btn.classList.add('text-slate-300');
});
const activeNav = document.getElementById('nav-' + pageKey);
if (activeNav) {
activeNav.classList.add('bg-purple-600/30', 'border', 'border-purple-500/40', 'text-white');
activeNav.classList.remove('text-slate-300');
}
const progressEl = document.getElementById('reading-progress-bar');
if (pageKey === 'single') {
progressEl.classList.remove('hidden');
} else {
progressEl.classList.add('hidden');
}
showToast(`به صفحه «${getPageName(pageKey)}» منتقل شدید`, 'info');
}
function getPageName(key) {
switch(key) {
case 'landing': return 'صفحه اصلی لندینگ';
case 'category': return 'دسته‌بندی موضوعی';
case 'single': return 'سینگل مقاله';
default: return 'اکیپا';
}
}
function switchCategoryFilter(genre) {
showToast(`فیلتر دسته‌بندی روی «${genre}» تنظیم شد`, 'info');
}
// ==========================================
// 2. MINI-GAME: DIGITAL ESCAPE ROOM (LANDING SIDEBAR)
// ==========================================
let enteredCode = "";
const CORRECT_CODE = "4812";
function updateLockDisplay() {
const display = document.getElementById('lock-screen');
if (!display) return;
if (enteredCode.length === 0) {
display.innerText = "----";
} else {
let text = enteredCode;
while (text.length < 4) text += "-";
display.innerText = text;
}
}
function pressKey(num) {
if (enteredCode.length < 4) {
enteredCode += num;
updateLockDisplay();
}
}
function clearKey() {
enteredCode = "";
updateLockDisplay();
const fb = document.getElementById('lock-feedback');
if (fb) {
fb.className = "text-center text-[11px] sm:text-xs font-bold text-slate-400 py-1";
fb.innerText = "کد پاک شد. دوباره وارد کنید.";
}
}
function checkLockCode() {
const fb = document.getElementById('lock-feedback');
const card = document.getElementById('minigame-card');
if (enteredCode.length < 4) {
if (fb) {
fb.className = "text-center text-[11px] sm:text-xs font-bold text-amber-400 py-1";
fb.innerText = "لطفاً هر ۴ رقم رمز را کامل وارد کنید!";
}
return;
}
if (enteredCode === CORRECT_CODE) {
if (fb) {
fb.className = "text-center text-[11px] sm:text-xs font-bold text-emerald-400 py-1";
fb.innerHTML = '🎉 رمز صحیح است! درب گاوصندوق باز شد (کد تخفیف: <span class="font-mono underline">EKIPA-WIN</span>)';
}
showToast("تبریک! رمز معما کشف شد. کد تخفیف اختصاصی باز شد!", "success");
} else {
if (fb) {
fb.className = "text-center text-[11px] sm:text-xs font-bold text-rose-400 py-1";
fb.innerText = "❌ رمز اشتباه است! آژیر خطر به صدا درآمد.";
}
if (card) {
card.classList.add('animate-shake');
setTimeout(() => card.classList.remove('animate-shake'), 400);
}
showToast("رمز نادرست بود! مجدداً معما را بخوانید.", "warning");
enteredCode = "";
setTimeout(updateLockDisplay, 800);
}
}
// ==========================================
// 3. CATEGORY GAME SLIDER (CONVERSION BRIDGE)
// ==========================================
const categoryGamesData = [
{
title: "دخمه جن‌زده آرارات",
genre: "اتاق فرار • دلهره‌آور و تئاتری",
badge: "🔥 پرمخاطب‌ترین هفته",
rating: "⭐ ۹.۸ / ۱۰",
image: "https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=600&q=80",
location: "میرداماد",
capacity: "۴-۸ نفر",
duration: "۸۰ دقیقه",
difficulty: "سخت (۸/۱۰)",
price: "۲۸۰,۰۰۰ تومان"
},
{
title: "سرقت از موزه لوور",
genre: "اتاق فرار • معمایی و هیجانی",
badge: "💎 بدون چاشنی وحشت",
rating: "⭐ ۹.۵ / ۱۰",
image: "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?auto=format&fit=crop&w=600&q=80",
location: "سعادت‌آباد",
capacity: "۴-۶ نفر",
duration: "۷۵ دقیقه",
difficulty: "متوسط (۷/۱۰)",
price: "۲۵۰,۰۰۰ تومان"
},
{
title: "کافه بردگیم ذهن برتر (کلودهاون)",
genre: "بردگیم • کمپین داستانی",
badge: "🎲 مناسب دورهمی",
rating: "⭐ ۹.۲ / ۱۰",
image: "https://images.unsplash.com/photo-1610890716171-6b1bb98ffd09?auto=format&fit=crop&w=600&q=80",
location: "میدان انقلاب",
capacity: "۲-۴ نفر",
duration: "۱۲۰ دقیقه",
difficulty: "سنگین (۹/۱۰)",
price: "۱۲۰,۰۰۰ تومان"
},
{
title: "مافیا سناریو پدرخوانده",
genre: "نقش‌مخفی • تعاملی زنده",
badge: "🎭 گرداننده رسمی",
rating: "⭐ ۹.۷ / ۱۰",
image: "https://images.unsplash.com/photo-1544717305-2782549b5136?auto=format&fit=crop&w=600&q=80",
location: "شهرک غرب",
capacity: "۱۰-۱۲ نفر",
duration: "۱۵۰ دقیقه",
difficulty: "استراتژیک",
price: "۱۸۰,۰۰۰ تومان"
}
];
let currentCatGameIndex = 0;
function renderCatGame(index) {
const g = categoryGamesData[index];
const container = document.getElementById('catGameCardContainer');
if (!container) return;
container.style.opacity = '0';
container.style.transform = 'translateY(4px)';
setTimeout(() => {
document.getElementById('catGameImage').src = g.image;
document.getElementById('catGameBadge').textContent = g.badge;
document.getElementById('catGameRating').textContent = g.rating;
document.getElementById('catGameGenre').textContent = g.genre;
document.getElementById('catGameTitle').textContent = g.title;
document.getElementById('catGameLocation').textContent = g.location;
document.getElementById('catGameCapacity').textContent = g.capacity;
document.getElementById('catGameDuration').textContent = g.duration;
document.getElementById('catGameDifficulty').textContent = g.difficulty;
document.getElementById('catGamePrice').textContent = g.price;
const dots = document.querySelectorAll('.cat-dot-ind');
dots.forEach((dot, i) => {
if (i === index) {
dot.className = "cat-dot-ind w-6 h-1.5 rounded-full bg-purple-500 transition-all duration-300";
} else {
dot.className = "cat-dot-ind w-2 h-1.5 rounded-full bg-white/20 hover:bg-white/40 transition-all duration-300";
}
});
container.style.opacity = '1';
container.style.transform = 'translateY(0)';
}, 150);
}
function nextCatGame() {
currentCatGameIndex = (currentCatGameIndex + 1) % categoryGamesData.length;
renderCatGame(currentCatGameIndex);
}
function prevCatGame() {
currentCatGameIndex = (currentCatGameIndex - 1 + categoryGamesData.length) % categoryGamesData.length;
renderCatGame(currentCatGameIndex);
}
function goToCatGame(index) {
currentCatGameIndex = index;
renderCatGame(currentCatGameIndex);
}
// ==========================================
// 4. QUIZ MODAL LOGIC
// ==========================================
»، سناریوی دخمه جن‌زده آرارات با تخفیف ویژه برای اکیپ شما پیشنهاد می‌شود.`;
}
// ==========================================
// 5. SUB-CATEGORY & READ TIME FILTERS
// ==========================================
function filterSubCat(cat, btn) {
document.querySelectorAll('.subcat-chip').forEach(b => {
b.className = "subcat-chip shrink-0 px-3.5 py-1.5 rounded-xl bg-slate-800 text-slate-300 hover:text-white text-xs font-medium";
});
btn.className = "subcat-chip shrink-0 px-3.5 py-1.5 rounded-xl bg-purple-600 text-white text-xs font-bold shadow-md";
showToast(`فیلتر روی «${btn.innerText.trim()}» اعمال گردید.`, 'info');
}
function setReadTimeFilter(mode, btn) {
document.querySelectorAll('.readtime-btn').forEach(b => {
b.className = "readtime-btn px-2.5 py-1 rounded-lg text-slate-300 hover:text-white";
});
btn.className = "readtime-btn px-2.5 py-1 rounded-lg bg-purple-600 text-white font-bold";
showToast(`فیلتر زمان مطالعه روی «${btn.innerText.trim()}» تنظیم شد.`, 'info');
}
// ==========================================
// 6. MISC & TOAST HANDLERS
// ==========================================
function handleNewsletterSubmit(e) {
e.preventDefault();
const input = document.getElementById('mobile-number-input');
const val = input ? input.value.trim() : '';
if (!/^09[0-9]{9}$/.test(val)) {
showToast("لطفاً یک شماره موبایل معتبر ۱۱ رقمی (با پیش‌شماره ۰۹) وارد کنید.", "warning");
return;
}
showToast(`شماره ${val} در پیامک‌نامه اکیپا با موفقیت ثبت شد!`, "success");
if (input) input.value = '';
}
function filterLandingGrid(categoryKey, btnEl) {
document.querySelectorAll('.chip-btn').forEach(b => {
b.className = 'chip-btn shrink-0 px-3.5 py-1.5 sm:px-4 sm:py-2 rounded-xl text-xs font-bold transition bg-slate-800 text-slate-300 hover:text-white hover:bg-slate-700';
});
if (btnEl) {
btnEl.className = 'chip-btn shrink-0 px-3.5 py-1.5 sm:px-4 sm:py-2 rounded-xl text-xs font-bold transition bg-purple-600 text-white shadow-glow-purple';
}
const cards = document.querySelectorAll('.article-grid-card');
let visibleCount = 0;
cards.forEach(c => {
const cat = c.getAttribute('data-cat');
if (categoryKey === 'all' || cat === categoryKey) {
c.style.display = 'flex';
visibleCount++;
} else {
c.style.display = 'none';
}
});
const titleEl = document.getElementById('grid-category-title');
if (titleEl) titleEl.innerText = `نمایش ${visibleCount} مقاله منتخب در این موضوع`;
}
function scrollPeekCarousel(direction) {
const container = document.getElementById('peek-carousel');
if (!container) return;
const scrollAmount = window.innerWidth < 640 ? 260 : 300;
container.scrollBy({ left: direction === 'left' ? -scrollAmount : scrollAmount, behavior: 'smooth' });
}
function toggleMobileMenu() {
const menu = document.getElementById('mobile-nav');
if (menu) menu.classList.toggle('hidden');
}
function openSearchModal() {
const modal = document.getElementById('search-modal');
if (modal) {
modal.classList.remove('hidden');
document.getElementById('search-input')?.focus();
}
}
function closeSearchModal() {
document.getElementById('search-modal')?.classList.add('hidden');
}
function fillSearch(val) {
const input = document.getElementById('search-input');
if (input) input.value = val;
showToast(`جستجو برای «${val}» انجام شد.`, 'info');
setTimeout(closeSearchModal, 500);
}
function reactPost(type, btn) {
const countEl = btn.querySelector('.react-count');
if (countEl) {
let current = parseInt(countEl.innerText, 10) || 0;
countEl.innerText = current + 1;
btn.classList.add('scale-110');
setTimeout(() => btn.classList.remove('scale-110'), 200);
showToast("بازخورد شما ثبت شد!", "success");
}
}
function copyArticleLink() {
const dummy = document.createElement('input');
document.body.appendChild(dummy);
dummy.value = window.location.href;
dummy.select();
try {
document.execCommand('copy');
showToast("لینک مقاله در حافظه کپی شد!", "info");
} catch (err) {
showToast("کپی خودکار انجام نشد.", "warning");
}
document.body.removeChild(dummy);
}
function handleCommentSubmit(e) {
e.preventDefault();
const author = document.getElementById('comment-author').value.trim();
const text = document.getElementById('comment-text').value.trim();
if (!author || !text) return;
const list = document.getElementById('comment-list');
const newComment = document.createElement('div');
newComment.className = "p-3.5 sm:p-4 rounded-xl sm:rounded-2xl bg-purple-950/30 border border-purple-500/30 space-y-1.5";
newComment.innerHTML = `
<div class="flex items-center justify-between text-xs">
<span class="font-bold text-white flex items-center gap-2">
<span class="w-6 h-6 rounded-lg bg-purple-600 flex items-center justify-center text-white text-xs">${author.charAt(0)}</span>
${author} (دیدگاه شما)
</span>
<span class="text-purple-300 text-[10px]">هم‌اکنون</span>
</div>
<p class="text-[11px] sm:text-xs text-slate-200 leading-relaxed">${text}</p>
`;
list.prepend(newComment);
document.getElementById('comment-author').value = '';
document.getElementById('comment-email').value = '';
document.getElementById('comment-text').value = '';
showToast("دیدگاه شما با موفقیت ثبت شد.", "success");
}
function loadMoreArticles() {
const btn = document.getElementById('btn-load-more');
if (btn) {
btn.innerHTML = '<i class="fa-solid fa-spinner animate-spin"></i> در حال فراخوانی...';
setTimeout(() => {
btn.innerHTML = '<i class="fa-solid fa-check text-emerald-400"></i> تمام مقالات این بخش نمایش داده شدند';
showToast("تمامی مقالات در صفحه لود شدند.", "info");
}, 700);
}
}
window.addEventListener('scroll', () => {
const progressBar = document.getElementById('reading-progress-bar');
if (progressBar && !progressBar.classList.contains('hidden')) {
const totalHeight = document.documentElement.scrollHeight - window.innerHeight;
if (totalHeight > 0) {
const progress = window.scrollY / totalHeight;
progressBar.style.transform = `scaleX(${progress})`;
}
}
});
function showToast(message, type = 'info') {
const container = document.getElementById('toast-container');
if (!container) return;
const toast = document.createElement('div');
let bg = 'bg-slate-900/95 border-purple-500/50 text-white';
let icon = 'fa-info-circle text-purple-400';
if (type === 'success') {
bg = 'bg-slate-900/95 border-emerald-500/60 text-white';
icon = 'fa-circle-check text-emerald-400';
} else if (type === 'warning') {
bg = 'bg-slate-900/95 border-amber-500/60 text-white';
icon = 'fa-triangle-exclamation text-amber-400';
}
toast.className = `pointer-events-auto flex items-center gap-2.5 px-4 py-2.5 sm:px-5 sm:py-3 rounded-xl sm:rounded-2xl border shadow-2xl backdrop-blur-md text-xs sm:text-sm font-semibold transition-all duration-300 transform -translate-y-2 opacity-0 ${bg}`;
toast.innerHTML = `<i class="fa-solid ${icon} text-sm sm:text-base"></i><span>${message}</span>`;
container.appendChild(toast);
requestAnimationFrame(() => toast.classList.remove('-translate-y-2', 'opacity-0'));
setTimeout(() => {
toast.classList.add('-translate-y-2', 'opacity-0');
setTimeout(() => toast.remove(), 350);
}, 3500);
}
</script>
<script>
// موتور جامع هوشمند پیشنهاد بازی اکیپا
const quizData = {
escape: {
horror: {
title: "دخمه جن‌زده آرارات",
catName: "اتاق فرار • دلهره‌آور و تئاتر تعاملی",
badge: "🔥 پرمخاطب‌ترین اتاق فرار پایتخت",
rating: "⭐ ۹.۸ / ۱۰ (از ۱,۴۲۰ نظر)",
matchPercent: "۹۸٪",
image: "https://images.unsplash.com/photo-1509248961158-e54f6934749c?w=600&auto=format&fit=crop&q=80",
loc: "میرداماد، تهران",
dur: "۸۰ دقیقه",
diff: "سخت (۹/۱۰)",
desc: "سناریوی تعاملی و ماوراءالطبیعه با دکور چندسطحی و بازیگرهای حرفه‌ای. طراحی معماها کاملاً ارگانیک بوده و ضربان قلب شما را تا آخرین دقیقه روی بالاترین حد نگه می‌دارد.",
price: "۲۸۰,۰۰۰ تومان",
discountCode: "EKIPA-HORROR",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
},
detective: {
title: "سرقت از موزه لوور: پرونده سیاه",
catName: "اتاق فرار • کارآگاهی و معماهای مکانیکی",
badge: "🏆 رتبه یک سناریوی معمایی سال",
rating: "⭐ ۹.۶ / ۱۰ (از ۹۸۰ نظر)",
matchPercent: "۹۶٪",
image: "https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?w=600&auto=format&fit=crop&q=80",
loc: "سعادت‌آباد، تهران",
dur: "۷۵ دقیقه",
diff: "متعادل (۸/۱۰)",
desc: "حل پرونده سرقت مرموز آثار باستانی با بیش از ۱۲ معمای مکانیکی نسل پنجم و تکنولوژی سنسورهای لیزری بدون دخالت سنتی اکتور.",
price: "۲۶۰,۰۰۰ تومان",
discountCode: "EKIPA-LOVRE",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
},
adventure: {
title: "معبد باستانی اینکاها",
catName: "اتاق فرار • ماجراجویی سینمایی و فانتزی",
badge: "✨ دکور عظیم و بدون ژانر وحشت",
rating: "⭐ ۹.۷ / ۱۰ (از ۸۴۰ نظر)",
matchPercent: "۹۵٪",
image: "https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=600&auto=format&fit=crop&q=80",
loc: "شهرک غرب، تهران",
dur: "۹۰ دقیقه",
diff: "متعادل (۷/۱۰)",
desc: "یک سفر هیجان‌انگیز به دل تمدن اینکاها با غارهای سنگی، تله‌های متحرک و جلوه‌های صوتی سه‌بعدی؛ انتخابی فوق‌العاده برای اکیپ‌های خانوادگی و دوستانه.",
price: "۲۵۰,۰۰۰ تومان",
discountCode: "EKIPA-INCA",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
}
},
boardgame: {
strategy: {
title: "شب استراتژی: سایث (Scythe) & کاتان",
catName: "بردگیم • استراتژیک، مدیریت منابع و جنگ تاکتیکی",
badge: "🧠 مخصوص گیمرهای حرفه‌ای",
rating: "⭐ ۹.۵ / ۱۰ (از ۷۱۰ نظر)",
matchPercent: "۹۷٪",
image: "https://images.unsplash.com/photo-1610890716171-6b1bb98ffd09?w=600&auto=format&fit=crop&q=80",
loc: "کافه‌بردگیم‌های منتخب اکیپا",
dur: "۱۲۰ دقیقه",
diff: "پیشرفته",
desc: "تجربه رقابت بر سر منابع صنعتی و کنترل نقشه با قوانین عمیق. در پلتفرم اکیپا میزهای آموزش‌داده‌شده همراه با گیم‌مستر اختصاصی رزرو کنید.",
price: "۹۵,۰۰۰ تومان / نفر",
discountCode: "EKIPA-BOARD",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
},
party: {
title: "دورهمی پارتی‌گیم: کودتا (Coup) & نام رمز",
catName: "بردگیم • سرعتی، خنده‌دار و پرانرژی",
badge: "🥳 بمب خنده و انرژی اکیپی",
rating: "⭐ ۹.۴ / ۱۰ (از ۱,۱۵۰ نظر)",
matchPercent: "۹۹٪",
image: "https://images.unsplash.com/photo-1606167668584-78701c57f13d?w=600&auto=format&fit=crop&q=80",
loc: "کافه‌بازی‌های مرکز و غرب تهران",
dur: "۴۵ دقیقه",
diff: "ساده و سرعتی",
desc: "بازی‌های بدون توقف با یادگیری ۳ دقیقه‌ای که یخ هر دورهمی را فوراً آب می‌کند. مناسب برای همه سنین و جمع‌های شاد.",
price: "۸۰,۰۰۰ تومان / نفر",
discountCode: "EKIPA-PARTY",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
},
bluff: {
title: "کلاب بلوف‌زنی: زیرخاکی & اسکل هیل",
catName: "بردگیم • روانشناسی، بلوف و ریسک‌پذیری",
badge: "🃏 چالش ذهن‌خوانی و شانس",
rating: "⭐ ۹.۳ / ۱۰ (از ۵۳۰ نظر)",
matchPercent: "۹۴٪",
image: "https://images.unsplash.com/photo-1511193311914-0346f16efe90?w=600&auto=format&fit=crop&q=80",
loc: "ایونت‌های هفتگی اکیپا",
dur: "۶۰ دقیقه",
diff: "متوسط",
desc: "هنر کنترل چهره (Poker Face) و گول زدن حریفان در بازی‌های کارتی جذاب. همراه با پذیرایی ویژه برای رزروهای تیمی.",
price: "۸۵,۰۰۰ تومان / نفر",
discountCode: "EKIPA-BLUFF",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
}
},
mafia: {
godfather: {
title: "ایونت رسمی مافیا: سناریوی پدرخوانده & لئون",
catName: "مافیا • استدلال تحلیلی، گاد بین‌المللی و ضبط تصویر",
badge: "🎩 حرفه‌ای‌ترین لیگ مافیای پایتخت",
rating: "⭐ ۹.۹ / ۱۰ (از ۲,۱۰۰ نظر)",
matchPercent: "۹۹٪",
image: "https://images.unsplash.com/photo-1511193311914-0346f16efe90?w=600&auto=format&fit=crop&q=80",
loc: "باشگاه‌های VIP مافیا، نیاوران و ونک",
dur: "۱۱۰ دقیقه",
diff: "حرفه‌ای",
desc: "اجرای سناریوهای رسمی با داوری حرفه‌ای، کارت‌های حس ششم و نوستالژی. شبی پر از استدلال، تارگت و فکت‌های منطقی.",
price: "۱۲۰,۰۰۰ تومان / نفر",
discountCode: "EKIPA-MAFIA",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
},
zodiac: {
title: "مافیای شب‌های زودیاک و بازپرس",
catName: "مافیا • نقش‌های هیجانی، گردانندگی پویا",
badge: "⚡ پر از پیچش داستانی و تعلیق",
rating: "⭐ ۹.۷ / ۱۰ (از ۹۸۰ نظر)",
matchPercent: "۹۶٪",
image: "https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?w=600&auto=format&fit=crop&q=80",
loc: "انقلاب و یوسف‌آباد",
dur: "۹۰ دقیقه",
diff: "متوسط",
desc: "سناریویی با حضور زودیاک مستقل و نقش‌های مدرن که بازی را تا ثانیه آخر غیرقابل پیش‌بینی نگه می‌دارد.",
price: "۱۰۰,۰۰۰ تومان / نفر",
discountCode: "EKIPA-ZODIAC",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
},
secrethitler: {
title: "شب‌های سکرت هیتلر & آوالون (Avalon)",
catName: "نقش‌مخفی • مکالمه آزاد و بدون حذف بازیکن",
badge: "🛡️ مناسب اکیپ‌های پرجمعیت",
rating: "⭐ ۹.۸ / ۱۰ (از ۸۹۰ نظر)",
matchPercent: "۹۷٪",
image: "https://images.unsplash.com/photo-1610890716171-6b1bb98ffd09?w=600&auto=format&fit=crop&q=80",
loc: "فضاهای رویداد اکیپا",
dur: "۷۵ دقیقه",
diff: "متوسط",
desc: "هیچ‌کس در این بازی‌ها حذف و بیکار نمی‌شود! همه تا پایان بازی مشغول گفت‌وگو، سیاست‌ورزی و رای‌گیری هستند.",
price: "۹۰,۰۰۰ تومان / نفر",
discountCode: "EKIPA-AVALON",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
}
},
vr: {
zombie: {
title: "جوخه نبرد واقعیت مجازی: زامبی آپوکالیپس",
catName: "واقعیت مجازی • شوتینگ تیمی بی‌سیم (Free-Roam VR)",
badge: "🥽 اوج ترشح آدرنالین بدون سیم",
rating: "⭐ ۹.۶ / ۱۰ (از ۶۲۰ نظر)",
matchPercent: "۹۸٪",
image: "https://images.unsplash.com/photo-1593508512255-86ab42a8e620?w=600&auto=format&fit=crop&q=80",
loc: "مگامال و پالادیوم",
dur: "۵۰ دقیقه",
diff: "مهیج و فیزیکی",
desc: "قدم زدن آزادانه در یک زمین ۲۰۰ متری با عینک‌های نسل جدید بدون سیم؛ همراه اکیپ خود در مقابل هجوم موجودات بقا بجنگید.",
price: "۲۱۰,۰۰۰ تومان / نفر",
discountCode: "EKIPA-VR",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
},
vrescape: {
title: "اتاق فرار واقعیت مجازی: ایستگاه فضایی سرگردان",
catName: "VR Escape Room • حل معما در گرانش صفر",
badge: "🚀 تجربه غیرممکن در دنیای فیزیکی",
rating: "⭐ ۹.۵ / ۱۰ (از ۵۱۰ نظر)",
matchPercent: "۹۵٪",
image: "https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=600&auto=format&fit=crop&q=80",
loc: "ایران‌مال",
dur: "۶۰ دقیقه",
diff: "سخت و علمی",
desc: "ترکیب معماهای پیچیده اسکیپ‌روم با قوانین شبیه‌سازی گرانش صفر و معلق بودن در مدار زمین.",
price: "۲۲۰,۰۰۰ تومان / نفر",
discountCode: "EKIPA-SPACE",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
},
motion: {
title: "شبیه‌سازهای فرمول یک و مسابقات تیمی",
catName: "سیمولاتور حرکتی • رقابت سرعت و دریفت",
badge: "🏎️ شتاب ۳ جی و جک‌های هیدرولیک",
rating: "⭐ ۹.۳ / ۱۰ (از ۴۴۰ نظر)",
matchPercent: "۹۳٪",
image: "https://images.unsplash.com/photo-1509248961158-e54f6934749c?w=600&auto=format&fit=crop&q=80",
loc: "مرکز خرید کوروش",
dur: "۴۰ دقیقه",
diff: "سرعتی",
desc: "مسابقه همزمان اعضای اکیپ در پیست‌های شبیه‌سازی شده موونا با احساس واقعی ناهمواری‌های جاده.",
price: "۱۹۰,۰۰۰ تومان / نفر",
discountCode: "EKIPA-RACE",
bookingUrl: "https://ekeepa.co",
articleUrl: "single.html"
}
}
};
let quizState = {
step: 1,
category: null,
teamSize: null,
vibe: null
};
function openQuizModal() {
const modal = document.getElementById('quiz-modal');
if (!modal) return;
modal.classList.remove('hidden');
resetQuizState();
}
function closeQuizModal() {
const modal = document.getElementById('quiz-modal');
if (modal) modal.classList.add('hidden');
}
function resetQuizState() {
quizState = { step: 1, category: null, teamSize: null, vibe: null };
renderQuizStep1();
}
function renderQuizStep1() {
quizState.step = 1;
const badge = document.getElementById('quiz-step-badge');
const bar = document.getElementById('quiz-progress-bar');
const title = document.getElementById('quiz-question-title');
const sub = document.getElementById('quiz-question-subtitle');
if (badge) badge.textContent = "گام ۱ از ۳: دسته‌بندی";
if (bar) bar.style.width = "33%";
if (title) title.textContent = "گام اول: چه مدل سرگرمی و تجربه‌ای مد نظرتونه؟";
if (sub) sub.textContent = "ابتدا دسته‌بندی اصلی سرگرمی مورد علاقه اکیپ را مشخص کنید:";
const qHeader = document.getElementById('quiz-question-header');
const optCont = document.getElementById('quiz-options-container');
const resCont = document.getElementById('quiz-result-container');
if (qHeader) qHeader.classList.remove('hidden');
if (optCont) optCont.classList.remove('hidden');
if (resCont) resCont.classList.add('hidden');
const categories = [
{ key: 'escape', icon: 'fa-door-open', title: 'اتاق فرار و اسکیپ‌روم', desc: 'دکور فیزیکی، حل معماهای مهیج، دلهره یا ماجراجویی تیمی' },
{ key: 'boardgame', icon: 'fa-dice-d20', title: 'بازی‌های رومیزی و بردگیم', desc: 'کافه‌بازی، استراتژی، بازی‌های خنده‌دار و دورهمی صمیمی' },
{ key: 'mafia', icon: 'fa-user-secret', title: 'مافیا و بازی‌های نقش‌مخفی', desc: 'استدلال کلامی، بلوف‌زنی، کشف هویت و ایونت‌های داوری‌شده' },
{ key: 'vr', icon: 'fa-vr-cardboard', title: 'واقعیت مجازی و شبیه‌ساز حرکتی', desc: 'عینک‌های VR بی‌سیم، شوتینگ تیمی، لیزرتگ و شتاب حرکتی' }
];
let html = '';
categories.forEach(opt => {
html += `
<button onclick="selectQuizCategory('${opt.key}')" class="w-full text-right p-3.5 rounded-2xl bg-slate-800/80 hover:bg-purple-600/20 border border-white/5 hover:border-purple-500/40 text-white transition-all group flex items-center justify-between">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-xl bg-purple-500/10 text-purple-400 group-hover:bg-purple-500 group-hover:text-white flex items-center justify-center text-base transition-all">
<i class="fa-solid ${opt.icon}"></i>
</div>
<div>
<div class="text-xs sm:text-sm font-bold text-white group-hover:text-purple-300 transition">${opt.title}</div>
<div class="text-[11px] text-slate-400 mt-0.5 line-clamp-1">${opt.desc}</div>
</div>
</div>
<i class="fa-solid fa-angle-left text-slate-500 group-hover:text-purple-400 group-hover:-translate-x-1 transition-all text-xs"></i>
</button>
`;
});
if (optCont) optCont.innerHTML = html;
}
function selectQuizCategory(catKey) {
quizState.category = catKey;
renderQuizStep2();
}
function renderQuizStep2() {
quizState.step = 2;
const badge = document.getElementById('quiz-step-badge');
const bar = document.getElementById('quiz-progress-bar');
const title = document.getElementById('quiz-question-title');
const sub = document.getElementById('quiz-question-subtitle');
if (badge) badge.textContent = "گام ۲ از ۳: جمعیت تیم";
if (bar) bar.style.width = "66%";
if (title) title.textContent = "تعداد نفرات اکیپ شما معمولاً چند نفره است؟";
if (sub) sub.textContent = "ظرفیت برای تنظیم بهینه فضای بازی و درجه سختی معماها مهم است:";
const sizes = [
{ key: 'small', label: '۲ الی ۴ نفر', desc: 'اکیپ کوچک و متمرکز، دوستان صمیمی یا زوج' },
{ key: 'medium', label: '۵ الی ۷ نفر', desc: 'ترکیب استاندارد و طلایی برای بیشترین تنوع بازی‌ها' },
{ key: 'large', label: '۸ نفر به بالا', desc: 'دورهمی‌های بزرگ، ایونت‌های دوستانه، جشن و تولد' }
];
let html = '';
sizes.forEach(s => {
html += `
<button onclick="selectQuizTeamSize('${s.key}')" class="w-full text-right p-3.5 rounded-2xl bg-slate-800/80 hover:bg-purple-600/20 border border-white/5 hover:border-purple-500/40 text-white transition-all group flex items-center justify-between">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-xl bg-purple-500/10 text-purple-400 group-hover:bg-purple-500 group-hover:text-white flex items-center justify-center text-sm transition-all">
<i class="fa-solid fa-users"></i>
</div>
<div>
<div class="text-xs sm:text-sm font-bold text-white group-hover:text-purple-300 transition">${s.label}</div>
<div class="text-[11px] text-slate-400 mt-0.5">${s.desc}</div>
</div>
</div>
<i class="fa-solid fa-angle-left text-slate-500 group-hover:text-purple-400 group-hover:-translate-x-1 transition-all text-xs"></i>
</button>
`;
});
html += `
<button onclick="renderQuizStep1()" class="text-xs text-slate-400 hover:text-white pt-2 flex items-center gap-1.5 transition">
<i class="fa-solid fa-arrow-right"></i> بازگشت به انتخاب دسته‌بندی
</button>
`;
const optCont = document.getElementById('quiz-options-container');
if (optCont) optCont.innerHTML = html;
}
function selectQuizTeamSize(sizeKey) {
quizState.teamSize = sizeKey;
renderQuizStep3();
}
function renderQuizStep3() {
quizState.step = 3;
const badge = document.getElementById('quiz-step-badge');
const bar = document.getElementById('quiz-progress-bar');
const title = document.getElementById('quiz-question-title');
const sub = document.getElementById('quiz-question-subtitle');
if (badge) badge.textContent = "گام ۳ از ۳: حس و حال";
if (bar) bar.style.width = "90%";
if (title) title.textContent = "بیشتر دنبال چه حس، اتمسفر یا سبکی هستید؟";
if (sub) sub.textContent = "بر اساس دسته‌بندی انتخابی شما، سبک تجربه را مشخص کنید:";
let options = [];
if (quizState.category === 'escape') {
options = [
{ key: 'horror', icon: 'fa-skull', title: 'ترسناک، دلهره‌آور و تئاتر تعاملی', desc: 'آدرنالین خالص، اکتور زنده، تم ماورایی و شوک‌های غیرمنتظره' },
{ key: 'detective', icon: 'fa-magnifying-glass', title: 'کارآگاهی، معمایی و حل پرونده', desc: 'معماهای مکانیکی نسل جدید، رازهای جنایی و تفکر عمیق' },
{ key: 'adventure', icon: 'fa-compass', title: 'ماجراجویی، فانتزی و سینمایی', desc: 'دکورهای عظیم باستانی، سفر در زمان و بدون ترس' }
];
} else if (quizState.category === 'boardgame') {
options = [
{ key: 'strategy', icon: 'fa-chess-knight', title: 'استراتژیک، فکری و مدیریت منابع', desc: 'رقابت نفس‌گیر تاکتیکی برای گیمرهای علاقه‌مند به فکر عمیق' },
{ key: 'party', icon: 'fa-face-laugh-squint', title: 'پارتی‌گیم، خنده‌دار و سرعتی', desc: 'یادگیری ۳ دقیقه‌ای، انرژی بالا و خنده فراوان برای دورهمی' },
{ key: 'bluff', icon: 'fa-masks-theater', title: 'روانشناسی، بلوف‌زنی و کارتی', desc: 'مهارت ذهن‌خوانی رقیب و ریسک‌پذیری کارتی' }
];
} else if (quizState.category === 'mafia') {
options = [
{ key: 'godfather', icon: 'fa-hat-cowboy', title: 'سناریوی رسمی پدرخوانده و لئون', desc: 'با گاد حرفه‌ای، تصویربرداری و بالاترین استانداردهای مافیا' },
{ key: 'zodiac', icon: 'fa-bolt', title: 'سناریوهای مهیج مثل زودیاک و بازپرس', desc: 'پر از نقش‌های مدرن، ریتم تند و پایان غیرقابل پیش‌بینی' },
{ key: 'secrethitler', icon: 'fa-comments', title: 'سکرت هیتلر و اولون (بدون حذف بازیکن)', desc: 'مکالمه آزاد تا پایان بازی و مشارکت صددرصدی همه اعضا' }
];
} else {
options = [
{ key: 'zombie', icon: 'fa-biohazard', title: 'شوتینگ تیمی و بقا در زامبی', desc: 'تحرک آزاد در زمین ۲۰۰ متری بدون سیم و هیجان شلیک' },
{ key: 'vrescape', icon: 'fa-rocket', title: 'اتاق فرار واقعیت مجازی و فضا', desc: 'حل معماهای پیچیده در گرانش صفر و معلق در فضا' },
{ key: 'motion', icon: 'fa-car', title: 'مسابقه سرعت و سیمولاتور حرکتی', desc: 'شتاب هیدرولیک و مسابقه رودرروی اعضای اکیپ' }
];
}
let html = '';
options.forEach(opt => {
html += `
<button onclick="finishSmartQuiz('${opt.key}')" class="w-full text-right p-3.5 rounded-2xl bg-slate-800/80 hover:bg-purple-600/20 border border-white/5 hover:border-purple-500/40 text-white transition-all group flex items-center justify-between">
<div class="flex items-center gap-3">
<div class="w-10 h-10 rounded-xl bg-purple-500/10 text-purple-400 group-hover:bg-purple-500 group-hover:text-white flex items-center justify-center text-sm transition-all">
<i class="fa-solid ${opt.icon}"></i>
</div>
<div>
<div class="text-xs sm:text-sm font-bold text-white group-hover:text-purple-300 transition">${opt.title}</div>
<div class="text-[11px] text-slate-400 mt-0.5">${opt.desc}</div>
</div>
</div>
<i class="fa-solid fa-angle-left text-slate-500 group-hover:text-purple-400 group-hover:-translate-x-1 transition-all text-xs"></i>
</button>
`;
});
html += `
<button onclick="renderQuizStep2()" class="text-xs text-slate-400 hover:text-white pt-2 flex items-center gap-1.5 transition">
<i class="fa-solid fa-arrow-right"></i> بازگشت به انتخاب جمعیت
</button>
`;
const optCont = document.getElementById('quiz-options-container');
if (optCont) optCont.innerHTML = html;
}
function finishSmartQuiz(vibeKey) {
quizState.vibe = vibeKey;
quizState.step = 4;
const catData = quizData[quizState.category] || quizData.escape;
const game = catData[vibeKey] || Object.values(catData)[0];
const badge = document.getElementById('quiz-step-badge');
const bar = document.getElementById('quiz-progress-bar');
if (badge) badge.textContent = "نتیجه هوشمند 🎉";
if (bar) bar.style.width = "100%";
const qHeader = document.getElementById('quiz-question-header');
const optCont = document.getElementById('quiz-options-container');
const resCont = document.getElementById('quiz-result-container');
if (qHeader) qHeader.classList.add('hidden');
if (optCont) optCont.classList.add('hidden');
if (!resCont) return;
resCont.classList.remove('hidden');
resCont.innerHTML = `
<!-- Top Match Alert -->
<div class="flex items-center justify-between p-3 rounded-2xl bg-gradient-to-r from-emerald-500/20 to-teal-500/10 border border-emerald-500/30">
<div class="flex items-center gap-2">
<div class="w-7 h-7 rounded-xl bg-emerald-500 text-slate-950 flex items-center justify-center text-xs font-black">
<i class="fa-solid fa-check"></i>
</div>
<span class="text-xs font-bold text-white">تطابق هوشمند: <span class="text-emerald-400 font-extrabold">${game.matchPercent}</span> با سلیقه اکیپ شما</span>
</div>
<span class="text-[10px] text-emerald-300 bg-emerald-500/20 px-2 py-0.5 rounded-md font-mono">الگوریتم اکیپا</span>
</div>
<!-- Recommended Game Card -->
<div class="bg-slate-800/90 border border-purple-500/30 rounded-2xl overflow-hidden p-3.5 space-y-3">
<div class="relative h-44 rounded-xl overflow-hidden group">
<img src="${game.image}" alt="${game.title}" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105">
<div class="absolute inset-0 bg-gradient-to-t from-slate-950 via-slate-950/40 to-transparent"></div>
<span class="absolute top-2.5 right-2.5 px-2.5 py-1 rounded-lg bg-purple-600/90 text-white text-[10px] font-bold backdrop-blur-md">
${game.badge}
</span>
<span class="absolute top-2.5 left-2.5 px-2 py-1 rounded-lg bg-black/60 text-amber-400 text-[10px] font-bold backdrop-blur-md">
${game.rating}
</span>
<div class="absolute bottom-2.5 right-3 left-3 text-right">
<div class="text-[11px] text-purple-300 font-bold">${game.catName}</div>
<h4 class="text-base sm:text-lg font-black text-white mt-0.5">${game.title}</h4>
</div>
</div>
<p class="text-xs text-slate-300 leading-relaxed text-justify">
${game.desc}
</p>
<!-- Key Specs Badges -->
<div class="grid grid-cols-3 gap-2 pt-1 border-t border-white/5 text-[11px] text-slate-300">
<div class="flex items-center gap-1.5 p-2 rounded-xl bg-slate-900/60">
<i class="fa-solid fa-location-dot text-purple-400 text-xs"></i>
<span class="truncate">${game.loc}</span>
</div>
<div class="flex items-center gap-1.5 p-2 rounded-xl bg-slate-900/60">
<i class="fa-solid fa-clock text-cyan-400 text-xs"></i>
<span class="truncate">${game.dur}</span>
</div>
<div class="flex items-center gap-1.5 p-2 rounded-xl bg-slate-900/60">
<i class="fa-solid fa-gauge-high text-amber-400 text-xs"></i>
<span class="truncate">${game.diff}</span>
</div>
</div>
<!-- Discount Coupon Box -->
<div class="flex items-center justify-between p-2.5 rounded-xl bg-purple-950/40 border border-purple-500/40 text-xs">
<div class="flex items-center gap-2">
<i class="fa-solid fa-tag text-amber-400"></i>
<span class="text-slate-300 text-[11px]">کد تخفیف ویژه رزرو:</span>
<span class="font-mono font-bold text-amber-300 tracking-wider">${game.discountCode}</span>
</div>
<button onclick="copyQuizCoupon('${game.discountCode}')" class="px-2.5 py-1 rounded-lg bg-purple-600/40 hover:bg-purple-600 text-[11px] text-white font-bold transition">
کپی کد
</button>
</div>
</div>
<!-- Action Buttons -->
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2.5 pt-1">
<a href="${game.bookingUrl}" target="_blank" class="w-full py-3 rounded-xl bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-500 hover:to-indigo-500 text-white font-bold text-xs flex items-center justify-center gap-2 shadow-lg shadow-purple-600/30 transition-all">
<i class="fa-solid fa-calendar-check"></i> رزرو آنلاین سانس در اکیپا
</a>
<a href="${game.articleUrl}" class="w-full py-3 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 hover:text-white font-bold text-xs flex items-center justify-center gap-2 border border-white/5 transition-all">
<i class="fa-solid fa-book-open"></i> نقد و بررسی در وبلاگ
</a>
</div>
<!-- Retake Button -->
<div class="text-center pt-1">
<button onclick="resetQuizState()" class="text-xs text-slate-400 hover:text-purple-300 transition flex items-center justify-center gap-1.5 mx-auto">
<i class="fa-solid fa-rotate-right"></i> آزمون مجدد / تغییر دسته‌بندی و معیارها
</button>
</div>
`;
}
function copyQuizCoupon(code) {
navigator.clipboard.writeText(code);
if (typeof showToast === 'function') {
showToast(`کد تخفیف ${code} با موفقیت کپی شد!`, 'success');
} else {
alert(`کد تخفیف ${code} با موفقیت کپی شد!`);
}
}
</script>
</body>
</html>