/* Hubito Community Suite - public profile (theme-agnostic, responsive) */
.hcs-profile {
	max-width: 860px;
	margin: 0 auto;
	padding: 20px 16px 40px;
	position: relative;
	z-index: 1;
	background-color: transparent;
}

/* Account for sticky headers from popular themes */
.admin-bar .hcs-profile {
	padding-top: 40px;
}

.hcs-profile-cover {
	height: 200px;
	border-radius: 8px;
	background: linear-gradient(120deg, #1d4ed8, #7c3aed);
	background-size: cover;
	background-position: center;
	position: relative;
}

.hcs-profile-header {
	position: relative;
	padding: 0 24px 16px;
	margin-top: -60px;
	background-color: transparent;
}

.hcs-profile-avatar img {
	border-radius: 50%;
	border: 4px solid #fff;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	width: 120px;
	height: 120px;
	object-fit: cover;
}

.hcs-profile-name {
	margin: 8px 0 0;
	font-size: 1.6em;
	color: #1f2937;
}

.hcs-badge {
	display: inline-block;
	background: #0a66c2;
	color: #fff;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	font-size: 12px;
	vertical-align: middle;
}

.hcs-profile-role {
	color: #4b5563;
	margin: 2px 0;
	font-size: 0.95em;
}

.hcs-profile-headline {
	font-weight: 600;
	margin: 4px 0;
	color: #1f2937;
}

.hcs-contact-btn {
	display: inline-block;
	padding: 8px 18px;
	background: #0a66c2;
	color: #fff !important;
	border-radius: 20px;
	text-decoration: none;
	font-size: 0.9em;
	margin-top: 8px;
}

.hcs-contact-btn:hover {
	background: #084e96;
}

.hcs-profile-edit-link {
	margin-top: 8px;
}

.hcs-profile-edit-link a {
	display: inline-block;
	padding: 6px 14px;
	background: #f3f4f6;
	color: #374151 !important;
	border-radius: 16px;
	text-decoration: none;
	font-size: 0.85em;
	border: 1px solid #e5e7eb;
}

.hcs-profile-edit-link a:hover {
	background: #e5e7eb;
}

/* Sections - flat table-style list inside the single tab card */
.hcs-profile-section {
	background-color: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0 0 40px 0;
	box-shadow: none;
}

.hcs-profile-section:last-child {
	margin-bottom: 0;
}

.hcs-profile-section h2 {
	margin: 0 0 18px 0;
	font-size: 1.3em;
	font-weight: 800;
	color: #000000;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
}

.hcs-profile-section dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
}

.hcs-profile-section dt,
.hcs-profile-section dd {
	padding: 14px 18px;
	border-bottom: 1px solid #f3f4f6;
	font-size: 0.95em;
	line-height: 1.6;
}

.hcs-profile-section dt:last-of-type,
.hcs-profile-section dd:last-of-type {
	border-bottom: none;
}

.hcs-profile-section dt {
	font-weight: 700;
	color: #000000;
	background-color: #f9fafb;
	white-space: nowrap;
}

.hcs-profile-section dd {
	margin: 0;
	font-weight: 400;
	color: #374151;
	border-right: 1px solid #f3f4f6;
}

/* Bio block inside About */
.hcs-profile-section p {
	margin: 0 0 12px 0;
	color: #374151;
	font-size: 0.95em;
	line-height: 1.7;
}

.hcs-profile-section p:last-child {
	margin-bottom: 0;
}

/* Tab navigation - RTL default */
.hcs-profile-tabs {
	margin-top: 24px;
	direction: rtl;
	background-color: transparent;
}

.hcs-profile-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;

}

.hcs-profile-tabs li {
	margin: 0;
}

.hcs-profile-tabs a {
	display: inline-block;
	padding: 10px 20px;
	color: #4b5563;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.92em;
	border-radius: 24px;
	background-color: #f3f4f6;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.hcs-profile-tabs a:hover {
	color: #0a66c2;
	background-color: #e0f2fe;
}

