/* --- FEEDBACK PAGE STYLES --- */

.feedback-main {
    max-width: 900px;
    margin: 0 auto;
    /* FIX: Added 70px to top padding to account for fixed header */
    padding: calc(70px + 2rem) 2rem 2rem 2rem;
    min-height: calc(100vh - 100px); 
}

.feedback-container {
    background-color: var(--card-bg, #1a1a1a);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color, #333);
}

.feedback-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, #333);
    padding-bottom: 1rem;
}

.feedback-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feedback-header p {
    color: var(--text-color-secondary, #aaa);
}

/* --- INPUT AREA (YouTube Style) --- */
.feedback-input-area {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.current-user-avatar, .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.current-user-avatar img, .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.input-wrapper {
    flex-grow: 1;
}

#feedback-text {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: var(--text-color, #fff);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5rem 0;
    resize: none;
    transition: border-color 0.2s;
    min-height: 24px;
}

#feedback-text:focus {
    outline: none;
    border-bottom-color: var(--text-color, #fff);
}

.input-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- COMMENT LIST --- */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    animation: slideUp 0.3s ease;
    position: relative; /* For absolute positioning of delete button */
}

/* Hover effect to hint at interactivity */
.comment-item:hover .delete-comment-btn {
    opacity: 1;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment-content {
    flex-grow: 1;
}

.comment-header {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.comment-author {
    font-weight: 700;
    color: var(--text-color, #fff);
    margin-right: 0.5rem;
}

.comment-date {
    color: var(--text-color-secondary, #aaa);
    font-size: 0.8rem;
}

.comment-body {
    font-size: 1rem;
    line-height: 1.5;
    color: #ddd;
    white-space: pre-wrap; /* Preserves line breaks */
    margin-top: 4px;
}

/* --- DELETE BUTTON --- */
.delete-comment-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    margin-left: auto; /* Push to right if in flex container, or use absolute */
    transition: color 0.2s;
    opacity: 0.6; /* Semi-transparent by default */
}

.delete-comment-btn:hover {
    color: #E50914; /* Red on hover */
    opacity: 1;
}

/* Scrollbar styling for textarea if it grows */
textarea::-webkit-scrollbar {
    width: 6px;
}
textarea::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}