/**
 * Signpost Planner Roadmap Styles
 *
 * Frontend styles for the roadmap shortcode.
 */

/* Container */
.sp-roadmap-view {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* Header */
.sp-roadmap-header {
	text-align: center;
	margin-bottom: 3rem;
}

.sp-roadmap-header h2 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	color: #2c3e50;
}

.sp-roadmap-header p {
	font-size: 1.1rem;
	color: #7f8c8d;
}

/* Tabbed Interface */
.sp-roadmap-tabbed {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	overflow: hidden;
}

.sp-roadmap-tabs {
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	background: #f8f9fa;
	overflow-x: auto;
}

.sp-tab-button {
	flex: 1;
	padding: 1rem 1.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	color: #7f8c8d;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.sp-tab-button:hover {
	background: #e8e9ea;
	color: #2c3e50;
}

.sp-tab-button.active {
	background: #fff;
	color: #3498db;
	border-bottom: 3px solid #3498db;
}

.sp-tab-button .dashicons {
	font-size: 1.2rem;
}

.sp-roadmap-tab-content {
	padding: 2rem;
}

.sp-tab-panel {
	display: none;
}

.sp-tab-panel.active {
	display: block;
}

/* Submit Section */
.sp-roadmap-submit-section {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 8px;
}

.sp-roadmap-submit-toggle {
	padding: 0.75rem 1.5rem;
	background: #3498db;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: background 0.3s;
}

.sp-roadmap-submit-toggle:hover {
	background: #2980b9;
}

.sp-roadmap-submit-form {
	margin-top: 1.5rem;
}

.sp-roadmap-submit-form h3 {
	margin-bottom: 1rem;
	color: #2c3e50;
}

/* Forms */
.sp-roadmap-form .sp-form-field {
	margin-bottom: 1.5rem;
}

.sp-roadmap-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #2c3e50;
}

.sp-roadmap-form input[type="text"],
.sp-roadmap-form input[type="email"],
.sp-roadmap-form textarea,
.sp-roadmap-form select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1rem;
	transition: border-color 0.3s;
}

.sp-roadmap-form input:focus,
.sp-roadmap-form textarea:focus,
.sp-roadmap-form select:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sp-roadmap-form textarea {
	resize: vertical;
	min-height: 120px;
}

.sp-roadmap-form small {
	color: #7f8c8d;
	font-size: 0.85rem;
}

.sp-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.sp-form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.sp-btn-primary,
.sp-btn-secondary {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s;
}

.sp-btn-primary {
	background: #27ae60;
	color: #fff;
}

.sp-btn-primary:hover {
	background: #229954;
}

.sp-btn-secondary {
	background: #95a5a6;
	color: #fff;
}

.sp-btn-secondary:hover {
	background: #7f8c8d;
}

.sp-form-message {
	margin-top: 1rem;
	padding: 0.75rem;
	border-radius: 6px;
	display: none;
}

