/**
 * Run guide button and modal (dashboard widget + paid plan editor)
 */

.yrt-run-guide-btn {
    display: inline-block;
    margin: 6px 0 0;
    padding: 6px 14px;
    background: linear-gradient(135deg, #d0ee88, #b8d870);
    border: none;
    border-radius: 6px;
    color: #16361c;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.yrt-run-guide-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(208, 238, 136, 0.35);
}

.yrt-run-guide-btn:focus {
    outline: 2px solid #d0ee88;
    outline-offset: 2px;
}

/* Modal overlay */
.yrt-run-guide-modal {
    display: none;
    position: fixed;
    z-index: 100002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.yrt-run-guide-modal-content {
    background: linear-gradient(135deg, #17131b 0%, #2a1f2e 100%);
    margin: 5% auto;
    padding: 24px 28px;
    max-width: 480px;
    border: 2px solid #d0ee88;
    border-radius: 12px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.yrt-run-guide-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5em;
    color: #d0ee88;
    cursor: pointer;
    line-height: 1;
}

.yrt-run-guide-modal-close:hover {
    color: #f1ebe7;
}

.yrt-run-guide-title {
    margin: 0 0 12px;
    padding-right: 28px;
    font-size: 1.25em;
    color: #d0ee88;
}

.yrt-run-guide-meta-table {
    width: 100%;
    margin: 0 0 16px;
    border-collapse: collapse;
    font-size: 0.95em;
}

.yrt-run-guide-meta-table td {
    padding: 10px 14px;
    vertical-align: top;
}

.yrt-run-guide-meta-table .yrt-guide-label {
    color: #b8d870;
    font-weight: 600;
    white-space: nowrap;
    width: 1%;
}

.yrt-run-guide-meta-table td:last-child {
    color: #f1ebe7;
}

.yrt-run-guides-section {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #d0ee88;
    border-radius: 8px;
    background: #f8faf6;
}

.yrt-run-guides-section h3 {
    margin: 0 0 8px;
    font-size: 1.1em;
    color: #16361c;
}

.yrt-run-guides-intro {
    margin: 0 0 12px;
    font-size: 0.9em;
    color: #2a3a33;
    line-height: 1.4;
}

.yrt-run-guides-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.yrt-run-guides-table th,
.yrt-run-guides-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e8dc;
}

.yrt-run-guides-table th {
    font-weight: 600;
    color: #16361c;
}

.yrt-run-guides-table .yrt-run-guide-btn {
    margin: 0;
}

.yrt-run-guide-body {
    color: #f1ebe7;
    font-size: 0.95em;
    line-height: 1.5;
    border-top: 1px solid rgba(208, 238, 136, 0.3);
    padding-top: 12px;
}

.yrt-run-guide-body .yrt-run-guide-line {
    margin: 0 0 8px;
}

.yrt-run-guide-body .yrt-run-guide-line:last-child {
    margin-bottom: 0;
}

.yrt-run-guide-section {
    margin-bottom: 12px;
}

.yrt-run-guide-section:last-child {
    margin-bottom: 0;
}

.yrt-run-guide-section-title {
    margin: 0 0 4px;
    font-size: 0.85em;
    color: #b8d870;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yrt-run-guide-section-text {
    margin: 0;
    font-size: 0.95em;
    color: #f1ebe7;
    line-height: 1.45;
}

/* Free mode: blur only the white body paragraphs; table and bright green titles stay visible */
.yrt-run-guide-modal--locked .yrt-run-guide-section-text,
.yrt-run-guide-modal--locked .yrt-run-guide-body .yrt-run-guide-line {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.yrt-run-guide-modal--locked .yrt-run-guide-title,
.yrt-run-guide-modal--locked .yrt-run-guide-meta-table,
.yrt-run-guide-modal--locked .yrt-run-guide-meta-table .yrt-guide-label,
.yrt-run-guide-modal--locked .yrt-run-guide-meta-table td,
.yrt-run-guide-modal--locked .yrt-run-guide-section-title {
    filter: none;
}

/* Unlock Run Guides CTA (free mode) */
.yrt-run-guide-cta-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(208, 238, 136, 0.35);
    text-align: center;
}

.yrt-run-guide-unlock-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #d0ee88, #b8d870);
    border: none;
    border-radius: 8px;
    color: #16361c;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.yrt-run-guide-unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(208, 238, 136, 0.4);
}

.yrt-run-guide-unlock-btn:focus {
    outline: 2px solid #d0ee88;
    outline-offset: 2px;
}

/* Widget card: keep button compact */
.yrt-week-widget-workout-full .yrt-run-guide-btn {
    margin-top: 8px;
}
