/* استایل‌های اختصاصی مدرن و آتشین (تکمیل‌کننده فایل style.css) */
@font-face {
    font-family: Estedad;
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/Estedad-Bold.woff2") format("woff2"), url("../fonts/Estedad-Bold.woff") format("woff"), url("../fonts/Estedad-Bold.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

:root {
    --transition: all 0.4s ease;
    --fontfamily: Estedad;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--fontfamily);
    background: radial-gradient(ellipse at 30% 40%, #0c0502 0%, #2a0f06 45%, #070201 100%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
}

/* ذرات آتشین */
.fire-particle {
    position: fixed;
    background: radial-gradient(circle, #ff9024, #e33c00, #a11500);
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: floatFire 7s infinite alternate cubic-bezier(0.45, 0.9, 0.6, 1.2);
}

@keyframes floatFire {
    0% { transform: translateY(0px) translateX(0px) scale(1); opacity: 0.2; }
    100% { transform: translateY(-55px) translateX(15px) scale(1.4); opacity: 0.55; }
}

.heat-haze {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(circle at 20% 40%, rgba(255,70,0,0.05) 0px, rgba(0,0,0,0) 40px);
    pointer-events: none;
    z-index: 1;
}

.scene-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    padding: 1rem;
}

.orbit-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تصویر ققنوس مرکزی */
.phoenix-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    z-index: 25;
    filter: drop-shadow(0 0 25px #ff5e1a) drop-shadow(0 0 45px #ff2c00);
    animation: phoenixFloat 3.2s infinite alternate ease-in-out, glowPulse 1.8s infinite alternate;
    cursor: pointer;
    transition: 0.2s;
}

.phoenix-core img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.1);
    transform: scale(1.02);
    transition: transform 0.3s;
}

.phoenix-core:hover img {
    transform: scale(1.05);
}

@keyframes phoenixFloat {
    0% { transform: translate(-50%, -50%) translateY(0px); }
    100% { transform: translate(-50%, -50%) translateY(-14px); }
}

@keyframes glowPulse {
    0% { filter: drop-shadow(0 0 12px #ff6633) drop-shadow(0 0 20px #ff2c00); }
    100% { filter: drop-shadow(0 0 35px #ffa44a) drop-shadow(0 0 55px #ff481a); }
}

/* حلقه آتش گردان - اندازه متغیر با JS */
.fire-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 100, 30, 0.25), transparent 75%);
    animation: rotateRing 18s linear infinite;
    z-index: 6;
    pointer-events: none;
    border: 1px solid rgba(255, 110, 30, 0.4);
    box-shadow: 0 0 20px rgba(255, 70, 0, 0.4), inset 0 0 15px rgba(255, 90, 0, 0.3);
}

@keyframes rotateRing {
    0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) rotate(360deg); opacity: 1; }
}

/* خطوط شعله‌ور با طول مناسب */
.branch-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(95deg, #ff914d, #ff4f1e, #ffbc6e, #ff4f1e);
    background-size: 250% 100%;
    border-radius: 6px;
    box-shadow: 0 0 12px #ff7433, 0 0 4px #ffa047;
    transform-origin: 0% 0%;
    opacity: 0.95;
    transition: all 0.2s ease;
    z-index: 8;
    animation: fireLineFlow 1.2s linear infinite;
}

@keyframes fireLineFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.branch-line::before {
    content: "";
    position: absolute;
    right: -6px;
    top: -6px;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffbc6e, #ff3c00);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.9;
    animation: sparkMove 1s infinite alternate;
}

@keyframes sparkMove {
    0% { transform: translateX(0px) scale(0.8); opacity: 0.6; }
    100% { transform: translateX(12px) scale(1.3); opacity: 1; }
}

/* آیتم‌های منو: گرد (دایره) مدرن، مینیمال با آیکون باکس آیکن */
.menu-branch-item {
    position: absolute;
    background: rgba(10, 7, 5, 0.85);
    backdrop-filter: blur(14px) saturate(180%);
    border: 1.5px solid rgba(255, 110, 40, 0.9);
    border-radius: 50%;
    width: 110px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff2e4;
    white-space: normal;
    word-break: keep-all;
    transition: all 0.25s cubic-bezier(0.2, 1.1, 0.4, 1);
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 80, 20, 0.7);
    z-index: 35;
    font-family: var(--fontfamily);
    transform: translate(-50%, -50%) scale(1);
    padding: 0 5px;
    line-height: 1.3;
}

.menu-branch-item i {
    font-size: 1.8rem;
    color: #ffb46e;
    transition: 0.2s;
    margin-bottom: 6px;
    display: block;
}

.menu-branch-item:hover {
    background: rgba(255, 75, 25, 0.95);
    border-color: #ffdeae;
    color: white;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 28px rgba(255, 90, 0, 0.9), 0 8px 20px black;
    backdrop-filter: blur(8px);
}

.menu-branch-item:hover i {
    color: #fff0b5;
    transform: scale(1.08);
}

/* واکنش‌گرایی موبایل: آیتم‌های گرد با اندازه مناسب */
@media (max-width: 768px) {
    .phoenix-core {
        width: 140px;
        height: 140px;
    }
    .menu-branch-item {
        width: 85px;
        height: 85px;
        font-size: 0.7rem;
    }
    .menu-branch-item i {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    .branch-line {
        height: 2.5px;
    }
}

@media (max-width: 560px) {
    .menu-branch-item {
        width: 70px;
        height: 70px;
        font-size: 0.6rem;
    }
    .menu-branch-item i {
        font-size: 1.2rem;
    }
    .phoenix-core {
        width: 110px;
        height: 110px;
    }
}

/* توست مدرن آتشین با آیکون boxicon */
.custom-toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(18px);
    border-right: 6px solid #ff602e;
    border-radius: 48px;
    padding: 12px 28px;
    color: #ffefda;
    font-weight: 600;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 80, 0, 0.6);
    z-index: 9999;
    font-family: var(--fontfamily);
    display: flex;
    align-items: center;
    gap: 14px;
    direction: rtl;
    pointer-events: none;
    letter-spacing: 0.3px;
}

/* جلوگیری از اسکرول */
body, html {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}