/* Material Design 3 Comment Section Styles */

.comments-area {
    margin: 4rem auto 2rem;
    max-width: 800px;
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 4rem;
}

.comment-list .comment {
    margin-bottom: 2.5rem;
}

.comment-list .children {
    list-style: none;
    margin-left: 3rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
}

.comment-body {
    position: relative;
    padding: 1.5rem;
    background: #fcfcfc;
    border-radius: 16px;
    transition: var(--transition);
}

.comment-body:hover {
    background: #f8f8f8;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
    object-fit: cover;
}

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

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-main);
    line-height: 1.7;
}

.reply {
    margin-top: 1rem;
    text-align: right;
}

.reply a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.reply a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Comment Form */
#reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-notes {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fdfdfd;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comment-form-cookies-consent input {
    margin-top: 4px;
}

.submit-md3 {
    background: var(--primary);
    color: #ffffff;
    padding: 0.9rem 2.5rem;
    border-radius: 28px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submit-md3:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.submit-md3:active {
    transform: translateY(0);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .comments-area {
        padding: 1.5rem;
        margin-top: 2rem;
        border-radius: 0;
    }
    
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-list .children {
        margin-left: 1.5rem;
        padding-left: 1rem;
    }
}
