﻿/* ===== استایل‌های اختصاصی صفحه لندینگ هابز گیم ===== */
/* این فایل شامل انیمیشن‌ها و کلاس‌های tailwind ناموجود در tailwind-output.min.css است */

/* --- کلاس‌های Tailwind ناموجود در فایل کامپایل‌شده --- */

/* ریسپانسیو: sm (640px) */
@media (min-width: 640px) {
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:inline-flex { display: inline-flex; }
    .sm\:flex-row { flex-direction: row; }
}

/* ریسپانسیو: md (768px) */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
}

/* ریسپانسیو: lg (1024px) */
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* موقعیت‌دهی */
.left-1\/2 { left: 50%; }
.top-1\/4 { top: 25%; }
.bottom-1\/4 { bottom: 25%; }
.right-1\/4 { right: 25%; }
.top-1\/2 { top: 50%; }
.-translate-x-1\/2 { --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y, 0)); }
.-top-3 { top: -0.75rem; }

/* فاصله‌ها */
.mt-16 { margin-top: 4rem; }
.pt-32 { padding-top: 8rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.gap-8 { gap: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* مقاس‌ها */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-xl { max-width: 36rem; }

/* هاور ترنسفورم */
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }

/* گرادینت رنگ‌ها */
.from-indigo-400 { --tw-gradient-from: #818cf8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(129, 140, 248, 0)); }
.via-sky-400 { --tw-gradient-stops: var(--tw-gradient-from), #38bdf8, var(--tw-gradient-to, rgba(56, 189, 248, 0)); }
.to-indigo-400 { --tw-gradient-to: #818cf8; }
.from-indigo-900\/40 { --tw-gradient-from: rgba(49, 46, 129, 0.4); }
.from-sky-900\/40 { --tw-gradient-from: rgba(12, 74, 110, 0.4); }
.from-violet-900\/40 { --tw-gradient-from: rgba(76, 29, 149, 0.4); }
.from-cyan-900\/40 { --tw-gradient-from: rgba(22, 78, 99, 0.4); }
.from-green-900\/40 { --tw-gradient-from: rgba(20, 83, 45, 0.4); }
.from-blue-900\/40 { --tw-gradient-from: rgba(30, 58, 138, 0.4); }
.from-lime-900\/40 { --tw-gradient-from: rgba(54, 83, 20, 0.4); }
.from-amber-900\/40 { --tw-gradient-from: rgba(120, 53, 15, 0.4); }
.from-pink-900\/40 { --tw-gradient-from: rgba(131, 24, 67, 0.4); }

/* تم — استفاده از متغیرهای CSS پروژه */
.demo-tab.active {
    background: var(--color-primary, #4f46e5);
    border-color: var(--color-primary, #4f46e5);
}

/* --- انیمیشن‌ها --- */

@keyframes landing-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes landing-float-delay {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes landing-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.landing-float { animation: landing-float 6s ease-in-out infinite; }
.landing-float-delay { animation: landing-float-delay 8s ease-in-out infinite 2s; }
.landing-bounce { animation: landing-bounce 2s ease-in-out infinite; }

@keyframes landing-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-fade-up {
    animation: landing-fade-up 0.8s ease-out forwards;
}
.landing-delay-1 { animation-delay: 0.15s; opacity: 0; }
.landing-delay-2 { animation-delay: 0.3s; opacity: 0; }
.landing-delay-3 { animation-delay: 0.45s; opacity: 0; }
.landing-delay-4 { animation-delay: 0.6s; opacity: 0; }

.landing-scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.landing-scroll-reveal.landing-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- تب‌ها و کارت‌های دمو --- */

.demo-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}
.demo-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.demo-tab.active {
    color: #fff;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.demo-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.demo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.demo-content.active {
    animation: landing-fade-up 0.4s ease-out;
}

/* --- عمومی لندینگ --- */

html {
    scroll-behavior: smooth;
}

/* لندینگ: دکمه‌های CTA — استفاده از رنگ primary پروژه */
.landing-btn-primary {
    background-color: var(--color-primary, #4f46e5);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4);
    transition: all 0.2s;
}
.landing-btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 50px rgba(79, 70, 229, 0.6);
    transform: translateY(-2px);
}

/* لندینگ: پس‌زمینه‌ها — هماهنگ با تم تاریک پروژه */
.landing-bg {
    background-color: var(--color-bg, #0B0A14);
}
.landing-surface {
    background-color: var(--color-surface, #151421);
}

/* لندینگ: آیکون‌باکس هماهنگ با primary */
.landing-icon-primary {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--color-primary, #4f46e5);
}
.group:hover .landing-icon-primary {
    background-color: rgba(79, 70, 229, 0.2);
}

/* لندینگ: حاشیه هاور هماهنگ با primary */
.landing-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
}

/* --- کلاس‌های ناموجود در tailwind-output — رفع بهم‌ریختگی --- */

/* primary با opacity */
.bg-primary\/10 { background-color: rgba(79, 70, 229, 0.1); }
.bg-primary\/20 { background-color: rgba(79, 70, 229, 0.2); }
.bg-primary\/30 { background-color: rgba(79, 70, 229, 0.3); }
.border-primary\/20 { border-color: rgba(79, 70, 229, 0.2); }
.border-primary\/30 { border-color: rgba(79, 70, 229, 0.3); }
.border-primary\/50 { border-color: rgba(79, 70, 229, 0.5); }
.hover\:border-primary\/30:hover { border-color: rgba(79, 70, 229, 0.3); }
.hover\:border-primary\/50:hover { border-color: rgba(79, 70, 229, 0.5); }
.group:hover .group-hover\:bg-primary\/20 { background-color: rgba(79, 70, 229, 0.2); }
.focus\:border-primary:focus { border-color: var(--color-primary, #4f46e5); }
.focus\:ring-primary:focus { --tw-ring-color: var(--color-primary, #4f46e5); }

/* placeholder */
.placeholder-gray-600::placeholder { color: #4b5563; }

/* hover brightness */
.hover\:brightness-110:hover { filter: brightness(1.1); }

/* arbitrary gradient to */
.to-\[\#151421\] { --tw-gradient-to: #151421; }

/* bg-gradient-to-br در صفحه دمو */
.from-indigo-900\/40 { --tw-gradient-from: rgba(49, 46, 129, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(49, 46, 129, 0)); }
.from-teal-900\/40 { --tw-gradient-from: rgba(19, 78, 74, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(19, 78, 74, 0)); }
.from-yellow-900\/40 { --tw-gradient-from: rgba(113, 63, 18, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(113, 63, 18, 0)); }
.from-rose-900\/40 { --tw-gradient-from: rgba(136, 19, 55, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(136, 19, 55, 0)); }
.from-purple-900\/40 { --tw-gradient-from: rgba(88, 28, 135, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(88, 28, 135, 0)); }

/* رنگ‌های ساپورت‌نشده */
.text-sky-400 { color: #38bdf8; }
.text-teal-400 { color: #2dd4bf; }
.text-orange-400 { color: #fb923c; }
.text-cyan-400 { color: #22d3ee; }
.text-violet-400 { color: #a78bfa; }
.text-lime-400 { color: #a3e635; }
.text-amber-400 { color: #fbbf24; }
.text-blue-400 { color: #60a5fa; }
.text-pink-400 { color: #f472b6; }
.text-rose-400 { color: #fb7185; }
.text-indigo-400 { color: #818cf8; }

.bg-sky-500\/10 { background-color: rgba(14, 165, 233, 0.1); }
.bg-sky-500\/15 { background-color: rgba(14, 165, 233, 0.15); }
.bg-teal-500\/10 { background-color: rgba(20, 184, 166, 0.1); }
.bg-orange-500\/10 { background-color: rgba(249, 115, 22, 0.1); }
.bg-cyan-500\/10 { background-color: rgba(6, 182, 212, 0.1); }
.bg-purple-600\/10 { background-color: rgba(147, 51, 234, 0.1); }
.bg-rose-500\/10 { background-color: rgba(244, 63, 94, 0.1); }
.bg-yellow-500\/10 { background-color: rgba(234, 179, 8, 0.1); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }

.border-sky-500\/20 { border-color: rgba(14, 165, 233, 0.2); }
.border-sky-500\/30 { border-color: rgba(14, 165, 233, 0.3); }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.border-yellow-500\/20 { border-color: rgba(234, 179, 8, 0.2); }
.border-yellow-500\/30 { border-color: rgba(234, 179, 8, 0.3); }
.border-purple-500\/30 { border-color: rgba(168, 85, 247, 0.3); }
.border-rose-500\/20 { border-color: rgba(244, 63, 94, 0.2); }
.border-rose-500\/30 { border-color: rgba(244, 63, 94, 0.3); }
.border-teal-500\/30 { border-color: rgba(20, 184, 166, 0.3); }
.border-orange-500\/30 { border-color: rgba(249, 115, 22, 0.3); }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }

.hover\:border-emerald-500\/30:hover { border-color: rgba(16, 185, 129, 0.3); }
.hover\:border-sky-500\/30:hover { border-color: rgba(14, 165, 233, 0.3); }
.hover\:border-yellow-500\/30:hover { border-color: rgba(234, 179, 8, 0.3); }
.hover\:border-purple-500\/30:hover { border-color: rgba(168, 85, 247, 0.3); }
.hover\:border-rose-500\/30:hover { border-color: rgba(244, 63, 94, 0.3); }
.hover\:border-teal-500\/30:hover { border-color: rgba(20, 184, 166, 0.3); }
.hover\:border-orange-500\/30:hover { border-color: rgba(249, 115, 22, 0.3); }
.hover\:border-cyan-500\/30:hover { border-color: rgba(6, 182, 212, 0.3); }
.hover\:border-white\/10:hover { border-color: rgba(255, 255, 255, 0.1); }

.group:hover .group-hover\:bg-sky-500\/20 { background-color: rgba(14, 165, 233, 0.2); }
.group:hover .group-hover\:bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.group:hover .group-hover\:bg-yellow-500\/20 { background-color: rgba(234, 179, 8, 0.2); }
.group:hover .group-hover\:bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.group:hover .group-hover\:bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }
.group:hover .group-hover\:bg-teal-500\/20 { background-color: rgba(20, 184, 166, 0.2); }
.group:hover .group-hover\:bg-orange-500\/20 { background-color: rgba(249, 115, 22, 0.2); }
.group:hover .group-hover\:bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }

/* فونت — اطمینان از اعمال فونت YekanBakh روی صفحات لندینگ */
.bg-background-dark {
    background-color: var(--color-bg, #0B0A14);
    font-family: 'YekanBakh', 'Vazirmatn', sans-serif;
}

/* iframe دمو — نمایش صفحات بصورت اسکرین‌شات دسکتاپی کوچک‌شده */
.demo-iframe-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #151421;
    transition: transform 0.3s, border-color 0.3s;
}
.demo-iframe-wrapper:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* کانتینر داخلی iframe — صفحه در عرض 1440px رندر و سپس scale میشه */
.demo-iframe-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.demo-iframe-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #151421;
    transition: opacity 0.4s;
}
.demo-iframe-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary, #6366f1);
    border-radius: 50%;
    animation: demo-spin 0.8s linear infinite;
    transition: opacity 0.4s;
}
.demo-iframe-inner.loaded::before,
.demo-iframe-inner.loaded::after {
    opacity: 0;
    pointer-events: none;
}
@keyframes demo-spin {
    to { transform: rotate(360deg); }
}
.demo-iframe-inner iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 1440px;
    height: 900px;
    border: none;
    pointer-events: none;
    transform-origin: top right;
    /* scale محاسبه‌شده با JS یا با CSS container query */
}

/* overlay کامل — جلوگیری از هرگونه تعامل */
.demo-iframe-overlay {
    position: absolute;
    inset: 0;
    z-index: 15;
    cursor: default;
    background: transparent;
    -webkit-user-select: none;
    user-select: none;
}

/* overlay آفلاین پنل مالک */
.provider-offline-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #151421;
}

/* گرادینت پایین برای عنوان */
.demo-iframe-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2.5rem 0.75rem 0.75rem;
    background: linear-gradient(to top, #151421 0%, #15142199 50%, transparent 100%);
    z-index: 20;
    pointer-events: none;
}

/* --- خط‌جداکننده گرادیانت بین بخش‌ها --- */
.landing-divider {
    height: 1px;
    max-width: 64rem;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 70, 229, 0.3) 30%, rgba(56, 189, 248, 0.25) 50%, rgba(79, 70, 229, 0.3) 70%, transparent 100%);
}

/* --- هایلایت فعال ناوبری --- */
.nav-active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* --- بج نت ملی در Hero --- */
@keyframes net-melli-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.15); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.35); }
}
.net-melli-badge {
    animation: net-melli-glow 3s ease-in-out infinite;
}

/* --- بخش چطور کار می‌کنه (Stepper) --- */
.hiw-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 0 0 auto;
    width: 180px;
    padding: 0 0.5rem;
    transition: transform 0.3s;
}
.hiw-step:hover {
    transform: translateY(-4px);
}
.hiw-step-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.hiw-step-num {
    position: absolute;
    top: -0.5rem;
    right: calc(50% - 3rem);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--color-primary, #4f46e5);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}
.hiw-connector {
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.4), rgba(56, 189, 248, 0.3));
    margin-top: 2rem;
    flex-shrink: 0;
    border-radius: 1px;
}

/* ریسپانسیو stepper: موبایل عمودی */
@media (max-width: 767px) {
    .hiw-stepper {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .hiw-step {
        width: 100%;
        max-width: 280px;
    }
    .hiw-connector {
        width: 2px;
        height: 2rem;
        margin-top: 0;
        background: linear-gradient(180deg, rgba(79, 70, 229, 0.4), rgba(56, 189, 248, 0.3));
    }
}

/* --- رنگ‌های ساپورت‌نشده: amber-500/10, amber-500/20 --- */
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.group:hover .group-hover\:bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
