/* ── Missionary Bank Plugin Styles ── */
:root {
    --mb-primary:   #1a6b3c;
    --mb-secondary: #c8a84b;
    --mb-bg:        #f9f6f0;
    --mb-card-bg:   #ffffff;
    --mb-text:      #2c2c2c;
    --mb-radius:    12px;
    --mb-shadow:    0 4px 20px rgba(0,0,0,0.10);
}

.mb-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

/* Header */
.mb-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--mb-primary) 0%, #0f4226 100%);
    border-radius: var(--mb-radius);
    color: #fff;
    margin-bottom: 40px;
}
.mb-header h2 { font-size: 2.2em; margin: 0 0 10px; color: #fff; }
.mb-header p  { font-size: 1.05em; opacity: 0.9; max-width: 700px; margin: 0 auto 20px; }
.mb-notice    { font-size: 0.9em; opacity: 0.8; margin-top: 10px; }
.mb-notice a  { color: var(--mb-secondary); }

/* Buttons */
.mb-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mb-btn-primary   { background: var(--mb-secondary); color: #1a1a1a; }
.mb-btn-primary:hover { background: #e0b84f; transform: translateY(-1px); }
.mb-btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; margin-left: 10px; }
.mb-btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* Projects Grid */
.mb-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.mb-project-card {
    background: var(--mb-card-bg);
    border-radius: var(--mb-radius);
    box-shadow: var(--mb-shadow);
    padding: 28px;
    position: relative;
    transition: transform 0.2s ease;
    border-top: 4px solid var(--mb-primary);
}
.mb-project-card:hover { transform: translateY(-3px); }

.mb-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #FFD700;
    color: #333;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
}
.mb-badge-2 { background: #C0C0C0; }
.mb-badge-3 { background: #CD7F32; color: #fff; }

.mb-project-type {
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mb-primary);
    margin-bottom: 8px;
}

.mb-project-card h3 {
    font-size: 1.2em;
    color: var(--mb-text);
    margin: 0 0 12px;
    line-height: 1.3;
}

.mb-description {
    font-size: 0.92em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mb-author {
    font-size: 0.82em;
    color: #888;
    margin-bottom: 20px;
}

/* Vote Section */
.mb-vote-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--mb-bg);
    border-radius: 8px;
}

.mb-vote-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}
.mb-vote-number { font-size: 1.8em; font-weight: 800; color: var(--mb-primary); line-height: 1; }
.mb-vote-label  { font-size: 0.7em; color: #888; text-transform: uppercase; }

.mb-btn-vote {
    flex: 1;
    background: var(--mb-primary);
    color: #fff;
    border-radius: 50px;
    padding: 12px 16px;
    font-size: 0.9em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.mb-btn-vote:hover   { background: #0f4226; }
.mb-btn-vote.voted   { background: #888; cursor: default; }
.mb-btn-vote.loading { opacity: 0.7; cursor: wait; }

/* Share Section */
.mb-share-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82em;
    color: #888;
}

.mb-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
}
.mb-share-btn:hover { transform: scale(1.15); }
.mb-share-fb   { background: #1877F2; }
.mb-share-wa   { background: #25D366; }
.mb-share-tw   { background: #1DA1F2; }
.mb-share-copy { background: #666; }

/* Toast notification */
.mb-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--mb-primary);
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: mb-slide-in 0.3s ease;
}
@keyframes mb-slide-in {
    from { transform: translateX(100px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

/* Form */
.mb-form-box, .mb-success-box, .mb-notice-box {
    background: var(--mb-card-bg);
    border-radius: var(--mb-radius);
    box-shadow: var(--mb-shadow);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}
.mb-form-box h2, .mb-success-box h3, .mb-notice-box h3 {
    color: var(--mb-primary);
    margin-top: 0;
}
.mb-field { margin-bottom: 20px; }
.mb-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--mb-text);
}
.mb-field input,
.mb-field select,
.mb-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.mb-field input:focus,
.mb-field select:focus,
.mb-field textarea:focus {
    border-color: var(--mb-primary);
    outline: none;
}
.mb-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}
.mb-empty { text-align: center; padding: 60px 20px; color: #888; font-size: 1.1em; }

/* Responsive */
@media (max-width: 600px) {
    .mb-projects-grid { grid-template-columns: 1fr; }
    .mb-header h2 { font-size: 1.6em; }
    .mb-form-box, .mb-success-box, .mb-notice-box { padding: 24px; }
}
