/* Public Comments Styles */

body {
    background: #0b1220;
    color: #e2e8f0;
}

.comments-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.comments-hero {
    margin-bottom: 1.5rem;
    padding: 2rem;
    background: linear-gradient(145deg,
            color-mix(in srgb, var(--primary-color, #6366f1) 20%, transparent),
            color-mix(in srgb, var(--secondary-color, #8b5cf6) 10%, transparent));
    border: 1px solid color-mix(in srgb, var(--primary-color, #6366f1) 30%, transparent);
    border-radius: 1.25rem;
}

.comments-hero h1 {
    margin: 0.35rem 0 0.25rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.comments-hero .muted {
    color: rgba(255, 255, 255, 0.78);
}

.collection-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.comments-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.content-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.card-header h2 {
    margin: 0;
}

.muted {
    color: rgba(255, 255, 255, 0.7);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    color: #e2e8f0;
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.char-counter {
    font-size: 12px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-layout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.comment-card.is-owner .comment-layout {
    flex-direction: row-reverse;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.4);
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.author-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.2;
    word-break: break-word;
}

.comment-content-wrapper {
    flex-grow: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

.comment-card.is-owner .comment-content-wrapper {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border-color: rgba(99, 102, 241, 0.2);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-text {
    margin: 0;
    white-space: pre-wrap;
    color: #e2e8f0;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-end;
}

.pending-note {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.status-approved {
    color: #22c55e;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.pagination-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

@media (max-width: 640px) {
    .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .collection-actions {
        flex-direction: column;
    }
}