/**
 * Frontend Styles for MUI Subang Content Hub
 * Namespace: .mui-subang-
 * Modern Islamic Aesthetic (Emerald, White, Slate, Gold Accents)
 */

/* Container & Cards Grid */
.mui-subang-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin: 25px 0;
    box-sizing: border-box;
}

.mui-subang-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

.mui-subang-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
    border-color: #0f766e;
}

.mui-subang-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mui-subang-badge {
    display: inline-block;
    background: #0f766e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mui-subang-score-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.mui-subang-fatwa-tag {
    font-size: 12px;
    color: #b45309;
    background: #fffbeb;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.mui-subang-card-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.mui-subang-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}

.mui-subang-card-title a:hover {
    color: #0f766e;
}

.mui-subang-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 16px;
    flex-grow: 1;
}

.mui-subang-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    font-size: 13px;
}

.mui-subang-read-more {
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}

.mui-subang-read-more:hover {
    text-decoration: underline;
}

.mui-subang-pdf-quicklink {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 11px;
}

/* Attribution Box on Single Article */
.mui-subang-attribution-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #0f766e;
    border-radius: 8px;
    padding: 24px;
    margin: 35px 0 25px 0;
    box-sizing: border-box;
}

.mui-subang-attribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.mui-subang-license-tag {
    font-size: 12px;
    background: #e2e8f0;
    color: #334155;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.mui-subang-attribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.mui-subang-attr-item {
    display: flex;
    flex-direction: column;
}

.mui-subang-attr-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mui-subang-attr-value {
    color: #1e293b;
    margin-top: 2px;
}

/* "Mengapa Relevan untuk Subang?" Box */
.mui-subang-relevance-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.mui-subang-relevance-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mui-subang-score-pill {
    background: #047857;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
}

.mui-subang-relevance-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #064e3b;
}

/* Action Buttons */
.mui-subang-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mui-subang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.mui-subang-btn-primary {
    background: #0f766e;
    color: #ffffff;
}

.mui-subang-btn-primary:hover {
    background: #115e59;
    color: #ffffff;
}

.mui-subang-btn-secondary {
    background: #d97706;
    color: #ffffff;
}

.mui-subang-btn-secondary:hover {
    background: #b45309;
    color: #ffffff;
}

.mui-subang-disclaimer {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

/* Related Items Section */
.mui-subang-related-section {
    margin: 40px 0 20px 0;
}

.mui-subang-related-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    border-left: 4px solid #0f766e;
    padding-left: 12px;
    margin-bottom: 20px;
}

/* Search Box Component */
.mui-subang-search-container {
    margin: 25px 0;
}

.mui-subang-search-bar {
    display: flex;
    gap: 10px;
}

.mui-subang-search-input {
    flex-grow: 1;
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.mui-subang-search-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.mui-subang-empty-msg {
    text-align: center;
    padding: 30px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .mui-subang-cards-grid {
        grid-template-columns: 1fr;
    }
    .mui-subang-action-buttons {
        flex-direction: column;
    }
    .mui-subang-search-bar {
        flex-direction: column;
    }
}
