/*=== Global Styles ===*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	line-height: 1.6;
	background-color: #1a1a1a;
	color: #e0e0e0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/*=== Typography ===*/

h1,
h2 {
	color: #71b1fc;
}

h1 {
	font-size: 2.5rem;
	padding: 10px 0;
}

p {
	letter-spacing: 1px;
}

.instructions {
	text-align: center;
	background-color: #363636;
	color: white;
	margin: 20px 0;
	padding: 10px 0;
	font-weight: 200;
	font-size: 1.25rem;
}

/*=== Logo ===*/
.logo {
	font-size: 1.25rem;
	letter-spacing: 1.25px;
	text-decoration: none;
	color: white;
}

/*=== Layout Wrappers ===*/

.full-width-header {
	padding: 15px 25px;
}
.full-width-header,
.full-width-footer {
	width: 100%;
	background-color: #222222;
}

.full-width-footer {
	background-color: #222222;
	color: #bbb;
	text-align: center;
	padding: 20px 0;
}

.site-content-wrapper {
	margin-top: 55px;
	padding: 0 25px;
}

/*=== Navbar Styles ===*/
.navbar {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
}
.navbar-brand {
	text-decoration: none;
	color: #e0e0e0;
	font-size: 1.2em;
	font-weight: bold;
}
.navbar ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 30px;
}
.navbar ul li a {
	font-size: 1.25rem;
	letter-spacing: 1.25px;
	text-decoration: none;
	color: #e0e0e0;
	padding: 5px 0;
}
.navbar ul li a:hover {
	color: #4a90e2;
}

.container {
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	gap: 20px;
	max-width: 1200px;
}

.section-container {
	margin: 0 auto;
	margin-bottom: 20px;
	background-color: #0c0c0c;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #333333;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.section-container h2 {
	margin-bottom: 10px;
}

/*=== Price Checker ===*/
.price-results {
	margin-top: 20px;
	padding: 15px;
	background-color: #1a1a1a;
	border-radius: 6px;
	border: 1px solid #333;
}

.price-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
	color: #ccc;
}

/*=== Price List ===*/
.price-list {
	margin-top: 10px;
}

.price-item {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #333;
}

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

.price-total {
	display: flex;
	justify-content: space-between;
	margin-top: 15px;
	padding-top: 10px;
	border-top: 2px solid #444;
	font-weight: bold;
	font-size: 1.1em;
	color: #4caf50;
}

.error {
	color: #ff6b6b;
	margin: 10px 0;
}

.available-inventory-section {
	max-width: 1200px;
}

.available-items {
	background-color: #2a2a2a;
	border: 1px solid #444;
	border-radius: 4px;
	padding: 10px;
	min-height: 50px;
	margin-top: 5px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.available-item {
	background-color: #3a3a3a;
	border: 1px solid #555;
	border-radius: 3px;
	padding: 5px 10px;
	font-size: 0.9em;
}

/*=== Loader ===*/
.loader {
	border: 4px solid #333;
	border-top: 4px solid #4caf50;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
	margin-bottom: 10px;
	margin: 10px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/*=== Text Input & Output ===*/
.text-input,
.text-output {
	width: 100%;
	min-height: 200px;
	padding: 10px;
	border: 1px solid #444;
	border-radius: 4px;
	background-color: #181818;
	color: #e0e0e0;
	font-family: "Courier New", monospace;
	white-space: pre;
	resize: vertical;
}
.text-output {
	margin-top: 30px;
}

#processedOutput {
	min-height: 100px;
}

/*=== Buttons ===*/

.button,
.copy-button {
	font-size: 1.2rem;
	padding: 5px;
	cursor: pointer;
	border-radius: 5px;
}
.copy-button {
	margin-left: 5px;
	padding: 8px;
	background-color: #bdbdbd;
}
.copy-button:hover {
	background-color: #5f5f5f;
}

.button-group {
	padding: 20px 0;
}

#clearData {
	margin-left: 8px;
	font-weight: 200;
	background-color: #921414;
	border-color: #aa3030;
	color: #fff;
	border-radius: 5px;
}
#clearData:hover {
	background-color: #6d0e0e;
}

