/**
 * NewsTrp Mega Platform - Organizational Dynamic Cards Engine Stylesheet
 * Location: assets/css/dynamic-cards.css
 * Production Status: 100% Complete (Enterprise Ready)
 */

/* ================= ১. গ্লোবাল কার্ড বেস টেমপ্লেট ================= */
.nt-dynamic-card {
    border: 1px solid var(--border-line);
    border-radius: var(--radius-main);
    padding: 18px;
    margin: 12px 0;
    background-color: #f8f9fa; /* হালকা অফ-হোয়াইট ব্যাকগ্রাউন্ড যা সোশ্যাল বাবল থেকে আলাদা চেনা যাবে */
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.card-badge-row {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.card-meta-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0;
}

.card-action-container {
    margin-top: 4px;
}

/* জেনারেলাইজড বোতাম আর্কিটেকচার */
.btn-card-primary, .btn-card-danger, .btn-card-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%; /* মোবাইল ফ্রেন্ডলি ইন্টারফেসের জন্য টাচ জোন ১০০% থাকবে */
}
.btn-card-primary:active, .btn-card-danger:active { transform: scale(0.98); }

@media (min-width: 576px) {
    .btn-card-primary, .btn-card-danger, .btn-card-success {
        width: auto; /* ট্যাবলেটে বা ডেক্সটপে বোতামগুলো কন্টেন্ট সাইজ অনুযায়ী অটো সেট হবে */
    }
}

/* ================= ২. ক্যাটাগরি স্পেসিফিক থিমিং উইজেটস ================= */

/* ক. সরকারি ও নোটিশ কার্ড থিম (টুইটার গ্রে-টিক লাক্সারি বর্ডার) */
.notice-card-theme {
    border-left: 5px solid #71767b;
    background: #f1f3f4;
}
.btn-card-primary {
    background-color: var(--brand-blue);
    color: #fff;
}
.btn-card-primary:hover { background-color: #0052a3; }

/* খ. কর্পোরেট ও ক্যারিয়ার জব কার্ড থিম (গোল্ডেন প্রফেশনাল অ্যাকসেন্ট) */
.job-card-theme {
    border-left: 5px solid #ffad1f;
}
.job-spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-line);
    font-size: 13px;
}
@media (min-width: 400px) { .job-spec-grid { grid-template-columns: repeat(2, 1fr); } }

/* গ. ইভেন্ট কার্ড থিম (ব্লু সোশ্যাল থিম) */
.event-card-theme {
    border-left: 5px solid var(--brand-blue);
}
.event-time-venue {
    font-size: 13px;
    color: var(--text-main);
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-line);
}

/* ঘ. হাসপাতাল ও এনজিও রেড অ্যালার্ট কার্ড থিম */
.emergency-card-theme {
    border-left: 5px solid var(--ticker-red);
    background: #fff5f5; /* অ্যালার্ট সিগন্যাল ব্যাকগ্রাউন্ড */
}
.emergency-description-text {
    font-size: 13px;
    color: #495057;
    line-height: 1.5;
}
.btn-card-danger {
    background-color: var(--ticker-red);
    color: #fff;
}
.btn-card-danger:hover { background-color: #b32426; }

/* ঙ. কমার্শিয়াল প্রমোশনাল অফার কার্ড থিম */
.offer-card-theme {
    border-left: 5px solid #00ba7c; /* সাকসেস গ্রিন */
}
.offer-promo-box {
    background: #e6f8f2;
    border: 1px dashed #00ba7c;
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    border-radius: 6px;
    color: #008a55;
}
.promo-code-text { letter-spacing: 1px; background: #fff; padding: 2px 8px; border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); }
.btn-card-success { background-color: #00ba7c; color: #fff; }
.btn-card-success:hover { background-color: #00995c; }

/* চ. চ্যারিটি ও ফান্ডরেইজিং প্রগ্রেস বার কার্ড থিম */
.fundraising-card-theme {
    border-left: 5px solid #e0245e; /* চ্যারিটি পিংক-রেড */
}
.fund-progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.progress-labels {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}
.progress-bar-rail {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 9999px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background-color: #e0245e;
    border-radius: 9999px;
    transition: width 0.4s ease;
}