/**
 * Spec Comments Block Styles
 */

.wp-block-ollie-child-spec-comments {
    /* Block spacing */
    margin-top: var(--wp--preset--spacing--large);
    margin-bottom: var(--wp--preset--spacing--large);
}

.spec-comments-inner {
    max-width: var(--wp--style--global--content-size);
    margin-left: auto;
    margin-right: auto;
}

/* Header styles */
.spec-comments-header {
    margin-bottom: var(--wp--preset--spacing--medium);
}

.spec-comments-title {
    font-size: var(--wp--preset--font-size--x-large);
    font-weight: 600;
    margin-bottom: var(--wp--preset--spacing--small);
}

.spec-comments-title .comments-count {
    font-size: 0.85em;
    font-weight: normal;
    opacity: 0.7;
    margin-left: 0.5em;
}

.comments-notice {
    font-size: var(--wp--preset--font-size--small);
    font-style: italic;
    color: var(--wp--preset--color--contrast-2);
    margin: 0;
}

/* Comment form styles - inherit from theme */
.spec-comments-form {
    margin-bottom: var(--wp--preset--spacing--large);
}

/* Let the theme handle all form styling to match core comments block */

/* Reply title styling */
.comment-reply-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.comment-reply-title small {
    font-size: var(--wp--preset--font-size--small);
    font-weight: normal;
}

#cancel-comment-reply-link {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

#cancel-comment-reply-link:hover {
    text-decoration: underline;
}

/* Comments list styles */
.spec-comments-list {
    display: flex;
    flex-direction: column;

    margin-top: var(--wp--preset--spacing--large);
}

.spec-comments-list .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-comments-list .comment {
    padding: var(--wp--preset--spacing--medium);
    margin-bottom: var(--wp--preset--spacing--medium);
    background-color: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--contrast-3);
    border-radius: 4px;
}

.spec-comments-list .comment-author {
    display: flex;
    align-items: center;
    margin-bottom: var(--wp--preset--spacing--small);
}

.spec-comments-list .comment-author .avatar {
    border-radius: 50%;
    margin-right: var(--wp--preset--spacing--small);
}

.spec-comments-list .comment-author .fn {
    font-weight: 600;
    margin-right: 0.25em;
}

.spec-comments-list .comment-author .says {
    font-weight: normal;
    color: var(--wp--preset--color--contrast-2);
}

.spec-comments-list .comment-metadata {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--contrast-2);
    margin-bottom: var(--wp--preset--spacing--small);
}

.spec-comments-list .comment-metadata a {
    color: inherit;
    text-decoration: none;
}

.spec-comments-list .comment-metadata a:hover {
    text-decoration: underline;
}

.spec-comments-list .comment-content {
    font-size: var(--wp--preset--font-size--small);
}

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

.spec-comments-list .reply {
    margin-top: var(--wp--preset--spacing--small);
}

.spec-comments-list .reply a {
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

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

/* Nested comments */
.spec-comments-list .children {
    list-style: none;
    margin-left: var(--wp--preset--spacing--medium);
    margin-top: var(--wp--preset--spacing--medium);
    padding-left: var(--wp--preset--spacing--medium);
    border-left: 2px solid var(--wp--preset--color--contrast-3);
}

/* Comment navigation */
.comment-navigation {
    margin-top: var(--wp--preset--spacing--large);
    padding-top: var(--wp--preset--spacing--medium);
    border-top: 1px solid var(--wp--preset--color--contrast-3);
}

.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-navigation a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    font-weight: 600;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 600px) {
    .spec-comments-form {
        padding: var(--wp--preset--spacing--small);
    }
    
    .spec-comments-list .children {
        margin-left: 0;
        padding-left: var(--wp--preset--spacing--small);
    }
}