.hcs-profile-tabs li.hcs-tab-active a {
	color: #fff;
	background: linear-gradient(135deg, #0a66c2 0%, #2563eb 100%);
	box-shadow: 0 4px 12px rgba(10, 102, 194, 0.28);
}

/* Tab content wrapper - modern solid card */
.hcs-profile-tab-content {
	margin-top: 24px;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	padding: 36px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.25s ease;
	direction: rtl;
	text-align: right;
}

.hcs-profile-tab-content:hover {
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.04);
}

/* Default typography inside any tab */
.hcs-profile-tab-content h2,
.hcs-profile-tab-content h3,
.hcs-profile-tab-content h4 {
	color: #000000;
	font-weight: 700;
	margin-top: 0;
}

.hcs-profile-tab-content h2 {
	font-size: 1.35em;
}

.hcs-profile-tab-content h3 {
	font-size: 1.15em;
}

.hcs-profile-tab-content p {
	color: #374151;
	font-weight: 400;
	line-height: 1.7;
}

/* Force time/date inputs to LTR so they don't reverse (e.g. 30:12) */
.hcs-profile-tab-content input[type="time"],
.hcs-profile-tab-content input[type="date"] {
	direction: ltr;
	text-align: left;
	unicode-bidi: plaintext;
}

/* Profile editor media upload groups */
.hcs-profile-media-uploads {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding: 16px;
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.hcs-upload-group {
	flex: 1;
	min-width: 200px;
}

.hcs-upload-group label {
	font-weight: 600;
	color: #374151;
	display: block;
	margin-bottom: 8px;
}

.hcs-upload-preview {
	height: 100px;
	background-size: cover;
	background-position: center;
	border-radius: 6px;
	border: 1px solid #e5e7eb;
	margin-bottom: 8px;
}

.hcs-avatar-preview {
	height: 80px;
	width: 80px;
	border-radius: 50%;
}

.hcs-upload-group input[type="file"] {
	font-size: 0.85em;
}

/* Ticket thread replies - color-coded */
.hcs-ticket-reply-user,
.hcs-ticket-reply-agent {
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 12px;
	border-left: 4px solid;
}

.hcs-ticket-reply-user {
	background-color: #eff6ff;
	border-left-color: #3b82f6;
}

.hcs-ticket-reply-agent {
	background-color: #f0fdf4;
	border-left-color: #22c55e;
}

.hcs-ticket-reply-user .hcs-ticket-author-badge,
.hcs-ticket-reply-agent .hcs-ticket-author-badge {
	display: inline-block;
	font-size: 0.7em;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 8px;
	font-weight: 600;
	vertical-align: middle;
}

.hcs-ticket-reply-user .hcs-ticket-author-badge {
	background-color: #3b82f6;
	color: #fff;
}

.hcs-ticket-reply-agent .hcs-ticket-author-badge {
	background-color: #22c55e;
	color: #fff;
}

/* Notifications */
.hcs-notifications {
	color: #111827;
}

.hcs-notifications h3 {
	font-size: 1.25em;
	font-weight: 800;
	color: #000000;
	margin: 0 0 18px 0;
}

.hcs-notifications .hcs-badge {
	background: #dc2626;
	color: #fff;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	line-height: 24px;
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	display: inline-block;
	margin-right: 8px;
	vertical-align: middle;
}

.hcs-notification-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hcs-notification-list li {
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 18px;
	color: #111827;
	font-size: 0.95em;
	line-height: 1.6;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hcs-notification-list li:hover {
	background-color: #f3f4f6;
	border-color: #d1d5db;
}

.hcs-notification-list li::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #9ca3af;
	flex-shrink: 0;
}

.hcs-notification-list li.hcs-unread {
	background-color: #ffffff;
	border-color: #0a66c2;
	font-weight: 600;
}

.hcs-notification-list li.hcs-unread::before {
	background-color: #0a66c2;
	box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.18);
}

