/**
 * Artek Frontend Styles
 * 
 * Styles for frontend shortcodes
 * Modernized & Beautiful Design
 */

:root {
	--artek-primary: #3b82f6;
	--artek-primary-hover: #2563eb;
	--artek-success: #10b981;
	--artek-warning: #f59e0b;
	--artek-danger: #ef4444;
	--artek-gray-50: #f9fafb;
	--artek-gray-100: #f3f4f6;
	--artek-gray-200: #e5e7eb;
	--artek-gray-500: #6b7280;
	--artek-gray-700: #374151;
	--artek-gray-800: #1f2937;
	--artek-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--artek-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--artek-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--artek-radius: 12px;
	--artek-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Container
   =========================== */



/* ===========================
   Notices
   =========================== */

.artek-notice {
	padding: 16px 20px;
	border-radius: var(--artek-radius);
	margin-bottom: 24px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: var(--artek-shadow-sm);
}

.artek-notice-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.artek-notice-success::before {
	content: '✅';
	font-size: 20px;
}

.artek-notice-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.artek-notice-error::before {
	content: '⚠️';
	font-size: 20px;
}


/* ===========================
   Issue Header
   =========================== */

.artek-issue-header {
	background: #fff;
	border-radius: var(--artek-radius);
	padding: 32px;
	margin-bottom: 32px;
	box-shadow: var(--artek-shadow);
	border: 1px solid var(--artek-gray-100);
}

.artek-issue-title {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 700;
	color: var(--artek-gray-800);
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.artek-issue-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.artek-issue-code {
	font-family: 'JetBrains Mono', monospace;
	background: var(--artek-gray-100);
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	color: var(--artek-gray-500);
	font-weight: 500;
}

.artek-issue-status,
.artek-issue-priority {
	padding: 6px 14px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 600;
	text-transform: capitalize;
	letter-spacing: 0.025em;
	box-shadow: var(--artek-shadow-sm);
}

/* Status Colors */
.artek-status-new { background: #eff6ff; color: #3b82f6; }
.artek-status-open { background: #fff7ed; color: #ea580c; }
.artek-status-in_progress { background: #fdf4ff; color: #c026d3; }
.artek-status-resolved { background: #ecfdf5; color: #059669; }
.artek-status-closed { background: #f3f4f6; color: #4b5563; }

/* Priority Colors */
.artek-priority-low { background: #ecfdf5; color: #059669; }
.artek-priority-medium { background: #fff7ed; color: #ea580c; }
.artek-priority-high { background: #fef2f2; color: #dc2626; }
.artek-priority-urgent { background: #991b1b; color: #fff; }

/* ===========================
   Tab Navigation
   =========================== */

.artek-tab-navigation {
	display: flex;
	gap: 24px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--artek-gray-200);
	padding-bottom: 0;
}

.artek-tab-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 4px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: var(--artek-gray-500);
	transition: var(--artek-transition);
	margin-bottom: -1px;
}

.artek-tab-btn:hover {
	color: var(--artek-primary);
}

.artek-tab-btn.active {
	color: var(--artek-primary);
	border-bottom-color: var(--artek-primary);
}

.artek-tab-btn .tab-icon {
	font-size: 18px;
}

.artek-tab-btn .tab-count {
	font-size: 12px;
	padding: 2px 8px;
	background: var(--artek-gray-100);
	border-radius: 9999px;
	color: var(--artek-gray-500);
	transition: var(--artek-transition);
}

.artek-tab-btn.active .tab-count {
	background: #eff6ff;
	color: var(--artek-primary);
}

/* ===========================
   Tab Content
   =========================== */

.artek-tab-content {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.artek-tab-content.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Comments
   =========================== */

.artek-comments-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.artek-comment {
	background: #fff;
	border-radius: var(--artek-radius);
	padding: 24px;
	box-shadow: var(--artek-shadow-sm);
	border: 1px solid var(--artek-gray-200);
	transition: var(--artek-transition);
}

.artek-comment:hover {
	box-shadow: var(--artek-shadow);
	border-color: #d1d5db;
}

.artek-comment.inbound {
	background: #f8fbff;
	border-color: #bfdbfe;
}

.artek-comment.outbound {
	background: #fff;
}

.artek-comment-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.artek-comment-author {
	font-weight: 700;
	color: var(--artek-gray-800);
	font-size: 16px;
}

.artek-comment-badge {
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.artek-comment-badge.customer {
	background: #eff6ff;
	color: var(--artek-primary);
	border: 1px solid #bfdbfe;
}

.artek-comment-date {
	color: var(--artek-gray-500);
	font-size: 13px;
	margin-left: auto;
}

.artek-comment-body {
	color: var(--artek-gray-700);
	line-height: 1.7;
	font-size: 15px;
}

.artek-comment-body p:last-child {
	margin-bottom: 0;
}

/* ===========================
   Comment Form
   =========================== */

.artek-comment-form-container {
	background: #fff;
	border: 1px solid var(--artek-gray-200);
	border-radius: var(--artek-radius);
	padding: 24px;
	margin-top: 24px;
	box-shadow: var(--artek-shadow-sm);
}

.artek-form-title {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 700;
	color: var(--artek-gray-800);
}

.artek-comment-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.artek-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.artek-form-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--artek-gray-700);
}

.artek-form-label .required {
	color: var(--artek-danger);
	margin-left: 4px;
}

.artek-form-textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--artek-gray-200);
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.6;
	font-family: inherit;
	transition: var(--artek-transition);
	box-shadow: var(--artek-shadow-sm);
	resize: vertical;
}

.artek-form-textarea:focus {
	border-color: var(--artek-primary);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	outline: none;
}

.artek-form-textarea::placeholder {
	color: var(--artek-gray-500);
}

.artek-form-actions {
	display: flex;
	justify-content: flex-end;
	padding-top: 8px;
}

.artek-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--artek-transition);
	box-shadow: var(--artek-shadow-sm);
}

.artek-btn-primary {
	background: var(--artek-primary);
	color: #fff;
}

.artek-btn-primary:hover {
	background: var(--artek-primary-hover);
	transform: translateY(-1px);
	box-shadow: var(--artek-shadow);
}

.artek-btn img {
	filter: brightness(0) invert(1);
}

/* ===========================
   Worklogs
   =========================== */

.artek-worklog-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}

.artek-stat-box {
	background: #fff;
	color: var(--artek-gray-800);
	padding: 24px;
	border-radius: var(--artek-radius);
	text-align: center;
	box-shadow: var(--artek-shadow-sm);
	border: 1px solid var(--artek-gray-200);
	transition: var(--artek-transition);
	position: relative;
	overflow: hidden;
}

.artek-stat-box:hover {
	transform: translateY(-2px);
	box-shadow: var(--artek-shadow);
}

.artek-stat-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--artek-gray-200);
}

.artek-stat-box:nth-child(1)::before { background: var(--artek-primary); }
.artek-stat-box:nth-child(2)::before { background: var(--artek-success); }
.artek-stat-box:nth-child(3)::before { background: var(--artek-gray-500); }

.artek-stat-box .stat-value {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 8px;
	letter-spacing: -0.025em;
	color: var(--artek-gray-800);
}

.artek-stat-box .stat-label {
	font-size: 13px;
	color: var(--artek-gray-500);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
}

.artek-worklogs-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.artek-worklog-item {
	background: #fff;
	border-radius: var(--artek-radius);
	padding: 24px;
	box-shadow: var(--artek-shadow-sm);
	border: 1px solid var(--artek-gray-200);
	transition: var(--artek-transition);
}

.artek-worklog-item:hover {
	box-shadow: var(--artek-shadow);
	border-color: #d1d5db;
}

.artek-worklog-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--artek-gray-100);
	flex-wrap: wrap;
	gap: 12px;
}

