/**
 * Verification Shortcodes Styles
 *
 * Shared styles for all draw verification shortcodes.
 *
 * @package    Amsotech_Competitions
 * @subpackage Amsotech_Competitions/public/assets/css
 */

/* Container Styles */
.amsotech-verification-container {
	max-width: 900px;
	margin: 30px auto;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #e1e8ed;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.amsotech-verification-container h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #1a202c;
	font-size: 28px;
	font-weight: 600;
}

.amsotech-verification-container h3 {
	color: #2d3748;
	font-size: 20px;
	font-weight: 600;
	margin-top: 30px;
	margin-bottom: 15px;
}

.amsotech-verification-container h4 {
	color: #4a5568;
	font-size: 16px;
	font-weight: 600;
	margin-top: 20px;
	margin-bottom: 10px;
}

/* Info Box Styles */
.amsotech-info-box {
	background: #f7fafc;
	border-left: 4px solid #4299e1;
	padding: 20px;
	margin: 20px 0;
	border-radius: 4px;
}

.amsotech-info-box.success {
	background: #f0fdf4;
	border-left-color: #10b981;
}

.amsotech-info-box.warning {
	background: #fffbeb;
	border-left-color: #f59e0b;
}

.amsotech-info-box.error {
	background: #fef2f2;
	border-left-color: #ef4444;
}

.amsotech-info-box p:first-child {
	margin-top: 0;
}

.amsotech-info-box p:last-child {
	margin-bottom: 0;
}

/* Code and Monospace Styles */
.amsotech-code {
	background: #1e293b;
	color: #e2e8f0;
	padding: 20px;
	border-radius: 6px;
	overflow-x: auto;
	font-family: 'Monaco', 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.6;
	margin: 15px 0;
}

.amsotech-inline-code {
	background: #e2e8f0;
	color: #1e293b;
	padding: 3px 6px;
	border-radius: 3px;
	font-family: 'Monaco', 'Courier New', monospace;
	font-size: 13px;
	white-space: nowrap;
}

/* Step List Styles */
.amsotech-step-list {
	list-style: none;
	padding: 0;
	counter-reset: step-counter;
}

.amsotech-step-list li {
	position: relative;
	padding-left: 45px;
	margin-bottom: 25px;
	counter-increment: step-counter;
}

.amsotech-step-list li:before {
	content: counter(step-counter);
	position: absolute;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	background: #4299e1;
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
}

.amsotech-step-list li strong {
	display: block;
	color: #2d3748;
	margin-bottom: 5px;
}

/* Form Styles */
.amsotech-form-group {
	margin-bottom: 20px;
}

.amsotech-form-group label {
	display: block;
	margin-bottom: 8px;
	color: #2d3748;
	font-weight: 500;
	font-size: 14px;
}

.amsotech-form-group input[type="text"],
.amsotech-form-group input[type="number"],
.amsotech-form-group textarea,
.amsotech-form-group select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.amsotech-form-group textarea {
	font-family: 'Monaco', 'Courier New', monospace;
	min-height: 80px;
	resize: vertical;
}

.amsotech-form-group input:focus,
.amsotech-form-group textarea:focus,
.amsotech-form-group select:focus {
	outline: none;
	border-color: #4299e1;
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.amsotech-form-group .description {
	margin-top: 5px;
	font-size: 13px;
	color: #718096;
}

/* Button Styles */
.amsotech-button {
	display: inline-block;
	padding: 12px 24px;
	background: #4299e1;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	text-decoration: none;
}

.amsotech-button:hover {
	background: #3182ce;
	transform: translateY(-1px);
}

.amsotech-button:active {
	transform: translateY(0);
}

.amsotech-button:disabled {
	background: #a0aec0;
	cursor: not-allowed;
	transform: none;
}

.amsotech-button.secondary {
	background: #718096;
}

.amsotech-button.secondary:hover {
	background: #4a5568;
}

.amsotech-button.success {
	background: #10b981;
}

.amsotech-button.success:hover {
	background: #059669;
}

/* Results Container */
.amsotech-results {
	margin-top: 25px;
	padding: 25px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.amsotech-results h3 {
	margin-top: 0;
	color: #1a202c;
}

.amsotech-result-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e2e8f0;
}

.amsotech-result-row:last-child {
	border-bottom: none;
}

.amsotech-result-label {
	color: #4a5568;
	font-weight: 500;
	flex: 0 0 40%;
}

.amsotech-result-value {
	color: #1a202c;
	font-family: 'Monaco', 'Courier New', monospace;
	font-size: 13px;
	flex: 1;
	word-break: break-all;
	text-align: right;
}

/* Loading Spinner */
.amsotech-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #e2e8f0;
	border-top-color: #4299e1;
	border-radius: 50%;
	animation: amsotech-spin 0.8s linear infinite;
	vertical-align: middle;
	margin-right: 8px;
}

