/* Thread Comments - Simple Clean Style */

.tc-comments-wrapper {
    max-width: 100%;
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Remove tabs completely */
.coral-tabs {
    display: none;
}

/* Signed In - Simple */
.coral-signed-in {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.coral-signed-label {
    margin: 0;
    font-size: 13px;
    color: #666;
    display: inline;
}

.coral-username {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    display: inline;
}

.coral-change-name {
    background: none;
    border: none;
    padding: 0;
    margin-left: 8px;
    font-size: 13px;
    color: #4a90e2;
    cursor: pointer;
    text-decoration: none;
}

.coral-change-name:hover {
    text-decoration: underline;
}

/* Name Edit Box - Compact */
.coral-name-edit-box {
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 16px;
}

.coral-name-edit-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.coral-name-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.coral-name-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.coral-name-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.coral-name-save,
.coral-name-cancel {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.coral-name-save {
    background: #000;
    color: #fff;
}

.coral-name-save:hover {
    background: #333;
}

.coral-name-cancel {
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
}

.coral-name-cancel:hover {
    background: #f5f5f5;
}

.coral-name-help {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Guidelines - Minimal */
.coral-guidelines {
    margin-bottom: 16px;
}

.coral-guidelines p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.coral-guidelines a {
    color: #4a90e2;
    text-decoration: underline;
}

/* Viewing - Hidden or minimal */
.coral-viewing {
    display: none;
}

/* Comment Form - Clean */
.coral-comment-form {
    margin-bottom: 40px;
}

.coral-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.5;
    margin-bottom: 8px;
}

.coral-textarea::placeholder {
    color: #999;
}

.coral-textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Toolbar - Hidden */
.coral-toolbar {
    display: none;
}

/* Character Count - Simple */
.coral-char-wrapper {
    margin-bottom: 8px;
}

.coral-char-count {
    font-size: 12px;
    color: #999;
}

/* Submit Button - Clean */
.coral-submit-btn {
    padding: 10px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.coral-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.coral-submit-btn:not(:disabled):hover {
    background: #333;
}

/* All Comments Header */
.coral-all-comments {
    margin: 40px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.coral-all-comments h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline;
    color: #000;
}

.coral-comment-badge {
    display: inline;
    margin-left: 8px;
    font-size: 14px;
    color: #666;
}

/* Sort Dropdown */
.coral-sort-wrapper {
    margin: 16px 0 24px 0;
}

.coral-sort-select {
    width: 100%;
    max-width: 300px;
    padding: 8px 32px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.coral-sort-select:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Comments List */
.coral-comments-list {
    margin: 24px 0;
}

.coral-empty-state,
.coral-loading {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

/* Comment Items */
.coral-comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.coral-comment-item:last-child {
    border-bottom: none;
}

.coral-comment-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.coral-comment-author {
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

.coral-comment-date {
    font-size: 12px;
    color: #999;
}

.coral-comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 8px 0 12px 0;
}

.coral-comment-gif img {
    max-width: 250px;
    border-radius: 4px;
    margin: 8px 0;
}

.coral-comment-actions {
    display: flex;
    gap: 16px;
}

.coral-action-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
}

.coral-action-btn:hover {
    color: #000;
}

.coral-delete-btn:hover {
    color: #dc2626;
}

.coral-report-btn:hover {
    color: #ea580c;
}

/* Replies */
.coral-replies {
    margin-left: 32px;
    margin-top: 12px;
}

/* Bottom Navigation */
.coral-bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 24px 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
}

.coral-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.coral-nav-btn:hover {
    color: #000;
}

.coral-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Load More */
.coral-load-more-wrapper {
    text-align: center;
    margin: 24px 0;
}

.coral-load-more-btn {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #000;
}

.coral-load-more-btn:hover {
    background: #f5f5f5;
    border-color: #000;
}

/* Login Prompt */
.coral-login-prompt {
    padding: 40px 24px;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin: 40px 0;
}

.coral-login-prompt p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.coral-login-prompt a {
    color: #4a90e2;
    font-weight: 600;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .coral-replies {
        margin-left: 20px;
    }
    
    .coral-bottom-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .coral-nav-btn {
        flex: 1 1 30%;
    }
}