/**
 * Groundhogg Public Tasks Display - Frontend Styles
 * Version: 1.0.0
 */

/* Wrapper */
.gh-public-tasks-wrapper {
	max-width: 100%;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Error and no tasks messages */
.gh-tasks-error,
.gh-no-tasks {
	padding: 15px 20px;
	background-color: #f0f0f1;
	border-left: 4px solid #dba617;
	color: #646970;
	margin: 20px 0;
}

.gh-tasks-error {
	border-left-color: #d63638;
	background-color: #fcf0f1;
	color: #d63638;
}

/* Tasks list */
.gh-tasks-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Individual task item */
.gh-task-item {
	display: flex;
	gap: 15px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gh-task-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* Task status badge */
.gh-task-status {
	flex-shrink: 0;
}

.gh-status-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.gh-status-complete {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.gh-status-overdue {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.gh-status-pending {
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Task content */
.gh-task-content {
	flex: 1;
	min-width: 0;
}

.gh-task-summary {
	margin-bottom: 10px;
	font-size: 18px;
	line-height: 1.4;
}

.gh-task-summary strong {
	color: #1e1e1e;
	font-weight: 600;
}

/* Deal title display */
.gh-task-deal {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	margin: 10px 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 6px;
	color: #fff;
	font-weight: 500;
	font-size: 14px;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.gh-deal-icon {
	font-size: 16px;
	line-height: 1;
}

.gh-deal-title {
	flex: 1;
	color: #fff;
}

.gh-task-description {
	margin: 10px 0;
	color: #646970;
	line-height: 1.6;
}

.gh-task-description p:last-child {
	margin-bottom: 0;
}

/* Task meta information */
.gh-task-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #f0f0f1;
	font-size: 14px;
}

.gh-task-meta > div {
	display: flex;
	gap: 5px;
	align-items: baseline;
}

.gh-meta-label {
	color: #646970;
	font-weight: 500;
}

.gh-meta-value {
	color: #1e1e1e;
	font-weight: 400;
}

.gh-meta-value a {
	color: #2271b1;
	text-decoration: none;
	transition: color 0.2s ease;
}

.gh-meta-value a:hover {
	color: #135e96;
	text-decoration: underline;
}

/* Contact information section */
.gh-task-contact-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	background-color: #f8f9fa;
	border-radius: 6px;
	border-left: 3px solid #2271b1;
	width: 100%;
}

.gh-task-contact-info > div {
	display: flex;
	gap: 8px;
	align-items: center;
}

.gh-task-contact-email .gh-meta-value,
.gh-task-contact-phone .gh-meta-value {
	font-family: 'Courier New', monospace;
}

/* Completed task styling */
.gh-task-complete {
	opacity: 0.8;
}

.gh-task-complete .gh-task-summary strong {
	text-decoration: line-through;
	color: #646970;
}

/* Overdue task styling */
.gh-task-overdue {
	border-left: 4px solid #d63638;
}

/* Responsive design */
@media screen and (max-width: 768px) {
	.gh-task-item {
		flex-direction: column;
		gap: 10px;
	}
	
	.gh-task-meta {
		flex-direction: column;
		gap: 10px;
	}
	
	.gh-tasks-header h3 {
		font-size: 20px;
	}
	
	.gh-task-summary {
		font-size: 16px;
	}
}

@media screen and (max-width: 480px) {
	.gh-public-tasks-wrapper {
		margin: 15px 0;
	}
	
	.gh-task-item {
		padding: 15px;
	}
	
	.gh-tasks-header h3 {
		font-size: 18px;
	}
}

/* Print styles */
@media print {
	.gh-task-item {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #000;
	}
	
	.gh-task-item:hover {
		transform: none;
	}
}

