/* Home Screen - shown when no project is loaded */
.home-screen {
	position: fixed;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	background: var(--theme-bg-primary);
	z-index: 20000;
	overflow-y: auto;
	padding: 40px 24px 60px;
}

.home-screen.active {
	display: flex;
}

/* Top bar with login */
.home-screen-top-bar {
	position: absolute;
	top: 16px;
	right: 24px;
}

.home-screen-login-btn {
	padding: 6px 18px;
	border-radius: 6px;
	border: 1px solid var(--theme-border-primary, #444);
	background: transparent;
	color: var(--theme-text-primary, #ddd);
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.home-screen-login-btn:hover {
	background: var(--theme-bg-hover, rgba(255,255,255,0.06));
	border-color: var(--accent-color, #7c6ef6);
}

.home-screen-login-btn:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Header */
.home-screen-header {
	text-align: center;
	margin-bottom: 36px;
	max-width: 600px;
}

.home-screen-logo {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(78, 201, 176, 0.1);
	border: 1px solid rgba(78, 201, 176, 0.2);
	border-radius: 16px;
	color: rgba(78, 201, 176, 1);
}

.home-screen-title {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--theme-text-primary);
}

.home-screen-subtitle {
	font-size: 15px;
	color: var(--theme-text-secondary);
	line-height: 1.5;
}

/* Actions Row */
.home-screen-actions {
	display: flex;
	gap: 12px;
	margin-bottom: 32px;
	flex-wrap: wrap;
	justify-content: center;
}

.home-screen-action-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--theme-border-secondary);
	border-radius: 10px;
	background: var(--theme-bg-secondary);
	color: var(--theme-text-primary);
	cursor: pointer;
	transition: all 0.2s;
}

.home-screen-action-btn:hover {
	border-color: rgba(78, 201, 176, 0.4);
	background: rgba(78, 201, 176, 0.06);
}

.home-screen-action-btn.primary {
	background: rgba(78, 201, 176, 0.12);
	border-color: rgba(78, 201, 176, 0.3);
	color: rgba(78, 201, 176, 1);
}

.home-screen-action-btn.primary:hover {
	background: rgba(78, 201, 176, 0.2);
}

/* Section Title */
.home-screen-section-title {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--theme-text-secondary);
	margin-bottom: 14px;
	width: 100%;
	max-width: 860px;
}

/* Category Tabs */
.home-screen-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	max-width: 860px;
	width: 100%;
}

.home-screen-tab {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: var(--theme-text-secondary);
	cursor: pointer;
	transition: all 0.2s;
}

.home-screen-tab:hover {
	background: var(--theme-bg-hover);
	color: var(--theme-text-primary);
}

.home-screen-tab.active {
	background: rgba(78, 201, 176, 0.1);
	border-color: rgba(78, 201, 176, 0.3);
	color: rgba(78, 201, 176, 1);
}

/* Template Grid */
.home-screen-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	width: 100%;
	max-width: 860px;
	margin-bottom: 40px;
}

.home-screen-grid .template-card {
	background: var(--theme-bg-secondary);
}

.home-screen-grid .template-card:hover {
	border-color: rgba(78, 201, 176, 0.5);
	box-shadow: 0 4px 20px rgba(78, 201, 176, 0.08);
}

/* Recent Projects Section */
.home-screen-recent {
	width: 100%;
	max-width: 860px;
}

.home-screen-recent-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.home-screen-recent-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--theme-bg-secondary);
	border: 1px solid var(--theme-border-secondary);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s;
	color: var(--theme-text-primary);
	font-size: 14px;
}

.home-screen-recent-item:hover {
	border-color: var(--theme-border-primary);
	background: var(--theme-bg-hover);
}

.home-screen-recent-icon {
	flex-shrink: 0;
	color: var(--theme-text-secondary);
}

.home-screen-recent-name {
	font-weight: 500;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-screen-recent-path {
	font-size: 12px;
	color: var(--theme-text-secondary);
	max-width: 300px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-screen-empty {
	text-align: center;
	color: var(--theme-text-secondary);
	padding: 30px 20px;
	font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
	.home-screen {
		padding: 24px 16px 40px;
	}

	.home-screen-grid {
		grid-template-columns: 1fr;
	}

	.home-screen-title {
		font-size: 22px;
	}

	.home-screen-recent-path {
		display: none;
	}
}
