/* ============================================
   DNSpear.com - Main Stylesheet
   style.css
   ============================================ */

/* ---- Base ---- */
body {
	background-color: #f5f5f5;
	margin: 0;
	padding: 0;
	color: #5d5d5d;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.75);
}

/* ---- Header ---- */
.header-container {
	background: #1a365d;
	color: white;
	padding: 40px 20px;
	text-align: center;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}
.header-content-wrapper {
	position: relative;
	display: inline-block;
}
.header-container .logo {
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	max-height: 60px;
	width: auto;
	margin-right: 20px;
}
.header-container h1 {
	font-size: 1.9em;
	font-weight: 700;
	margin: 0 0 8px 0;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.header-container .subtitle {
	font-size: 1.05em;
	margin-top: 8px;
	opacity: 0.9;
	line-height: 1.4;
}

/* ---- Skip Navigation Link (Accessibility) ---- */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	background: #1a365d;
	color: white;
	padding: 10px 20px;
	font-size: 0.95em;
	font-weight: 600;
	text-decoration: none;
	z-index: 9999;
	border-bottom-right-radius: 6px;
	transition: top 0.2s;
}
.skip-link:focus {
	top: 0;
	outline: 3px solid #5594cf;
	outline-offset: 2px;
}

/* ---- Navigation ---- */
.nav {
	background: #122844;
	padding: 12px 0;
	text-align: center;
	font-size: 0.95em;
}
.nav a {
	color: #ddd;
	text-decoration: none;
	margin: 0 12px;
}
.nav a:hover {
	color: white;
}

/* ---- Layout ---- */
.container {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 1.5rem;
}
main {
	margin: 40px 0 50px;
}

/* ---- Content Box (used in about, contact, privacy, terms) ---- */
.content-container {
	width: 100%;
	max-width: 800px;
	margin: 40px auto;
	padding: 0 1.5rem;
}
.content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	line-height: 1.7;
}
.content h2 {
	color: #333;
	margin-top: 0;
}
.content h3 {
	color: #444;
	margin-top: 24px;
}
.content p {
	margin: 12px 0;
}
.content ul {
	padding-left: 20px;
	margin: 12px 0;
}
.content li {
	margin-bottom: 6px;
}
.content a {
	color: #5594cf;
	text-decoration: none;
}
.content a:hover {
	text-decoration: underline;
}

/* ---- Contact email link ---- */
.email-link {
	display: block;
	text-align: center;
	font-size: 1.2em;
	font-weight: 600;
	color: #5594cf;
	text-decoration: none;
	margin: 24px 0;
}
.email-link:hover {
	text-decoration: underline;
}

/* ---- Index page headings ---- */
h2 {
	font-size: 1.4em;
	font-weight: 700;
	color: #444;
	margin: 0 0 20px 0;
	padding-bottom: 6px;
	border-bottom: 1px solid #eee;
	text-align: center;
}

/* ---- Domain List ---- */
.domain-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 30px;
}
.domain-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	padding: 14px 24px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	gap: 12px;
}
.domain-name-container {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	min-width: 0;
}
.domain-name {
	font-weight: normal;
	font-size: 1.1em;
	color: #333;
	display: flex;
	align-items: center;
	gap: 3px;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.domain-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.icon-group {
	display: flex;
	align-items: center;
	gap: 1px;
	flex-shrink: 0;
	white-space: nowrap;
	transform: translateY(-1px);
}
.case-toggle-icon,
.copy-icon {
	transform: translateY(-1px);
}
.case-toggle-icon {
	font-size: 0.75em;
	opacity: 0.6;
	cursor: pointer;
	user-select: none;
	min-width: 14px;
	text-align: center;
	line-height: 1;
}
.case-toggle-icon:hover {
	opacity: 1;
	color: #5594cf;
}
.case-toggle-icon:focus {
	opacity: 1;
	color: #5594cf;
	outline: 2px solid #5594cf;
	outline-offset: 2px;
}
.copy-icon {
	width: 12px;
	height: 12px;
	opacity: 0.7;
	cursor: pointer;
}
.copy-icon:hover {
	opacity: 1;
	color: #5594cf;
}
.copy-feedback {
	font-size: 0.82em;
	color: #5594cf;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, max-width 0.2s ease;
	white-space: nowrap;
	overflow: hidden;
	max-width: 0;
	text-align: left;
}
.copy-feedback.show {
	opacity: 1;
	max-width: 80px;
}
.sold-domain {
	text-decoration: line-through;
	color: #999;
}
.make-offer {
	background: #5594cf;
	color: white;
	text-decoration: none;
	padding: 6px 16px;
	border-radius: 5px;
	font-weight: 600;
	font-size: 0.9em;
	white-space: nowrap;
	flex-shrink: 0;
}
.make-offer:hover {
	opacity: 0.9;
}

/* ---- Main Layout (index sidebar) ---- */
.main-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}
.domain-section {
	flex: 1 1 auto;
	min-width: 0;
}
.sidebar {
	width: 220px;
	flex-shrink: 0;
}
.sidebar .domain-item {
	padding: 10px 16px;
}
.sidebar .domain-name {
	font-size: 1em;
}
.sidebar .icon-group {
	gap: 1px;
}
.sidebar .copy-feedback {
	font-size: 0.78em;
}

/* ---- Footer ---- */
.footer {
	margin-top: 40px;
	padding-bottom: 40px;
	font-size: 0.85em;
	color: #707070;
	text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
	.header-container .logo {
		max-height: 50px;
		margin-right: 16px;
	}
	.header-container h1 {
		font-size: 1.6em;
	}
	.header-container .subtitle {
		font-size: 0.95em;
	}
}
@media (max-width: 768px) {
	.main-layout {
		flex-direction: column;
	}
	.sidebar {
		width: 100%;
	}
	.header-container .logo {
		position: static;
		transform: none;
		margin: 0 auto 16px auto;
		display: block;
		max-height: 60px;
	}
	.header-container h1 {
		font-size: 1.5em;
	}
	.header-container .subtitle {
		font-size: 0.9em;
	}
}
@media (max-width: 600px) {
	.domain-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.domain-name-container {
		width: 100%;
		justify-content: flex-start;
	}
	.make-offer {
		align-self: flex-end;
		margin-top: 8px;
	}
	.header-container {
		padding: 30px 15px;
	}
	.header-container .logo {
		max-height: 50px;
	}
	.header-container h1 {
		font-size: 1.3em;
	}
	.header-container .subtitle {
		font-size: 0.85em;
	}
}