.sp-form-message.success {
	display: block;
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.sp-form-message.error {
	display: block;
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Filters */
.sp-roadmap-filters {
	margin-bottom: 2rem;
	display: flex;
	justify-content: flex-end;
}

.sp-roadmap-sort {
	padding: 0.5rem 1rem;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	cursor: pointer;
}

/* Items List */
.sp-roadmap-items {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.sp-roadmap-empty {
	text-align: center;
	padding: 3rem;
	color: #7f8c8d;
	font-size: 1.1rem;
}

/* Individual Items */
.sp-roadmap-item {
	display: flex;
	gap: 1rem;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	transition: all 0.3s;
}

.sp-roadmap-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

.sp-item-vote {
	flex-shrink: 0;
}

.sp-vote-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 0.75rem;
	background: #f8f9fa;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	min-width: 60px;
}

.sp-vote-btn:hover {
	background: #e8e9ea;
	border-color: #3498db;
}

.sp-vote-btn.sp-voted {
	background: #3498db;
	border-color: #3498db;
	color: #fff;
}

.sp-vote-btn .dashicons {
	font-size: 1.5rem;
}

.sp-vote-count {
	font-weight: 700;
	font-size: 1.1rem;
}

.sp-item-content {
	flex: 1;
}

.sp-item-header {
	display: flex;
	justify-content: space-between;
	align-items: start;
	margin-bottom: 0.75rem;
	gap: 1rem;
}

.sp-item-title {
	font-size: 1.25rem;
	margin: 0;
	color: #2c3e50;
	flex: 1;
}

.sp-item-badges {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.sp-item-status,
.sp-item-priority {
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
}

/* Status Colors */
.sp-status-submitted { background: #ecf0f1; color: #7f8c8d; }
.sp-status-approved { background: #d6eaf8; color: #2874a6; }
.sp-status-planned { background: #fef5e7; color: #b9770e; }
.sp-status-in_progress { background: #ebf5fb; color: #1f618d; }
.sp-status-completed { background: #d5f4e6; color: #0e6251; }
.sp-status-rejected { background: #fadbd8; color: #943126; }
.sp-status-confirmed { background: #ffeaa7; color: #d63031; }

/* Priority Colors */
.sp-priority-low { background: #d5f4e6; color: #0e6251; }
.sp-priority-medium { background: #fef5e7; color: #b9770e; }
.sp-priority-high { background: #fce5cd; color: #e67e22; }
.sp-priority-critical { background: #fadbd8; color: #c0392b; }

.sp-item-description {
	color: #5a6c7d;
	line-height: 1.6;
	margin: 0 0 1rem 0;
}

.sp-item-meta {
	display: flex;
	gap: 1.5rem;
	font-size: 0.9rem;
	color: #95a5a6;
}

/* Known Issues */
.sp-known-issues-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.sp-no-issues {
	text-align: center;
	padding: 3rem;
	color: #27ae60;
}

.sp-no-issues .dashicons {
	font-size: 4rem;
	color: #27ae60;
}

.sp-known-issue {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-left: 4px solid #95a5a6;
	border-radius: 8px;
}

.sp-known-issue.sp-priority-high {
	border-left-color: #e67e22;
}

.sp-known-issue.sp-priority-critical {
	border-left-color: #c0392b;
}

.sp-issue-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.sp-issue-title {
	flex: 1;
	margin: 0;
	color: #2c3e50;
	font-size: 1.2rem;
}

.sp-issue-workaround {
	margin-top: 1rem;
	padding: 1rem;
	background: #e8f4f8;
	border-left: 3px solid #3498db;
	border-radius: 4px;
}

.sp-issue-workaround strong {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
	color: #2c3e50;
}

.sp-issue-meta {
	margin-top: 1rem;
	display: flex;
	gap: 1.5rem;
	font-size: 0.9rem;
	color: #7f8c8d;
}

.sp-issue-target,
.sp-issue-updated {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* Changelog */
.sp-changelog-versions {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.sp-changelog-version {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

.sp-version-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #3498db;
}

.sp-version-number {
	font-size: 1.5rem;
	color: #3498db;
	font-weight: 600;
}

.sp-version-date {
	color: #7f8c8d;
	font-size: 0.95rem;
	font-weight: 400;
}

.sp-changelog-items {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sp-changelog-item {
	padding: 0.75rem 0;
	display: flex;
	align-items: start;
	gap: 1rem;
	border-bottom: 1px solid #ecf0f1;
}

.sp-changelog-item:last-child {
	border-bottom: none;
}

.sp-changelog-type {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
}

.sp-changelog-feature .sp-changelog-type { background: #d5f4e6; color: #0e6251; }
.sp-changelog-improvement .sp-changelog-type { background: #d6eaf8; color: #2874a6; }
.sp-changelog-bugfix .sp-changelog-type { background: #fadbd8; color: #943126; }

.sp-changelog-title {
	flex: 1;
	color: #2c3e50;
	line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
	.sp-roadmap-tabs {
		flex-direction: column;
	}

	.sp-tab-button {
		justify-content: flex-start;
		text-align: left;
	}

	.sp-form-row {
		grid-template-columns: 1fr;
	}

	.sp-roadmap-item {
		flex-direction: column;
	}

	.sp-vote-btn {
		flex-direction: row;
		width: 100%;
		justify-content: center;
	}

	.sp-item-header {
		flex-direction: column;
		align-items: start;
	}

	.sp-item-badges {
		width: 100%;
		justify-content: flex-start;
	}

	.sp-version-header {
		flex-direction: column;
		align-items: start;
		gap: 0.5rem;
	}
}