#clearData:focus {
	background-color: #6d0e0e;
	outline: 1px solid #61a5fa;
	outline-offset: 2px;
}

#clearData:active {
	background-color: #550a0a;
	color: #fff;
}

#loadSampleData {
	/* background-color: #4caf50; */
	/* background-color: #1976d2; */
	background-color: #74beda;
	/* background-color: #f3bd73; */
	border-color: #5fa1b9;
	color: #1f1d1d;
	border-radius: 5px;
}

#loadSampleData:hover {
	background-color: #4e7f91;
	/* color: #e4e4e4; */
}

/* Focus state */
#loadSampleData:focus {
	background-color: #0d4a86;
	outline: 2px solid #61a5fa;
	color: #ffffff;
}

/* Active state */
#loadSampleData:active {
	background-color: #0a3c8b;
	color: #ffffff;
}

.copy-button:active {
	background-color: #4a4a4a;
	color: #fff;
}

.copy-button.copied {
	background-color: #58c458;
	border-color: #3a7a3a;
}

.available-inventory-section {
	width: 100%;
}

footer {
	margin: 0 auto;
	margin-top: auto;
}

/*=== FAQ Section & List Container ===*/

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

/* === Individual FAQ Item (the <details> tag) ===*/
.faq-item {
	background-color: #0c0c0c;
	border: 1px solid #333333;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
	border-radius: 8px;
	overflow: hidden;
}

/* === FAQ Question (the <summary> tag) ===*/
.faq-question {
	display: block;
	padding: 15px 20px;
	cursor: pointer;
	font-size: 2rem;
	font-weight: 700;
	color: #ffffff;
	position: relative; /* For positioning the custom +/- icon */
	padding-right: 40px; /* Make space for the custom icon */

	/* Hide the default browser disclosure marker */
	list-style: none; /* For Firefox */
}
/* Hide the default marker specifically for Webkit browsers (Chrome, Safari) */
.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question h2 {
	font-size: 1.2rem; /* Override default H2 size to match summary's text size */
	margin: 0; /* Remove default H2 margins */
	padding: 0; /* Remove default H2 padding */
	color: #71b1fc; /* Your accent blue for headings */
	display: inline; /* Keep the H2 inline with other summary text (if any) */
}

/* === Custom Disclosure Marker (+/- icon) ===*/
.faq-question::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	line-height: 1;
	color: #61a5fa;
	transition: transform 0.3s ease, content 0.3s ease;
}

/* Change icon to minus sign when the details is open */
.faq-item[open] > .faq-question::after {
	content: "-";
	transform: translateY(-50%) rotate(0deg);
}

/* === Hover State for the Question (Summary) ===*/
.faq-question:hover {
	background-color: #151515;
}

/* === Focus State for the Question (Summary) - Essential for Accessibility ===*/
.faq-question:focus {
	outline: 2px solid #61a5fa;
	outline-offset: -1px; /* Pulls the outline slightly inside the border for clean look */
	border-radius: 8px;
}

/* === FAQ Answer Content (the <div> inside <details>) ===*/
.faq-answer {
	padding: 25px 20px; /* Internal padding for the answer text */
	color: #ffffff;
	font-size: 1rem;
	line-height: 1.6;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove default top/bottom margins from first/last paragraphs within the answer */
.faq-answer p:first-child {
	margin-top: 0;
}
.faq-answer p:last-child {
	margin-bottom: 0;
}
/* If multiple paragraphs, add space between them */
.faq-answer p + p {
	margin-top: 1em;
}

/*=== About Section ===*/
.about-content p {
	margin: 20px 0;
}
