/* =========================================================
   A13.UZ Custom Enhancements (Modals, Toasts, Reader)
========================================================= */

.a13-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    font-size: 13px;
    z-index: 100000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform .3s var(--ease), opacity .3s;
    pointer-events: none;
}
.a13-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.a13-toast.success {
    border-left: 4px solid #2bc56f;
}
.a13-toast.error {
    border-left: 4px solid #f64c4c;
}

.a13-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(14px);
    z-index: 90000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.a13-modal.open {
    display: flex;
}
.a13-modal-box {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 28px;
    width: min(720px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    padding: 35px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.a13-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--surface2);
    border: 1px solid var(--line);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: .25s;
}
.a13-modal-close:hover {
    background: var(--text);
    color: var(--bg);
}

.a13-form-group {
    margin-bottom: 20px;
    text-align: left;
}
.a13-form-group label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.a13-input, .a13-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .25s;
}
.a13-input:focus, .a13-textarea:focus {
    border-color: var(--text);
}
.a13-textarea {
    resize: vertical;
    min-height: 120px;
}

.a13-article-meta {
    display: flex;
    gap: 15px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 15px;
}
.a13-article-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    margin-bottom: 20px;
}
.a13-article-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}
.a13-article-body p {
    margin-bottom: 16px;
}

.a13-comments-list {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-top: 25px;
}
.a13-comment-item {
    padding: 15px;
    background: var(--surface2);
    border-radius: 14px;
    margin-bottom: 12px;
    font-size: 13px;
}
.a13-comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
}

.command-item.dynamic-item {
    border-left: 2px solid #2bc56f;
}
