/* کانتینر اصلی */
.gk-spec-container {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e2;
    border-radius: 8px;
    padding: 24px;
    direction: rtl;
    text-align: right;
    margin-bottom: 30px;
}

.gk-spec-main-title {
    font-size: 19px;
    font-weight: 700;
    color: #3f4064;
    margin: 0 0 30px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #ef394e;
    display: inline-block;
}

/* انیمیشن نرم */
.gk-spec-content-wrap {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* افکت فید (سایه سفید) */
.gk-spec-fade {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

/* دکمه مشاهده بیشتر */
.gk-spec-trigger-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #ef394e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 15px 0 0 0;
    margin-top: 10px;
    text-align: center;
    border-top: 1px solid #f0f0f1;
    transition: all 0.2s;
}
.gk-spec-trigger-btn:hover { opacity: 0.8; }
.gk-spec-trigger-btn i { margin-right: 5px; font-size: 12px; }

/* --- استایل لیست ویژگی‌ها --- */
.gk-spec-section {
    display: flex;
    border-bottom: 1px solid #f0f0f1;
}
.gk-spec-section:last-child { border-bottom: none; }

.gk-spec-section-title {
    width: 25%;
    min-width: 180px;
    padding: 20px 0 20px 15px;
}
.gk-spec-section-title h3 {
    font-size: 15px;
    font-weight: 700;
    color: #717171;
    margin: 0;
    line-height: 1.6;
}

.gk-spec-item-list {
    flex: 1;
    padding: 10px 0;
}

.gk-spec-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f1;
}
.gk-spec-item:last-child { border-bottom: none; }

.gk-spec-label {
    width: 35%;
    color: #81858b;
    font-size: 14px;
    padding-left: 15px;
}
.gk-spec-value {
    flex: 1;
    color: #0c0c0c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}
.gk-spec-value span { display: block; }

/* لینک ویژگی‌ها */
.gk-spec-link {
    color: #3f4064;
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
    transition: all 0.2s;
}
.gk-spec-link:hover {
    color: #ef394e;
    border-bottom-style: solid;
    border-bottom-color: #ef394e;
}

/* --- مدال موبایل (App Like) --- */
.gk-spec-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.gk-spec-modal.active { display: flex; }

.gk-spec-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s;
}
.gk-spec-modal.active .gk-spec-modal-backdrop { opacity: 1; }

.gk-spec-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1);
    z-index: 2;
}
.gk-spec-modal-content.slide-up { transform: translateY(0); }

.gk-spec-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f1;
}
.gk-spec-modal-header h4 { margin: 0; font-size: 16px; color: #000; }
.gk-spec-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.gk-spec-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    direction: rtl;
}

body.gk-modal-open { overflow: hidden; }

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .gk-spec-fade { display: block; }

    .gk-spec-section {
        flex-direction: column;
        border-bottom: 4px solid #f8f8f8;
        padding: 0;
    }
    .gk-spec-section-title {
        width: 100%;
        background: #fff;
        padding: 15px 10px 5px 10px;
    }
    .gk-spec-section-title h3 { font-size: 15px; color: #000; }

    .gk-spec-item-list { padding: 0 10px 10px 10px; }
    .gk-spec-item { flex-direction: row; justify-content: space-between; }
    .gk-spec-label { width: 40%; font-size: 13px; padding-left: 5px;}
    .gk-spec-value { font-size: 13px; text-align: left; }
}
