﻿/* ================================
   POPUP – نمایش پاپ‌آپ تصویر
================================ */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    padding: 20px;
}

.image-popup-content {
    background: white;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 80vw;
    height: auto;
    max-width: 800px;
    max-height: 90vh;
}

    .image-popup-content img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

.close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    padding: 5px 10px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.zoom-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Popup – Mobile */
@media (max-width: 768px) {
    .image-popup-content {
        width: 90vw;
        max-width: 90vw;
        max-height: 80vh;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .close-popup-btn {
        font-size: 18px;
        padding: 4px 8px;
    }
}



/* ================================
   MAIN MEDIA (تصویر بزرگ بالا)
================================ */

/* دسکتاپ */
#mainMediaContainer {
    height: 35vh;
    min-height: 325px;
    background: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* نسخهٔ درست موبایل */
@media (max-width: 768px) {
    #mainMediaContainer {
        height: 20vh !important;
        min-height: 200px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow: hidden !important;
        background: white !important;
    }

        #mainMediaContainer .main-media {
            width: 100% !important;
            height: 100% !important;
            object-fit: contain !important;
            object-position: center center !important;
            display: block !important;
            position: static !important;
        }
}



/* ================================
   THUMBNAILS – اسکرول افقی
================================ */

.thumbnail-scrollbar {
    height: 90px;
    overflow-y: hidden !important;
    overflow-x: auto;
}

    .thumbnail-scrollbar::-webkit-scrollbar {
        height: 6px;
    }

    .thumbnail-scrollbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .thumbnail-scrollbar::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3);
        border-radius: 10px;
    }

        .thumbnail-scrollbar::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,0.5);
        }

.thumbnail-item:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}



/* ================================
   متن و تیترها
================================ */

.coin-code {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6c757d;
}

@media (max-width: 768px) {
    .coin-code {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem;
    }

    .vr-wrapper {
        display: none !important;
    }
}

.coin-title {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .coin-title {
        font-size: 1rem !important;
    }
}



/* ================================
   BOX: ویکی‌پدیا
================================ */

#wikiBox {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    #wikiBox {
        margin-top: 0.75rem;
    }
}



/* ================================
   Price & Action Buttons – Font Fix
================================ */

.price-section,
.price-section * {
    font-size: 0.95rem !important;
}

    .price-section h3 {
        font-size: 1.3rem !important;
    }

    .price-section ul li {
        font-size: 0.9rem !important;
    }

    .price-section .badge,
    .price-section button {
        font-size: 0.9rem !important;
    }


/* ==========================
   Zoom button – DESKTOP (25% smaller)
========================== */
#zoomBtn {
    width: 38px !important; /* 50px → 25% smaller */
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    top: 8px !important; /* کمی فاصله از بالا */
    left: 8px !important; /* کمی فاصله از چپ */

    display: flex !important;
    align-items: center;
    justify-content: center;
}

#zoomBtn i {
    font-size: 16px !important; /* کمی کوچک‌تر */
}



/* Zoom button – mobile: smaller & closer to top-left */
@media (max-width: 768px) {
    #zoomBtn {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important; /* حذف padding دکمه بوت‌استرپ */
        margin: 0 !important; /* خنثی‌کردن m-3 */

        top: 4px !important; /* نزدیک‌تر به بالا */
        left: 4px !important; /* نزدیک‌تر به چپ */

        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #zoomBtn i {
        font-size: 14px !important; /* آیکن کوچکتر */
    }

}

/* دکمه بستن روی تصویر */
.zoom-wrapper {
    position: relative;
    display: inline-block;
}

.zoom-close-btn {
    position: absolute;
    top: 8px; /* فاصله از بالا */
    right: 8px; /* گوشه راست */
    width: 34px;
    height: 34px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .zoom-close-btn i {
        font-size: 18px;
    }

/* موبایل: کمی کوچکتر */
@media (max-width: 768px) {
    .zoom-close-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

        .zoom-close-btn i {
            font-size: 14px;
        }
}

#zoomBtn {
    transition: opacity 0.2s ease;
}


/* همیشه برای عکس/ویدئوهای داخل مدیا کانتینر */
#mainMediaContainer .main-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

/* نوشته‌های قطر و وزن (خیلی کوچک و تمیز) */
.coin-size-weight .coin-meta {
    font-size: 0.70rem !important;
    color: #666 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* در موبایل: حذف فاصله اضافی زیر هدر */
@media (max-width: 768px) {
    .coin-size-weight {
        margin-top: 2px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}








.equivalent-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 6px;
    padding-left: 0 !important;
}

    .equivalent-list li {
        margin-bottom: 4px;
    }


/* دو ستونه در دسکتاپ */
.equivalent-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px; /* کمی کمتر از قبل */
    row-gap: 3px; /* حدود ۲۰٪ کمتر */
    padding-left: 0 !important;
}

    /* آیتم‌ها — کاهش فاصله بین خطوط و آیتم‌ها */
    .equivalent-list li {
        margin-bottom: 2px !important; /* 20% کمتر */
        line-height: 1.25 !important; /* 20% فشرده‌تر */
    }

/* موبایل: تک‌ستونه */
@media (max-width: 768px) {
    .equivalent-list {
        grid-template-columns: 1fr !important;
    }
}







