/* * Smart Grid Pro Stylesheet
 * Version: 7.2.0
 * Update: Clickable area restricted to the link only.
 */

:root {
    --sgp-brand-blue: #3d5afe;
    --sgp-hover-green: #00c853;
    --sgp-bg-light: #f8faff;
    --sgp-border: #e0e6ed;
    --sgp-text-dark: #333333;
    --sgp-text-gray: #888888;
    --sgp-radius-box: 16px;
    --sgp-radius-item: 12px;
}

/* کانتینر اصلی */
.sgp-container {
    background-color: var(--sgp-bg-light);
    border: 1px solid var(--sgp-border);
    border-radius: var(--sgp-radius-box);
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(61, 90, 254, 0.05);
}

/* هدر */
.sgp-header {
    background-color: var(--sgp-brand-blue);
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sgp-title {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700;
}

/* شبکه توری */
.sgp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
}

/* آیتم تکی (کارت) - دیگر کلیک‌پذیر نیست */
.sgp-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    background-color: #ffffff;
    border: 1px solid var(--sgp-border);
    border-radius: var(--sgp-radius-item);
    padding: 8px 5px;
    min-height: 55px; /* کمی ارتفاع بیشتر برای تفکیک */
    text-align: center;
    position: relative;
    /* حذف ترنزیشن از باکس والد */
}

/* متن توضیحات (غیر کلیک‌پذیر) */
.sgp-context {
    font-size: 10px;
    color: var(--sgp-text-gray);
    margin-bottom: 6px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 98%;
    cursor: default; /* نشانگر موس عادی */
}

/* لینک اصلی (دکمه کلیک‌پذیر) */
.sgp-main-link {
    display: block;
    width: 90%; /* عرض دکمه */
    padding: 4px 2px;
    border-radius: 6px; /* گردی دکمه داخلی */
    
    font-size: 12px;
    color: var(--sgp-brand-blue);
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    
    /* مدیریت متن */
    word-wrap: break-word;
    transition: all 0.2s ease-in-out;
}

/* استایل مخصوص لینک‌های نیکد (انگلیسی) */
.sgp-type-naked .sgp-main-link {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    direction: ltr;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- افکت هاور فقط روی لینک --- */
.sgp-main-link:hover {
    background-color: var(--sgp-hover-green);
    color: #ffffff;
    transform: scale(1.05); /* کمی بزرگ شدن دکمه */
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.2);
}

/* ریسپانسیو */
@media screen and (max-width: 280px) {
    .sgp-grid {
        grid-template-columns: 1fr;
    }
}

.sgp-admin-help {
    background: #f0f0f1; padding: 10px; border-radius: 5px; 
    border-left: 4px solid #3d5afe; font-size: 12px; margin-top: 5px;
}