/**
 * Disqus-style comments (Apple-inspired) for Sports Theme.
 * Scoped to .st-comments so it can't affect other areas.
 */

.st-comments {
    --st-accent: var(--primary-color, #004170);
    --st-text: var(--text-color, #1d1d1f);
    --st-muted: #86868b;
    --st-line: rgba(0, 0, 0, 0.08);
    --st-surface: #ffffff;
    --st-surface-2: #f5f5f7;

    margin-top: 40px;
    padding: 24px;
    background: var(--st-surface);
    border: 1px solid var(--st-line);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

[data-sports-theme="dark"] .st-comments {
    --st-text: #f5f5f7;
    --st-muted: #98989d;
    --st-line: rgba(255, 255, 255, 0.1);
    --st-surface: #1e1e1e;
    --st-surface-2: #2c2c2e;
}

/* Header */
.st-comments__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.st-comments__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--st-text);
}

.st-comments__count {
    color: var(--st-muted);
    font-weight: 600;
}

/* List (default WordPress markup, restyled) */
.st-comments .comment-list,
.st-comments .comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.st-comments .comment-body {
    position: relative;
    padding-block: 16px;
    padding-inline-start: 60px;
    border-top: 1px solid var(--st-line);
}

.st-comments .comment-list > .comment:first-child > .comment-body {
    border-top: 0;
}

.st-comments .comment-author .avatar {
    position: absolute;
    inset-inline-start: 0;
    top: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0;
}

.st-comments .comment-author .fn {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    color: var(--st-text);
}

.st-comments .comment-metadata {
    margin-top: 2px;
}

.st-comments .comment-metadata a {
    font-size: 12px;
    color: var(--st-muted);
    text-decoration: none;
}

.st-comments .comment-content {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--st-text);
}

.st-comments .comment-content p {
    margin: 0 0 8px;
}

.st-comments .comment-content p:last-child {
    margin-bottom: 0;
}

.st-comments .reply a {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-accent);
    text-decoration: none;
}

.st-comments .reply a:hover {
    text-decoration: underline;
}

.st-comments .children {
    padding-inline-start: 56px;
    margin-inline-start: 22px;
    border-inline-start: 2px solid var(--st-line);
    padding-block-start: 4px;
}

.st-comments .children .comment-body {
    border-top: 0;
}

.st-comments .children .comment-author .avatar {
    width: 34px;
    height: 34px;
}

.st-comments .children .comment-body {
    padding-inline-start: 46px;
}

.st-comments .comment-awaiting-moderation {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--st-muted);
}

/* Form */
.st-comments .comment-respond {
    margin-top: 24px;
}

.st-comments .comment-reply-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--st-text);
}

.st-comments .comment-reply-title small a {
    font-size: 13px;
    color: var(--st-accent);
}

.st-comments .comment-form p {
    margin: 0 0 12px;
}

.st-comments .comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--st-muted);
}

.st-comments .comment-form input[type="text"],
.st-comments .comment-form input[type="email"],
.st-comments .comment-form input[type="url"],
.st-comments .comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--st-text);
    background: var(--st-surface-2);
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.st-comments .comment-form input:focus,
.st-comments .comment-form textarea:focus {
    border-color: var(--st-accent);
    background: var(--st-surface);
}

.st-comments .comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.st-comments .comment-form .form-submit {
    margin: 4px 0 0;
}

.st-comments .comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--st-accent);
    border: 0;
    border-radius: 980px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.st-comments .comment-form .submit:hover {
    transform: scale(1.02);
    filter: brightness(1.06);
}

.st-comments .comment-notes,
.st-comments .logged-in-as,
.st-comments .comment-form-cookies-consent {
    font-size: 13px;
    color: var(--st-muted);
}

.st-comments .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-comments .no-comments {
    color: var(--st-muted);
}

/* "Show more" toggle */
.st-comments__more {
    display: block;
    width: 100%;
    margin: 14px 0 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--st-accent);
    background: var(--st-surface-2);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.st-comments__more:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-sports-theme="dark"] .st-comments__more:hover {
    background: rgba(255, 255, 255, 0.08);
}