@keyframes amsotech-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Alert Messages */
.amsotech-alert {
	padding: 15px 20px;
	border-radius: 6px;
	margin: 20px 0;
	font-size: 14px;
}

.amsotech-alert.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #10b981;
}

.amsotech-alert.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #ef4444;
}

.amsotech-alert.warning {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #f59e0b;
}

.amsotech-alert.info {
	background: #dbeafe;
	color: #1e40af;
	border: 1px solid #4299e1;
}

/* Table Styles */
.amsotech-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	background: #ffffff;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.amsotech-table thead {
	background: #f7fafc;
}

.amsotech-table th {
	padding: 12px 15px;
	text-align: left;
	font-weight: 600;
	color: #2d3748;
	font-size: 14px;
	border-bottom: 2px solid #e2e8f0;
}

.amsotech-table td {
	padding: 12px 15px;
	border-bottom: 1px solid #e2e8f0;
	color: #4a5568;
	font-size: 14px;
}

.amsotech-table tbody tr:last-child td {
	border-bottom: none;
}

.amsotech-table tbody tr:hover {
	background: #f7fafc;
}

.amsotech-table code {
	background: #e2e8f0;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: 'Monaco', 'Courier New', monospace;
	font-size: 12px;
}

/* Prize Verification Styles */
.amsotech-prize-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.amsotech-prize-card.verified {
	border-left: 4px solid #10b981;
	background: #f0fdf4;
}

.amsotech-prize-card.failed {
	border-left: 4px solid #ef4444;
	background: #fef2f2;
}

.amsotech-prize-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.amsotech-prize-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a202c;
	margin: 0;
}

.amsotech-prize-status {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.amsotech-prize-status.verified {
	background: #d1fae5;
	color: #065f46;
}

.amsotech-prize-status.failed {
	background: #fee2e2;
	color: #991b1b;
}

.amsotech-prize-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-top: 15px;
}

.amsotech-prize-detail {
	display: flex;
	flex-direction: column;
}

.amsotech-prize-detail-label {
	font-size: 12px;
	color: #718096;
	margin-bottom: 4px;
	text-transform: uppercase;
	font-weight: 600;
}

.amsotech-prize-detail-value {
	font-size: 14px;
	color: #1a202c;
	font-family: 'Monaco', 'Courier New', monospace;
}

/* Attempt History */
.amsotech-attempts {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e2e8f0;
}

.amsotech-attempts-title {
	font-size: 14px;
	font-weight: 600;
	color: #4a5568;
	margin-bottom: 10px;
}

.amsotech-attempt-item {
	display: flex;
	justify-content: space-between;
	padding: 8px 12px;
	background: #f7fafc;
	border-radius: 4px;
	margin-bottom: 8px;
	font-size: 13px;
}

.amsotech-attempt-item.gap {
	background: #fef3c7;
}

.amsotech-attempt-item.winner {
	background: #d1fae5;
	font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
	.amsotech-verification-container {
		padding: 20px;
		margin: 20px auto;
	}

	.amsotech-verification-container h2 {
		font-size: 24px;
	}

	.amsotech-prize-details {
		grid-template-columns: 1fr;
	}

	.amsotech-result-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.amsotech-result-label,
	.amsotech-result-value {
		flex: 1 0 100%;
		text-align: left;
	}

	.amsotech-result-value {
		margin-top: 5px;
	}

	.amsotech-table {
		font-size: 12px;
	}

	.amsotech-table th,
	.amsotech-table td {
		padding: 8px 10px;
	}
}

/* Utility Classes */
.amsotech-text-center {
	text-align: center;
}

.amsotech-text-muted {
	color: #718096;
}

.amsotech-mb-0 {
	margin-bottom: 0;
}

.amsotech-mt-20 {
	margin-top: 20px;
}

.amsotech-hidden {
	display: none;
}
