/* Documentation/Guideline Page Styles — matches the mptbm_operate_areas admin screen palette */

/* Main Documentation Container */
.mptbm-documentation {
    max-width: 98%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.6;
}

/* mp_style.css has `div.mpStyle { margin: 0; padding: 0; }` (element+class,
   higher specificity than the plain .mptbm-documentation class alone), which
   would silently zero out the margin above — same bug already fixed on the
   Status page. Restore it here with matching (two-class) specificity. */
.mpStyle.mptbm-documentation {
    margin: 20px auto;
}

/* Documentation Header */
.mptbm-doc-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 26px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px -26px rgba(15, 23, 42, 0.55);
    margin-bottom: 24px;
}

.mptbm-doc-header-icon {
    display: inline-flex;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #6c5ce7, #5145cd);
    box-shadow: 0 10px 22px -12px rgba(81, 69, 205, 0.8);
    font-size: 20px;
}

.mptbm-doc-eyebrow {
    margin: 0 0 4px 0;
    color: #6c5ce7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mptbm-doc-header-content h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 750;
    color: #111827;
}

.mptbm-doc-header-content p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Content Wrapper */
.mptbm-content-wrapper {
    display: flex;
    flex-direction: column;
}

.mptbm-content-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 32px -26px rgba(15, 23, 42, 0.55);
    padding: 0;
    margin-bottom: 30px;
    overflow: hidden;
}

/* Section Styling */
.mptbm-doc-section {
    padding: 30px;
    border-bottom: 1px solid #e8eaf2;
}

.mptbm-doc-section:last-child {
    border-bottom: none;
}

.mptbm-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.mptbm-section-icon {
    background-color: #ebe9ff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.mptbm-section-icon .dashicons {
    color: #5145cd;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.mptbm-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* Shortcode Box */
.mptbm-shortcode-box {
    background-color: #f8fafc;
    border: 1px solid #e8eaf2;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #6254df;
}

.mptbm-shortcode-box code {
    background: transparent;
    font-size: 16px;
    color: #1e293b;
    font-family: Consolas, Monaco, monospace;
    padding: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.mptbm-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #64748b;
    transition: all 0.2s ease;
}

.mptbm-copy-btn:hover {
    color: #5145cd;
}

.mptbm-copy-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Parameter Table */
.mptbm-param-table-wrapper {
    overflow-x: auto;
}

.mptbm-param-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.mptbm-param-table th {
    background-color: #f8fafc;
    text-align: left;
    padding: 12px 15px;
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    border-bottom: 2px solid #e8eaf2;
}

.mptbm-param-table td {
    padding: 12px 15px;
    vertical-align: top;
    border-bottom: 1px solid #e8eaf2;
}

.mptbm-param-table tr:last-child td {
    border-bottom: none;
}

.mptbm-param-table td:first-child {
    width: 150px;
}

.mptbm-param-table td:nth-child(2) {
    width: 180px;
}

.mptbm-param-table code {
    background-color: #f1f5f9;
    padding: 3px 6px;
    border-radius: 6px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    color: #1e293b;
}

/* Parameter Tags */
.mptbm-tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mptbm-tag-manual {
    background-color: #f1f5f9;
    color: #475569;
}

.mptbm-tag-dynamic {
    background-color: #eeecff;
    color: #4338ca;
}

.mptbm-tag-inline {
    background-color: #f1f5f9;
    color: #475569;
}

.mptbm-tag-horizontal {
    background-color: #eeecff;
    color: #4338ca;
}

.mptbm-tag-yes {
    background-color: #ecfdf3;
    color: #15803d;
}

.mptbm-tag-no {
    background-color: #fef2f2;
    color: #dc2626;
}

.mptbm-tag-hourly {
    background-color: #eeecff;
    color: #4338ca;
}

.mptbm-tag-distance {
    background-color: #fff7ed;
    color: #b45309;
}

/* Examples Section */
.mptbm-examples {
    margin-top: 15px;
    background-color: #f8fafc;
    border: 1px solid #e8eaf2;
    padding: 15px;
    border-radius: 12px;
}

.mptbm-examples p {
    margin: 0 0 10px 0;
}

.mptbm-example {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
}

.mptbm-example:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mptbm-example code {
    display: block;
    background-color: #fff;
    border: 1px solid #e8eaf2;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    overflow-x: auto;
    color: #1e293b;
}

.mptbm-example p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Pro Tip Box */
.mptbm-pro-tip {
    display: flex;
    background-color: #fff7ed;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #b45309;
}

.mptbm-pro-tip-icon {
    margin-right: 15px;
}

.mptbm-pro-tip-icon .dashicons {
    color: #b45309;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.mptbm-pro-tip-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #92400e;
}

.mptbm-pro-tip-content p {
    margin: 0;
    color: #92400e;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .mptbm-doc-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px;
    }

    .mptbm-doc-section {
        padding: 20px;
    }

    .mptbm-param-table td,
    .mptbm-param-table th {
        padding: 10px 12px;
    }

    .mptbm-param-table td:first-child {
        width: auto;
    }

    .mptbm-param-table td:nth-child(2) {
        width: auto;
    }
}

@media screen and (max-width: 600px) {
    .mptbm-doc-header-content h1 {
        font-size: 22px;
    }

    .mptbm-section-header h2 {
        font-size: 16px;
    }

    .mptbm-shortcode-box code {
        font-size: 14px;
    }

    .mptbm-pro-tip {
        flex-direction: column;
    }

    .mptbm-pro-tip-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