.hcs-notification-list li.hcs-read {
	font-weight: 400;
	color: #374151;
}

.hcs-notification-list li a {
	color: #0a66c2;
	text-decoration: none;
	font-weight: 600;
}

.hcs-notification-list li a:hover {
	text-decoration: underline;
}

.hcs-notification-list li small {
	color: #6b7280;
	font-size: 0.85em;
	white-space: nowrap;
	margin-right: auto;
}

/* Forms inside profile tabs */
.hcs-profile-tab-content label {
	display: block;
	font-weight: 600;
	color: #111827;
	margin-bottom: 6px;
	font-size: 0.95em;
}

.hcs-profile-tab-content input[type="text"],
.hcs-profile-tab-content input[type="email"],
.hcs-profile-tab-content input[type="url"],
.hcs-profile-tab-content input[type="tel"],
.hcs-profile-tab-content input[type="number"],
.hcs-profile-tab-content input[type="date"],
.hcs-profile-tab-content input[type="time"],
.hcs-profile-tab-content input[type="password"],
.hcs-profile-tab-content input[type="search"],
.hcs-profile-tab-content textarea,
.hcs-profile-tab-content select {
	width: 100%;
	padding: 12px 14px;
	font-size: 0.95em;
	color: #111827;
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.hcs-profile-tab-content input:focus,
.hcs-profile-tab-content textarea:focus,
.hcs-profile-tab-content select:focus {
	outline: none;
	border-color: #0a66c2;
	box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

.hcs-profile-tab-content textarea {
	resize: vertical;
	min-height: 120px;
}

.hcs-profile-tab-content select {
	appearance: auto;
}

.hcs-profile-tab-content button,
.hcs-profile-tab-content input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	font-size: 0.95em;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, #0a66c2 0%, #2563eb 100%);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 10px rgba(10, 102, 194, 0.25);
}

.hcs-profile-tab-content button:hover,
.hcs-profile-tab-content input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(10, 102, 194, 0.32);
}

.hcs-profile-tab-content button:active,
.hcs-profile-tab-content input[type="submit"]:active {
	transform: translateY(0);
}

.hcs-profile-tab-content button:disabled,
.hcs-profile-tab-content input[type="submit"]:disabled {
	background: #9ca3af;
	cursor: not-allowed;
	box-shadow: none;
}

@media (max-width: 600px) {
	.hcs-profile-cover {
		height: 140px;
	}
	.hcs-profile-header {
		margin-top: -40px;
	}
	.hcs-profile-avatar img {
		width: 90px;
		height: 90px;
	}
	.hcs-profile-tabs a {
		padding: 8px 12px;
		font-size: 0.85em;
	}
	.hcs-profile-media-uploads {
		flex-direction: column;
		gap: 16px;
	}
	.hcs-notification-list li {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* RTL */
[dir='rtl'] .hcs-profile,
body.rtl .hcs-profile {
	text-align: right;
}

[dir='ltr'] .hcs-profile-tabs,
body.ltr .hcs-profile-tabs {
	direction: ltr;
	text-align: left;
}

[dir='ltr'] .hcs-profile-tabs ul,
body.ltr .hcs-profile-tabs ul {
	flex-direction: row;
	justify-content: flex-start;
}

[dir='ltr'] .hcs-profile-tab-content,
body.ltr .hcs-profile-tab-content {
	direction: ltr;
	text-align: left;
}

[dir='rtl'] .hcs-ticket-reply-user,
[dir='rtl'] .hcs-ticket-reply-agent,
body.rtl .hcs-ticket-reply-user,
body.rtl .hcs-ticket-reply-agent {
	border-left: none;
	border-right: 4px solid;
}

[dir='rtl'] .hcs-ticket-reply-user,
body.rtl .hcs-ticket-reply-user {
	border-right-color: #3b82f6;
}

[dir='rtl'] .hcs-ticket-reply-agent,
body.rtl .hcs-ticket-reply-agent {
	border-right-color: #22c55e;
}
