/* 
 * Paramount Peptides COA Lookup CSS
 */

.pp-coa-lookup {
	max-width: 1000px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #333;
}

.pp-coa-header {
	text-align: center;
	margin-bottom: 2em;
}

.pp-coa-title {
	font-size: 2em;
	margin-bottom: 0.2em;
	color: #1a202c;
}

.pp-coa-subtitle {
	color: #4a5568;
	font-size: 1.1em;
}

/* Search Form */
.pp-coa-search-form {
	display: flex;
	max-width: 600px;
	margin: 0 auto 3em;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	border-radius: 8px;
	overflow: hidden;
}

.pp-coa-search-input {
	flex: 1;
	padding: 15px 20px;
	border: 1px solid #e2e8f0;
	border-right: none;
	font-size: 1.1em;
	outline: none;
	border-radius: 8px 0 0 8px;
	background: #fff;
}

.pp-coa-search-input:focus {
	border-color: #3182ce;
	box-shadow: inset 0 0 0 1px #3182ce;
}

.pp-coa-search-btn {
	background: #3182ce;
	color: #fff;
	border: none;
	padding: 0 30px;
	font-size: 1.1em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	border-radius: 0 8px 8px 0;
}

.pp-coa-search-btn:hover {
	background: #2b6cb0;
}

/* Results Area */
.pp-coa-results-container {
	margin-top: 2em;
}

.pp-coa-empty-state, .pp-coa-no-results {
	text-align: center;
	padding: 3em;
	background: #f7fafc;
	border-radius: 8px;
	color: #718096;
	border: 1px dashed #cbd5e0;
}

.pp-coa-results-count {
	margin-bottom: 1em;
	font-weight: 600;
	color: #4a5568;
}

/* Table View (Desktop) */
.pp-coa-table-wrapper {
	display: none;
	overflow-x: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
	border: 1px solid #e2e8f0;
}

.pp-coa-results-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.pp-coa-results-table th,
.pp-coa-results-table td {
	padding: 15px 20px;
	border-bottom: 1px solid #e2e8f0;
}

.pp-coa-results-table th {
	background: #f7fafc;
	font-weight: 600;
	color: #4a5568;
	text-transform: uppercase;
	font-size: 0.85em;
	letter-spacing: 0.05em;
}

.pp-coa-results-table tr:last-child td {
	border-bottom: none;
}

.pp-coa-results-table tr:hover td {
	background: #fbfbfc;
}

.pp-coa-view-btn {
	background: #edf2f7;
	color: #2b6cb0;
	border: 1px solid #e2e8f0;
	padding: 8px 16px;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	display: inline-block;
}

.pp-coa-view-btn:hover {
	background: #e2e8f0;
	color: #2c5282;
}

/* Cards View (Mobile) */
.pp-coa-cards-wrapper {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.pp-coa-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.pp-coa-card-title {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 1.2em;
	color: #2d3748;
}

.pp-coa-card-meta {
	margin-bottom: 5px;
	font-size: 0.95em;
	color: #4a5568;
}

.pp-coa-card-action {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #edf2f7;
}

@media (min-width: 768px) {
	.pp-coa-table-wrapper {
		display: block;
	}
	.pp-coa-cards-wrapper {
		display: none;
	}
}

/* Modal / Lightbox */
.pp-coa-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
}

.pp-coa-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(3px);
}

.pp-coa-modal-content {
	position: relative;
	width: 90%;
	max-width: 800px;
	max-height: 90vh;
	background: #fff;
	border-radius: 8px;
	z-index: 1000000;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.pp-coa-modal-close {
	position: absolute;
	top: -45px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	line-height: 1;
}

.pp-coa-modal-body {
	padding: 20px;
	overflow-y: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 200px;
}

.pp-coa-modal-img {
	max-width: 100%;
	height: auto;
	max-height: 70vh;
	display: block;
	border: 1px solid #e2e8f0;
}

.pp-coa-modal-footer {
	padding: 15px 20px;
	background: #f7fafc;
	border-top: 1px solid #e2e8f0;
	text-align: right;
	border-radius: 0 0 8px 8px;
}

.pp-coa-modal-download-link {
	color: #3182ce;
	text-decoration: none;
	font-weight: 600;
}

.pp-coa-modal-download-link:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.pp-coa-modal-close {
		top: -40px;
		right: 10px;
	}
}
