/* ============================================================
   فایل: inc/custom.css
   توضیحات: استایل جامع برای ماشین حساب Gene Keys و Human Design
   نسخه: اصلاح شده و تراز شده (Unified)
   ============================================================ */

/* ------------------------------------------------------------
   بخش اول: تنظیمات عمومی و Gene Keys (تم روشن)
   ------------------------------------------------------------ */

/* کانتینر اصلی */
.gk-container {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Tahoma', 'IRANSans', sans-serif; /* فونت پیش‌فرض */
    direction: rtl;
    padding: 20px;
    background-color: #f8fafc; /* پس‌زمینه خیلی روشن */
    border-radius: 20px;
}

/* --- گرید‌بندی هوشمند (تراز کردن کارت‌ها) --- */
.gk-spheres-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* کشیدن کارت‌ها برای هم‌قد شدن */
    margin-top: 25px;
}

/* --- استایل کارت‌های گوی (Sphere Cards) --- */
.gk-sphere-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px; /* گردی بیشتر و مدرن */
    padding: 25px 15px 20px;
    width: 210px; /* عرض ثابت و مناسب */
    min-width: 200px;
    display: flex;
    flex-direction: column; /* چیدمان ستونی */
    align-items: center;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.gk-sphere-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    border-color: transparent;
    z-index: 5;
}

/* --- دایره‌های شماره و گیت --- */
.gk-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    position: relative;
}

.gk-gate { font-size: 20px; line-height: 1.1; }
.gk-line { font-size: 13px; opacity: 0.95; font-weight: normal; }

/* رنگ‌بندی گرادینت دایره‌ها */
.bg-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.bg-pink  { background: linear-gradient(135deg, #ec4899, #be185d); }
.bg-blue  { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-gold  { background: linear-gradient(135deg, #eab308, #a16207); box-shadow: 0 8px 20px rgba(234, 179, 8, 0.4); }

/* عنوان کارت (مثل رسالت زندگی) */
.gk-sphere-title {
    font-size: 15px;
    font-weight: bold;
    color: #334155;
    margin-bottom: 10px;
    text-align: center;
    min-height: 25px; /* جلوگیری از پرش ارتفاع */
}

/* --- باکس کلمات کلیدی (اصلاح شده) --- */
.gk-keywords {
    width: 100%;
    background: transparent !important; /* حذف پس‌زمینه خاکستری */
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px !important;
    margin-top: auto; /* این خط دکمه‌ها را تراز می‌کند */
    font-size: 13px;
}

.gk-keywords div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    color: #64748b;
}

.gk-keywords div span:last-child {
    font-weight: 700;
    color: #1e293b; /* مشکی‌تر برای کلمات فارسی */
}

/* --- دکمه تفسیر (استایل Ghost) --- */
.gk-btn-mini.btn-interpret {
    width: 100%;
    margin-top: 15px;
    padding: 8px 0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    transition: all 0.2s ease;
    text-align: center;
    display: block;
    text-decoration: none;
}

.gk-btn-mini.btn-interpret:hover {
    background: #334155;
    color: #fff;
    border-color: #334155;
}

/* --- باکس‌های توالی (Sequence Boxes) --- */
.gk-sequence-box {
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.03);
    border: 1px solid #fff;
    position: relative;
    overflow: hidden;
}

/* نوار رنگی بالای باکس‌ها */
.gk-sequence-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
}
.gk-sequence-box.border-green::before { background: linear-gradient(90deg, #22c55e, #86efac); }
.gk-sequence-box.border-pink::before  { background: linear-gradient(90deg, #ec4899, #fbcfe8); }
.gk-sequence-box.border-blue::before  { background: linear-gradient(90deg, #3b82f6, #93c5fd); }

.gk-sequence-box h3 {
    text-align: center;
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* --- فرم ورودی --- */
.gk-form-box {
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    margin-bottom: 40px;
}

.gk-input-field {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #eef2f6 !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gk-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4af37, #b4932a) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
    cursor: pointer;
    margin-top: 20px;
}

/* ------------------------------------------------------------
   بخش دوم: هیومن دیزاین (Human Design) - تم تیره
   ------------------------------------------------------------ */

/* کانتینر اصلی هیومن دیزاین */
.hd-dark-wrapper {
    background: linear-gradient(145deg, #1e1e24, #2d2d35); /* تم تیره */
    border: 1px solid #3a3a45;
    border-radius: 24px; /* هماهنگ با Gene Keys */
    padding: 30px;
    margin-top: 50px;
    color: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    font-family: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* تیترهای بخش هیومن دیزاین */
.hd-header-box h3 {
    margin-bottom: 30px !important;
    font-size: 1.5rem;
    border-bottom: 1px dashed #444;
    padding-bottom: 15px;
    display: inline-block;
    width: 100%;
    color: #d3ad69; /* طلایی */
}

/* شبکه اطلاعات (Grid) */
.hd-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* کارت‌های اطلاعات تکی */
.hd-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 15px 10px;
    transition: transform 0.3s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hd-info-card:hover {
    transform: translateY(-5px);
    border-color: #d3ad69;
    background: rgba(255, 255, 255, 0.08);
}

.hd-info-card span {
    font-size: 0.85rem;
    color: #a0a0b0;
    margin-bottom: 8px;
    display: block;
}

.hd-info-card strong {
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}

/* بخش کانال‌ها */
.hd-channels-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.hd-channels-box h4 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 20px !important;
    text-align: center; /* وسط چین برای زیبایی بیشتر */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.hd-channels-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* کپسول‌های کانال */
.hd-channel-pill {
    background: linear-gradient(90deg, #d3ad69, #b4932a); /* طلایی */
    color: #1a1a2a; /* متن تیره */
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(211, 173, 105, 0.15);
    display: inline-block;
    transition: transform 0.2s;
}

.hd-channel-pill:hover {
    transform: scale(1.05);
}

/* ------------------------------------------------------------
   بخش واکنش‌گرا (Responsive)
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .gk-spheres-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .gk-sphere-card {
        width: 100%; /* در موبایل تمام عرض باشد */
        max-width: 320px;
    }
    
    .hd-info-grid {
        grid-template-columns: 1fr 1fr; /* دو ستون در موبایل */
    }
    
    .gk-sequence-box, .hd-dark-wrapper {
        padding: 20px;
    }
}