.artek-worklog-date {
	font-size: 14px;
	font-weight: 600;
	color: var(--artek-gray-700);
	display: flex;
	align-items: center;
	gap: 6px;
}

.artek-worklog-hours {
	font-size: 16px;
	font-weight: 700;
	color: var(--artek-primary);
	background: #eff6ff;
	padding: 4px 12px;
	border-radius: 9999px;
}

.artek-worklog-body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.artek-worklog-meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.artek-billable-badge {
	padding: 4px 10px;
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
}

.artek-worklog-description {
	color: var(--artek-gray-700);
	line-height: 1.7;
	font-size: 15px;
}

.artek-worklog-user {
	color: var(--artek-gray-500);
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
}

/* Activity Badges - Modernized */
.activity-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	text-transform: capitalize;
}

.activity-development { background: #dbeafe; color: #1e40af; }
.activity-testing { background: #f3e8ff; color: #6b21a8; }
.activity-bug_fix { background: #fee2e2; color: #991b1b; }
.activity-support { background: #ffedd5; color: #9a3412; }
.activity-consultation { background: #dcfce7; color: #166534; }
.activity-training { background: #fce7f3; color: #9d174d; }
.activity-documentation { background: #f0fdf4; color: #15803d; }
.activity-deployment { background: #f3e8ff; color: #581c87; }
.activity-maintenance { background: #ccfbf1; color: #115e59; }
.activity-investigation { background: #fef3c7; color: #92400e; }
.activity-other { background: #f3f4f6; color: #374151; }

/* ===========================
   Empty State
   =========================== */

.artek-empty-state {
	text-align: center;
	padding: 80px 20px;
	background: var(--artek-gray-50);
	border-radius: var(--artek-radius);
	border: 2px dashed var(--artek-gray-200);
}

.artek-empty-state .empty-icon {
	font-size: 48px;
	display: block;
	margin-bottom: 20px;
	opacity: 1;
	filter: grayscale(100%) opacity(0.3);
}

.artek-empty-state p {
	color: var(--artek-gray-500);
	font-size: 16px;
	margin: 0;
	font-weight: 500;
}

/* ===========================
   Error State
   =========================== */

.artek-error {
	background: #fef2f2;
	color: #991b1b;
	padding: 20px 24px;
	border-radius: var(--artek-radius);
	border: 1px solid #fee2e2;
	margin: 20px 0;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 12px;
}

.artek-error::before {
	content: '⚠️';
	font-size: 20px;
}

/* ===========================
   Responsive
   =========================== */

@media screen and (max-width: 768px) {
	.artek-frontend-container {
		padding: 20px 16px;
	}
	
	.artek-issue-header {
		padding: 24px;
	}
	
	.artek-issue-title {
		font-size: 24px;
	}
	
	.artek-worklog-stats {
		grid-template-columns: 1fr;
	}
	
	.artek-worklog-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.artek-comment-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.artek-comment-date {
		margin-left: 0;
	}
}