/* Comments Section Styling */
.comments-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--beige-white, #f9f9f9);
    border-radius: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.comments-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
    color: var(--dark-blue, #333);
}

.comments-container {
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

.comment-author {
    font-weight: bold;
    color: var(--dark-blue, #4a6741);
}

.comment-date {
    color: #888;
    font-size: 0.9em;
}

.comment-content {
    line-height: 1.5;
}

.comment-form {
    margin-top: 20px;
}

/* Add this to your comments.css file */
.delete-comment-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: inline-block;
    z-index: 100; /* Ensure it's above other elements */
    position: relative; /* Ensure z-index works */
}

.delete-comment-btn:hover {
    opacity: 1;
}

.delete-comment-btn img {
    width: 16px;
    height: 16px;
    display: block;
}


#comment-text {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: inherit;
    resize: vertical;
    background-color: transparent;
}

#submit-comment {
    background-color: var(--dark-blue, #4a6741);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

#submit-comment:hover {
    opacity: 0.9;
}

.login-to-comment {
    text-align: center;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.login-button {
    display: inline-block;
    margin-top: 10px;
    background-color: var(--dark-blue, #4a6741);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.login-button:hover {
    opacity: 0.9;
}

/* Comment meta section for date and delete button */
.comment-meta {
    display: flex;
    align-items: center;
}

/* Delete button styling */
.delete-comment-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.delete-comment-btn:hover {
    opacity: 1;
}

.delete-comment-btn img {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .comments-section {
        padding: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-meta {
        margin-top: 5px;
        display: flex;
        align-items: center;
    }
    
    .comment-date {
        margin-top: 0;
    }
}
