/* ====================================================
   دکمه باز کردن (در حالت بسته)
   ==================================================== */

.tvOpenIcons {
    position: fixed;
    left: 23px;
    top: 37%;
    z-index: 998;
    background-color: #db9615;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    display: none; /* مخفي در حالت عادي */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(235, 0, 26, 0.4);
}

.tvOpenIcons.show {
    display: flex; /* نمايش داده مي‌شود وقتي منو بسته است */
    animation: bounceIn 0.5s ease;
}

.tvOpenIcons.hide {
    display: none; /* مخفي مي‌شود وقتي منو باز است */
}

.tvOpenIcons .open-icon {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.tvOpenIcons:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(235, 0, 26, 0.6);
}

.tvOpenIcons:focus {
    outline: 2px solid white;
    outline-offset: 3px;
}

/* انيميشن ورود دکمه */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ====================================================
   حالت‌هاي باز و بسته منو
   ==================================================== */

.tvFixedIcons {
    position: fixed;
    left: 23px;
    top: 37%;
    z-index: 997;
    background-color: #db9615;
    border-radius: 100px;
    -webkit-border-radius: 100px;
    width: 40px;
    padding: 12px 0 22px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* حالت بسته */
.tvFixedIcons.closed {
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

/* حالت باز */
.tvFixedIcons.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* ====================================================
   ريسپانسيو براي موبايل
   ==================================================== */

/* تبلت */
@media (max-width: 992px) {
    .tvFixedIcons {
        left: 15px;
        top: 35%;
        width: 36px;
        padding: 10px 0 18px;
    }
    
    .tvOpenIcons {
        left: 15px;
        top: 35%;
        width: 36px;
        height: 36px;
    }
    
    .tvOpenIcons .open-icon {
        font-size: 18px;
    }
}

/* موبايل */
@media (max-width: 768px) {
    .tvFixedIcons {
        left: 10px;
        top: auto;
        bottom: 100px;
        width: 32px;
        padding: 10px 0 16px;
        border-radius: 50px;
    }
    
    .tvOpenIcons {
        left: 10px;
        top: auto;
        bottom: 100px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }
    
    .tvOpenIcons .open-icon {
        font-size: 16px;
    }
    
    .tvFixedIcons.closed {
        transform: translateY(120%);
        opacity: 0;
    }
    
    .tvFixedIcons.open {
        transform: translateY(0);
        opacity: 1;
    }
}

/* موبايل کوچک */
@media (max-width: 480px) {
    .tvFixedIcons {
        left: 6px;
        bottom: 80px;
        width: 28px;
        padding: 8px 0 12px;
    }
    
    .tvOpenIcons {
        left: 6px;
        bottom: 80px;
        width: 28px;
        height: 28px;
    }
    
    .tvOpenIcons .open-icon {
        font-size: 14px;
    }
}

/* ====================================================
   استايل‌هاي قبلي (همان‌ها باقي مي‌مانند)
   ==================================================== */

.tvFixedIconsBox {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    padding-top: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tvFixedIconsBox li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tvSocialLink {
    display: inline-flex;
    width: 25px;
    height: 25px;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

.tvSocialLink:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

/* دکمه بستن */
.tvCloseIcons {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin: 0 auto 10px;
    display: block;
    transition: all 0.3s ease;
    padding: 0;
}

.tvCloseIcons::before,
.tvCloseIcons::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.tvCloseIcons::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tvCloseIcons::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.tvCloseIcons:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.1);
}

.tvCloseIcons:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* عنوان‌هاي شبکه‌هاي اجتماعي */
.fixIconTitle {
    display: none;
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    font-family: 'Tahoma', 'Arial', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 998;
}

.tvSocialLink:hover .fixIconTitle {
    display: block;
}

/* ====================================================
   آيکون‌هاي شبکه‌هاي اجتماعي
   ==================================================== */

.tvFixedIcons .fixTelegram {
    background: url('../images/fix_telegram.svg') no-repeat center center;
}

.tvFixedIcons .fixInstagram {
    background: url('../images/fix_instagram.svg') no-repeat center center;
}

.tvFixedIcons .fixX {
    background: url('../images/fix_x.svg') no-repeat center center;
}

.tvFixedIcons .fixEitaa {
    background: url('../images/fix_eitaa.svg') no-repeat center center;
}

.tvFixedIcons .fixRubika {
    background: url('../images/fix_rubika.svg') no-repeat center center;
}

.tvFixedIcons .fixWhatsapp {
    background: url('../images/fix_whatsapp.svg') no-repeat center center;
}

.tvFixedIcons .fixBale {
    background: url('../images/fix_bale.svg') no-repeat center center;
}

.tvFixedIcons .fixSoroush {
    background: url('../images/fix_soroush.svg') no-repeat center center;
}

.tvFixedIcons .fixYouTube {
    background: url('../images/fix_youtube.svg') no-repeat center center;
}

.tvFixedIcons .fixAparat {
    background: url('../images/fixAparat.svg') no-repeat center center/22px 22px;
}

.tvFixedIcons .fixFootball {
    background: url('../images/fix_cup.svg') no-repeat center center;
}

.tvFixedIcons .fixGold {
    background: url('../images/fix_coin.svg') no-repeat center center;
}

.tvFixedIcons .fixCar {
    background: url('../images/fix_car.svg') no-repeat center center;
}

.tvFixedIcons .fixCurrency {
    background: url('../images/fix_bitcoin.svg') no-repeat center center;
}

/* کلاس ارتفاع ويژه */
.tvFixedIconsHeight {
    padding: 12px 0 2px !important;
}