/**
 * Public-facing styles for Thinc Forum
 */

.thinc-forum-wrapper {
	max-width: 900px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.thinc-forum-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 15px;
	border-bottom: 2px solid #eee;
}

.thinc-forum-header h2 {
	margin: 0;
	color: #333;
	font-size: 24px;
}

.thinc-forum-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.thinc-forum-item {
	padding: 20px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	transition: box-shadow 0.3s;
}

.thinc-forum-item:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thinc-forum-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.thinc-forum-item-header h3 {
	margin: 0;
	font-size: 18px;
}

.thinc-forum-item-header h3 a {
	color: #333;
	text-decoration: none;
}

.thinc-forum-item-header h3 a:hover {
	color: #667eea;
}

.thinc-forum-item-meta {
	display: flex;
	gap: 15px;
	margin-bottom: 10px;
	font-size: 14px;
	color: #666;
}

.thinc-forum-item-excerpt {
	color: #666;
	line-height: 1.6;
}

.thinc-status-badge {
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.thinc-status-open {
	background: #e3f2fd;
	color: #1976d2;
}

.thinc-status-in-progress {
	background: #fff3e0;
	color: #f57c00;
}

.thinc-status-resolved {
	background: #e8f5e9;
	color: #388e3c;
}

.thinc-status-closed {
	background: #f5f5f5;
	color: #616161;
}

.thinc-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	text-decoration: none;
	display: inline-block;
	transition: background 0.3s;
}

.thinc-btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.thinc-btn-primary:hover {
	background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
	color: #fff;
}

.thinc-btn-back {
	background: #666;
	color: #fff;
	margin-bottom: 15px;
}

.thinc-btn-back:hover {
	background: #555;
	color: #fff;
}

.thinc-form-group {
	margin-bottom: 20px;
}

.thinc-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.thinc-form-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.required {
	color: #dc3232;
}

.thinc-forum-message {
	padding: 12px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.thinc-forum-message-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.thinc-forum-message-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.thinc-forum-notice {
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.thinc-forum-empty {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

.thinc-ticket-content {
	margin-top: 20px;
}

.thinc-ticket-main {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #eee;
}

.thinc-ticket-meta {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 14px;
	color: #666;
}

.thinc-ticket-body {
	color: #333;
	line-height: 1.8;
}

.thinc-ticket-replies {
	margin-top: 30px;
}

.thinc-ticket-replies h3 {
	margin-bottom: 20px;
	color: #333;
}

.thinc-reply-item {
	padding: 15px;
	margin-bottom: 15px;
	background: #f8f9fa;
	border-radius: 6px;
	border-left: 4px solid #667eea;
}

.thinc-reply-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.thinc-reply-header strong {
	color: #333;
}

.thinc-reply-date {
	font-size: 12px;
	color: #999;
}

.thinc-reply-content {
	color: #666;
	line-height: 1.6;
}

.thinc-ticket-reply-form {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 2px solid #eee;
}

.thinc-ticket-reply-form h3 {
	margin-bottom: 20px;
	color: #333;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 30px;
}

.pagination a,
.pagination span {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
}

.pagination .current {
	background: #667eea;
	color: #fff;
	border-color: #667eea;
}

.pagination a:hover {
	background: #f5f5f5;
}

/* Title Suggestions */
.thinc-title-suggestions {
	position: absolute;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	margin-top: 5px;
	max-width: 100%;
	z-index: 1000;
	display: none;
}

.thinc-suggestions-header {
	padding: 10px 15px;
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
	font-weight: 600;
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
}

.thinc-suggestion-item {
	padding: 12px 15px;
	border-bottom: 1px solid #eee;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.2s;
}

.thinc-suggestion-item:hover {
	background: #f9f9f9;
}

.thinc-suggestion-item:last-child {
	border-bottom: none;
}

.thinc-suggestion-item strong {
	color: #333;
	font-size: 14px;
}

.thinc-suggestion-status {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 12px;
	background: #e3f2fd;
	color: #1976d2;
}

/* Comment Rating */
.thinc-comment-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-right: 15px;
}

.thinc-rate-up,
.thinc-rate-down {
	background: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 16px;
	color: #666;
	transition: all 0.2s;
}

.thinc-rate-up:hover:not(.disabled) {
	background: #e8f5e9;
	border-color: #4caf50;
	color: #2e7d32;
}

.thinc-rate-down:hover:not(.disabled) {
	background: #ffebee;
	border-color: #f44336;
	color: #c62828;
}

.thinc-rate-up.active {
	background: #4caf50;
	border-color: #4caf50;
	color: #fff;
}

.thinc-rate-down.active {
	background: #f44336;
	border-color: #f44336;
	color: #fff;
}

.thinc-rate-up.disabled,
.thinc-rate-down.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.thinc-rating-count {
	font-weight: 600;
	color: #333;
	min-width: 30px;
	text-align: center;
}

/* Reply Actions */
.thinc-reply-actions {
	display: flex;
	align-items: center;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

.thinc-reply-to-comment {
	color: #667eea;
	text-decoration: none;
	font-size: 13px;
	margin-left: auto;
}

.thinc-reply-to-comment:hover {
	text-decoration: underline;
}

/* Nested Replies */
.thinc-nested-replies {
	margin-left: 40px;
	margin-top: 15px;
	padding-left: 15px;
	border-left: 2px solid #e5e5e5;
}

.thinc-nested-replies .thinc-reply-item {
	background: #f9f9f9;
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 10px;
}

/* Comment Filter */
.thinc-replies-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.thinc-replies-header h3 {
	margin: 0;
}

.thinc-comment-filter {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
}

/* Inline Reply Form */
.thinc-inline-reply-form {
	margin-top: 15px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
	border-left: 3px solid #667eea;
}

.thinc-inline-reply-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	margin-bottom: 10px;
	resize: vertical;
	min-height: 80px;
}

.thinc-btn-cancel {
	background: #666;
	color: #fff;
	margin-left: 10px;
}

.thinc-btn-cancel:hover {
	background: #555;
	color: #fff;
}

