/**
 * NewsPedia 3.0 - Auxiliary Modern Wikipedia Styles & Enhancements
 *
 * @package NewsPedia
 * @version 2.0.0
 */

/* ========================================================
   MODERN TOOLBAR & TAB PILLS
   ======================================================== */
.modern-page-toolbar {
    background: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.modern-toolbar-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0.4rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modern-tab-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}

.modern-tab-pills li a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-subtle);
    background: var(--color-bg-surface-subtle);
    border: 1px solid var(--color-border);
    transition: all 0.15s ease;
}

.modern-tab-pills li.selected a,
.modern-tab-pills li a:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.tab-badge {
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--radius-full);
}

.modern-toolbar-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-time-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-subtle);
    background: var(--color-bg-surface-subtle);
    border: 1px solid var(--color-border);
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

/* ========================================================
   MOBILE NAVIGATION DRAWER
   ======================================================== */
@media (max-width: 1024px) {
    #mw-panel {
        position: fixed;
        top: var(--header-height);
        left: 0;
        bottom: 0;
        width: 280px;
        background: var(--color-bg-surface-elevated);
        border-right: 1px solid var(--color-border);
        box-shadow: var(--shadow-xl);
        z-index: 999;
        overflow-y: auto;
        padding: 1.25rem;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    #mw-panel.mobile-open {
        transform: translateX(0);
    }
}

/* ========================================================
   COMMENTS STYLING REFINEMENTS
   ======================================================== */
.np-comments-container {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.np-comments-header {
    margin-bottom: 1.5rem;
}

.comments-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.np-comments-badge {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.comment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-list .comment {
    background: var(--color-bg-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.comment-author .avatar {
    border-radius: var(--radius-full);
}

.comment-author .fn {
    font-weight: 800;
    color: var(--color-text-main);
}

.comment-metadata {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}

.comment-content {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-body);
}

.reply {
    margin-top: 0.75rem;
}

.comment-reply-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.comment-reply-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--color-bg-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-size: var(--font-size-sm);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg-surface);
}

.comment-form .form-submit input[type="submit"] {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background 0.15s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: var(--color-primary-hover);
}

/* Accessible Focus States */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
