/**
 * YOOAdmin - About modal styles
 * Same overlay pattern as qa-modal-overlay (card modal)
 *
 * @package YOOAdmin
 */

/* Overlay = full-screen backdrop + flex container (like qa-modal-overlay) */
.yp-about-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    cursor: pointer;
}
.yp-about-overlay.is-visible {
    display: flex !important;
}
/* Ensure overlay covers header - same as qa-modal-open */
body.yp-about-modal-open .yp-header {
    z-index: 999998 !important;
    position: relative !important;
}
body.yp-about-modal-open #wpadminbar {
    z-index: 999998 !important;
}

/* Modal content - stop click propagation, reset cursor */
.yp-about-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 752px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.yp-about-overlay .yp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    cursor: pointer;
}

.yp-about-body {
    flex: 1;
    min-height: 0;
    padding: 30px 45px 25px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(81, 82, 83, 0.25) transparent;
}

.yp-about-body::-webkit-scrollbar {
    width: 8px;
}

.yp-about-body::-webkit-scrollbar-track {
    background: #fff;
    margin: 10px 0;
}

.yp-about-body::-webkit-scrollbar-thumb {
    background: rgba(81, 82, 83, 0.35);
    background-clip: content-box;
    border: 10px solid #fff;
    border-width: 10px 2px;
    border-radius: 12px;
}

.yp-about-body::-webkit-scrollbar-thumb:hover {
    background: rgba(81, 82, 83, 0.5);
}

.yp-about-title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--yp-primary, #eda934);
}

.yp-about-subtitle {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--yp-text-primary, #1a1a1a);
}

.yp-about-intro,
.yp-about-lite {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--yp-text-secondary, #666);
}

.yp-about-section {
    margin: 24px 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--yp-text-primary, #1a1a1a);
}

.yp-about-table-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
}

.yp-about-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.yp-about-table th,
.yp-about-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--yp-border-color, #e5e5e5);
}

.yp-about-table th {
    font-weight: 600;
    color: var(--yp-text-primary, #1a1a1a);
    background: var(--yp-header-bg-light, #f8f9fa);
}

.yp-about-table td {
    color: var(--yp-text-secondary, #666);
}

.yp-about-table td:last-child,
.yp-about-table th:last-child {
    text-align: center;
}

.yp-about-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--yp-primary, #eda934);
    font-size: 16px;
}
.yp-about-check::before {
    content: "\f147";
    font-family: dashicons;
    font-size: 18px;
    line-height: 1;
}

.yp-about-block {
    margin-bottom: 20px;
}

.yp-about-block-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--yp-text-primary, #1a1a1a);
}

.yp-about-block p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--yp-text-secondary, #666);
}

.yp-about-block p:last-child {
    margin-bottom: 0;
}

.yp-about-resources {
    margin-top: 24px;
    padding: 16px 18px;
    background: color-mix(in srgb, var(--yp-primary, #eda934) 8%, #fff);
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--yp-primary, #eda934) 20%, transparent);
}

.yp-about-resources-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--yp-text-primary, #1a1a1a);
}

.yp-about-resources-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.yp-about-resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--yp-text-secondary, #666);
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.yp-about-resource-link:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--yp-primary, #eda934);
}

.yp-about-resource-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--yp-primary, #eda934);
    flex-shrink: 0;
}

.yp-about-resource-link:hover .dashicons {
    color: var(--yp-primary, #eda934);
}

.yp-about-resource-label {
    font-weight: 500;
}

.yp-open-about-modal {
    color: var(--yp-primary, #eda934);
    text-decoration: none;
}

.yp-open-about-modal:hover {
    color: color-mix(in srgb, var(--yp-primary, #eda934) 75%, #000);
}

/* RTL - About modal */
[dir="rtl"] .yp-about-overlay .yp-modal-close {
    right: auto;
    left: 15px;
}

[dir="rtl"] .yp-about-content {
    text-align: right;
}

[dir="rtl"] .yp-about-body {
    padding-right: 45px;
    padding-left: 45px;
}

[dir="rtl"] .yp-about-table th,
[dir="rtl"] .yp-about-table td {
    text-align: right;
}

[dir="rtl"] .yp-about-table td:last-child,
[dir="rtl"] .yp-about-table th:last-child {
    text-align: center;
}

[dir="rtl"] .yp-about-table th:first-child,
[dir="rtl"] .yp-about-table td:first-child {
    text-align: right;
}

[dir="rtl"] .yp-about-resource-link {
    text-align: right;
}
