/**
 * Comments Section Styling for Fan Content
 */

/* Comments Container */
.zfc-story-comments,
.zfc-comments-section,
.zfc-comments {
    background: var(--main-light, #fff);
    border: 2px solid var(--main-accent, #a6cc8b);
    border-radius: var(--border-radius-lg, 8px);
    padding: var(--space-xl, 2rem);
    margin-top: var(--space-xl, 2rem);
}

.zfc-story-comments h2,
.zfc-comments-section h2,
.zfc-comments h2 {
    color: var(--main-dark, #1a2419);
    font-family: var(--font-family-accent, 'EB Garamond', serif);
    font-size: 1.5em;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--main-accent, #a6cc8b);
}

#reply-title {
    color: var(--main-dark, #1a2419);
    font-family: var(--font-family-accent, 'EB Garamond', serif);
    font-size: 1.3em;
    margin: 0 0 1rem 0;
    padding-bottom: 0;
    border-bottom: none;
    border-top: none;
}

/* Remove any borders/lines from comment respond section */
#respond {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.game-comments #respond,
.zfc-comments #respond {
    border: none;
}

/* Comment Form */
.zfc-comment-form,
.comment-form {
    margin-top: 1rem;
}

.zfc-comment-form .logged-in-as,
.comment-form .logged-in-as {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 1rem;
}

.zfc-comment-form .logged-in-as strong,
.comment-form .logged-in-as strong {
    color: var(--main-dark, #1a2419);
}

.zfc-comment-form .comment-form-comment label,
.comment-form .comment-form-comment label {
    display: block;
    font-weight: 600;
    color: var(--main-dark, #1a2419);
    margin-bottom: 0.5rem;
}

.zfc-comment-form textarea,
.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius, 5px);
    font-family: var(--font-family-primary, 'Outfit', sans-serif);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.zfc-comment-form textarea:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--main-accent, #a6cc8b);
    box-shadow: 0 0 0 3px rgba(166, 204, 139, 0.2);
}

.zfc-comment-form .form-submit,
.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-submit-btn,
.zfc-comment-form input[type="submit"],
.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--main-bg, #253124) 0%, #1a2419 100%);
    color: var(--main-light, #fff);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius, 5px);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.comment-submit-btn:hover,
.zfc-comment-form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.comment-list .comment {
    background: #f9f9f9;
    border-radius: var(--border-radius, 5px);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--main-accent, #a6cc8b);
}

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

.comment-list .comment .comment-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.comment-list .comment .comment-author .fn {
    font-weight: 600;
    color: var(--main-dark, #1a2419);
}

.comment-list .comment .comment-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.5rem;
}

.comment-list .comment .comment-content {
    color: #333;
    line-height: 1.6;
}

.comment-list .comment .reply {
    margin-top: 0.75rem;
}

.comment-list .comment .reply a {
    color: var(--main-bg, #253124);
    font-size: 0.9em;
    text-decoration: none;
}

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

/* Nested comments */
.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.5rem;
    padding: 0;
}

/* No comments message */
.no-comments {
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .zfc-story-comments,
    .zfc-comments-section,
    .zfc-comments {
        padding: 1rem;
    }
    
    .comment-list .children {
        margin-left: 0.75rem;
    }
}
