/* Phase 3 Share Page Styles - Matching Phase 3 Layout */

/* Container */
.phase3-share-container {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Header */
.phase3-share-header {
	padding: 16px;
	background: #fff;
	border-bottom: 1px solid #ddd;
}

.phase3-share-title {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin-bottom: 4px;
}

.phase3-share-subtitle {
	font-size: 14px;
	color: #666;
}

/* Content Area */
.phase3-share-content {
	flex: 1;
	overflow-x: auto;
	overflow-y: auto;
	padding: 16px;
}

.phase3-share-loading,
.phase3-share-error {
	padding: 60px 20px;
}

/* Sitemap Content */
.phase3-share-sitemap-content {
	display: flex;
	flex-direction: column;
	width: fit-content;
}

/* Navigation Section */
.phase3-share-navigation-section {
	margin-bottom: 25px;
	min-width: fit-content;
}

.phase3-share-navigation-header {
	font-size: 18px;
	font-weight: 600;
	padding: 0 0 8px 0;
	margin-bottom: 8px;
	color: #333;
}

/* Primary Pages Container - Horizontal Layout */
.phase3-share-primary-pages {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	width: fit-content;
}

/* Page Wrapper */
.phase3-share-page-wrapper {
	flex-shrink: 0;
}

/* Level 1: Horizontal layout */
.phase3-share-page-wrapper.level-1 {
	display: inline-block;
	vertical-align: top;
	width: 170px;
}

/* Level 2+: Vertical with indentation */
.phase3-share-page-wrapper.level-2, .phase3-share-page-wrapper.level-3, .phase3-share-page-wrapper.level-4 {
	display: block;
	margin: 8px 0 0 10px;
	width: calc(100% - 10px);
}

/* Page Item */
.phase3-share-page-item {
	width: 100%;
	background: linear-gradient(to bottom, #C8C8C8, #B8B8B8);
	border: 1px solid #999999;
	border-radius: 6px;
	padding: 5px;
	font-size: 12px;
	margin-bottom: 8px;
}
.phase3-share-page-item.stacked {
	position: relative;
	width: calc(100% - 6px);
}
.phase3-share-page-item.stacked:before, .phase3-share-page-item.stacked:after {
	content: '';
    position: absolute;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    left: 5px;
    bottom: -7px;
    border: 1px solid #BBBBBB;
    background-color: #D8D8D8;
    border-radius: 6px;
    z-index: -1;
}
.phase3-share-page-item.stacked:after {
	left: 2px;
    bottom: -4px;
}

.phase3-share-page-item.hidden {
	display: block !important;
	opacity: 0.5;
}

.phase3-share-page-header {
	display: flex;
	align-items: center;
    gap: 5px;
}

.phase3-share-page-title {
	font-weight: 600;
	color: #000000;
	word-wrap: break-word;
	line-height: 1.3;
}

.phase3-share-page-item .page-note {
	padding: 0;
}

.phase3-share-page-url {
	font-size: 10px;
	color: #666;
	font-family: monospace;
	word-wrap: break-word;
	line-height: 1.2;
}

/* Sections */
.phase3-share-sections {
	margin: 6px 0 0 0;
	padding: 0 0 0 15px;
}

.phase3-share-section-item {
	padding: 0;
	font-size: 11px;
	color: #333333;
}

.phase3-share-section-item:last-child {
	border-bottom: none;
}

/* Children Container */
.phase3-share-children-container {
	margin-top: 8px;
}

.phase3-share-children-container .phase3-share-page-item {
	background: linear-gradient(to bottom, #E8E8E8, #D8D8D8);
	border-color: #BBBBBB;
}

/* Print Styles */
@media print {
	@page {
		size: landscape;
		margin: 0.5in;
	}
	
	body {
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}
	
	.phase3-share-container {
		height: auto;
		overflow: visible;
	}
	
	.phase3-share-header {
		padding: 12px;
	}
	
	.phase3-share-title {
		font-size: 20px;
	}
	
	.phase3-share-subtitle {
		font-size: 12px;
	}
	
	.phase3-share-content {
		overflow: visible;
		width: 100%;
	}
	
	.phase3-share-sitemap-content {
		width: 100%;
	}
	
	.phase3-share-primary-pages {
		flex-wrap: wrap;
	}
	
	.phase3-share-navigation-section {
		margin-bottom: 20px;
	}
	
	.phase3-share-navigation-header {
		page-break-after: avoid;
		break-after: avoid;
	}
	
	.phase3-share-primary-pages {
		page-break-before: avoid;
		break-before: avoid;
	}
	
	.phase3-share-page-wrapper {
		page-break-inside: avoid;
		break-inside: avoid;
	}
	
	.phase3-share-page-item {
		background: #f0f0f0;
		page-break-inside: avoid;
		break-inside: avoid;
	}
	
	.phase3-share-children-container {
		page-break-inside: avoid;
		break-inside: avoid;
	}
}
