/* ------------------------------
   WHEEL.CSS — نسخه نهایی و پایدار
--------------------------------*/

/* کانتینر اصلی */
.wheel-page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 60px;
    background: radial-gradient(ellipse at center, #0e1220 0%, #06080f 100%);
}

/* کانتینر داخلی */
.wheel-wrapper {
    position: relative;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* گردونه */
#wheelCanvas {
    width: 480px;
    height: 480px;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.35));
}

/* ------------------------------
   پوینتر — نوک پایین + مکان نسخه اول
--------------------------------*/
.wheel-pointer {
    position: absolute;

    /* مکان قبلی که درست بود */
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;

    width: 0;
    height: 0;

    /* مثلث با نوک رو به پایین */
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 34px solid #f7d46a;

    /* افکت نئونی نسخه دوم */
    filter:
        drop-shadow(0 0 6px rgba(255,225,130,0.9))
        drop-shadow(0 0 14px rgba(255,200,60,0.7))
        drop-shadow(0 0 22px rgba(255,180,40,0.5));
}

/* نگین نورانی */
.wheel-pointer::after {
    content: "";
    position: absolute;

    /* هم‌راستا با نوک رو به پایین */
    top: -18px;
    left: -6px;

    width: 12px;
    height: 12px;
    border-radius: 50%;

    background: radial-gradient(circle, white 0%, #ffe9a6 70%);
    box-shadow:
        0 0 6px white,
        0 0 12px rgba(255,255,200,0.8);
}

/* ------------------------------
   پنل اطلاعات
--------------------------------*/
.wheel-info-box {
    width: 280px;
    padding: 20px;
    background: #0f1424;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 0 20px rgba(0,0,0,0.35);
    color: white;
}

.wheel-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wheel-info-box li {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ------------------------------
   دکمه چرخش (نسخه اول)
--------------------------------*/
#spinBtn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #0a84ff, #1a9aff);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
}

#spinBtn:hover {
    background: linear-gradient(90deg, #0060d0, #147fd8);
}

/* ------------------------------
   نتیجه چرخش
--------------------------------*/
#resultBox {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

/* ------------------------------
   ریسپانسیو
--------------------------------*/
@media (max-width: 768px) {
    #wheelCanvas {
        width: 360px;
        height: 360px;
    }

    .wheel-pointer {
        top: -26px;
    }
}

@media (max-width: 480px) {
    #wheelCanvas {
        width: 300px;
        height: 300px;
    }

    .wheel-pointer {
        top: -22px;
    }
}
