﻿/* ===============================================
   استایل‌های قیمت‌گذاری و دکمه خرید
   =============================================== */

/* کانتینر اصلی قیمت‌ها */
.intro-project-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 20px !important;
}

.descrption-item {
    width: 100% !important;
}

/* استایل کانتینر قیمت */
.header-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 15px;
}

/* قیمت تخفیف‌خورده (آبی بزرگ) */
.price-discount {
    font-size: 2.8rem !important;
    font-weight: 900 !important;
    color: #00d4ff !important;
    white-space: nowrap;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0, 212, 255, 0.5);
    display: block !important;
    width: 100%;
}

/* قیمت اصلی (خط‌خورده) */
.price-original {
    font-size: 1.6rem !important;
    text-decoration: line-through;
    color: #999 !important;
    white-space: nowrap;
    font-weight: 500;
    display: block !important;
    opacity: 0.8;
}

/* بج تخفیف */
.price-badge {
    display: inline-block !important;
    background: #ff0844;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(255, 8, 68, 0.5);
}

/* دکمه خرید - استایل پایه */
.btn-buy {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 20px 60px !important;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 40px !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    text-align: center;
    border: 3px solid #00d4ff !important;
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5) !important;
    position: relative;
    overflow: hidden;
    z-index: 100 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

    .btn-buy:hover {
        background: linear-gradient(135deg, #0099cc 0%, #00d4ff 100%) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 10px 30px rgba(0, 212, 255, 0.7) !important;
    }

/* کانتینر دکمه */
.d-inline-block.dsn-up {
    display: block !important;
    width: 100% !important;
    margin-top: 10px !important;
    position: relative !important;
    z-index: 100 !important;
}

/* مخفی کردن جداکننده */
.sep {
    display: none !important;
}

/* ===============================================
   ریسپانسیو موبایل (تا 768px)
   =============================================== */
@media (max-width: 768px) {
    /* اصلاح کانتینر اصلی */
    .intro-project {
        padding-bottom: 40px !important;
    }

    .intro-project-details {
        gap: 15px !important;
        padding: 0 !important;
    }

    .descrption-item {
        margin-bottom: 15px !important;
    }

    /* قیمت‌ها */
    .header-price {
        gap: 8px;
        margin-bottom: 10px;
    }

    .price-discount {
        font-size: 2.2rem !important;
    }

    .price-original {
        font-size: 1.3rem !important;
    }

    .price-badge {
        font-size: 1.05rem;
        padding: 8px 20px;
    }

    /* دکمه خرید در موبایل */
    .btn-buy {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 30px !important;
        font-size: 1.4rem !important;
        display: block !important;
        margin: 0 auto !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .d-inline-block.dsn-up {
        width: 100% !important;
        display: block !important;
        margin-top: 15px !important;
    }
}

/* ===============================================
   موبایل‌های کوچک (تا 400px)
   =============================================== */
@media (max-width: 400px) {
    .price-discount {
        font-size: 1.9rem !important;
    }

    .price-original {
        font-size: 1.15rem !important;
    }

    .price-badge {
        font-size: 1rem;
        padding: 7px 18px;
    }

    .btn-buy {
        padding: 18px 25px !important;
        font-size: 1.3rem !important;
    }
}

/* ===============================================
   تبلت (768px تا 992px)
   =============================================== */
@media (min-width: 769px) and (max-width: 992px) {
    .price-discount {
        font-size: 2.5rem !important;
    }

    .price-original {
        font-size: 1.5rem !important;
    }

    .btn-buy {
        padding: 18px 50px !important;
        font-size: 1.3rem !important;
    }
}

/* ===============================================
   دسکتاپ (بالای 992px)
   =============================================== */
@media (min-width: 993px) {
    .intro-project-details {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap;
    }

    .header-price {
        flex-direction: row;
        align-items: center;
    }

    .d-inline-block.dsn-up {
        width: auto !important;
        display: inline-block !important;
    }

    .btn-buy {
        width: auto !important;
    }

    .sep {
        display: block !important;
        width: 2px;
        height: 60px;
        background: rgba(255,255,255,0.2);
        margin: 0 20px;
    }
}

/* ===============================================
   RTL Support
   =============================================== */
[dir="rtl"] .header-price,
.rtl .header-price {
    direction: rtl;
}

/* ===============================================
   اصلاحات اضافی برای visibility
   =============================================== */
.btn-buy,
.btn-buy * {
    visibility: visible !important;
    pointer-events: auto !important;
}

/* جلوگیری از overlap با عناصر دیگر */
.intro-project {
    position: relative;
    z-index: 1;
}

.intro-project-details {
    position: relative;
    z-index: 10;
}

/* اطمینان از نمایش کامل محتوا */
.header-project {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .header-project {
        min-height: auto;
        padding-bottom: 50px !important;
    }
}
/* Tab Styles */
.course-tab-pane {
    display: none;
}

    .course-tab-pane.is-active {
        display: block;
    }

.course-tabbox-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

    .course-tabbox-nav button {
        padding: 12px 24px;
        border: 1px solid #ddd;
        background: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 8px;
        font-weight: 500;
    }

        .course-tabbox-nav button.is-active {
            background: var(--theme-color, #007bff);
            color: white;
            border-color: var(--theme-color, #007bff);
        }

        .course-tabbox-nav button:hover {
            opacity: 0.85;
            transform: translateY(-2px);
        }

/* Comment Styles */
.comments-form-section {
    background: #f8f9fa;
    padding: 40px 0;
}

.comments-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.comments-title {
    margin-bottom: 24px;
}

.comments-form .entry {
    margin-bottom: 20px;
}

.comments-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.comments-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
}

    .comments-form .form-control:focus {
        outline: none;
        border-color: var(--theme-color, #007bff);
    }

.course-comment-item {
    transition: transform 0.2s;
}

    .course-comment-item:hover {
        transform: translateX(-4px);
    }

/* Responsive */
@media (max-width: 768px) {
    .comments-form {
        padding: 20px;
    }

    .course-tabbox-nav button {
        padding: 10px 16px;
        font-size: 14px;
    }
}