/* Prize Bond Manager - Frontend Styles */

.pbm-search-box {
	background: #0b5d3b;
	background: linear-gradient(135deg, #0b5d3b, #0f7a4d);
	padding: 24px;
	border-radius: 10px;
	margin: 20px 0;
	color: #fff;
}

.pbm-search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pbm-search-row select,
.pbm-search-row input[type="text"] {
	padding: 10px 12px;
	border-radius: 6px;
	border: none;
	font-size: 15px;
}

.pbm-search-row input[type="text"] {
	flex: 1;
	min-width: 200px;
}

.pbm-btn {
	background: #ffb703;
	color: #1a1a1a;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
}

.pbm-btn:hover {
	background: #ffc93c;
}

.pbm-btn-outline {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	border: 2px solid #0b5d3b;
	color: #0b5d3b;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
}

.pbm-results-wrap {
	margin-top: 18px;
	background: #fff;
	color: #1a1a1a;
	border-radius: 8px;
	padding: 14px;
}

.pbm-result-win {
	color: #0b5d3b;
	font-weight: 700;
	margin-bottom: 10px;
	font-size: 16px;
}

.pbm-result-lose {
	color: #b00020;
	font-weight: 600;
}

.pbm-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 20px;
}

.pbm-table th,
.pbm-table td {
	border: 1px solid #e0e0e0;
	padding: 8px 10px;
	text-align: left;
	font-size: 14px;
}

.pbm-table th {
	background: #0b5d3b;
	color: #fff;
}

.pbm-result-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.pbm-result-card h3 {
	margin-top: 0;
	color: #0b5d3b;
}

.pbm-meta {
	color: #666;
	font-size: 13px;
	margin-bottom: 12px;
}

.pbm-first-prize {
	font-size: 22px;
	font-weight: 800;
	color: #ffb703;
	background: #0b5d3b;
	display: inline-block;
	padding: 8px 16px;
	border-radius: 6px;
}

.pbm-number-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.pbm-number-grid span {
	background: #f1f5f2;
	border: 1px solid #d7e2da;
	padding: 6px 12px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
}

/* ---------------- Frontend My Posts Panel ---------------- */
.pbm-my-posts-panel {
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	margin: 24px 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pbm-my-posts-panel h3 {
	color: #0b5d3b;
	margin-top: 20px;
}

.pbm-usage-line {
	background: #f1f5f2;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 14px;
	display: inline-block;
	margin-bottom: 10px;
}

.pbm-frontend-msg {
	background: #e8f5e9;
	border-left: 4px solid #0b5d3b;
	padding: 10px 14px;
	margin-bottom: 16px;
	border-radius: 4px;
}

.pbm-frontend-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 600px;
}

.pbm-frontend-form input[type="text"],
.pbm-frontend-form textarea {
	padding: 10px 12px;
	border: 1px solid #d7e2da;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
}

.pbm-image-fields {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.pbm-image-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.pbm-image-label input[type="file"] {
	font-size: 13px;
}

.pbm-current-image {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #666;
}

.pbm-current-image img {
	border-radius: 6px;
}

.pbm-form-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.pbm-my-posts-table {
	margin-top: 10px;
}

.pbm-actions-cell {
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.pbm-inline-form {
	display: inline;
}

.pbm-btn-small {
	display: inline-block;
	padding: 6px 12px;
	background: #0b5d3b;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.pbm-btn-small:hover {
	background: #0f7a4d;
	color: #fff;
	text-decoration: none;
}

.pbm-btn-danger {
	background: #b00020;
}

.pbm-btn-danger:hover {
	background: #d3223a;
}

/* ---------------- Register / Login Panel ---------------- */
.pbm-auth-wrap {
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	margin: 24px 0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pbm-auth-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 700px) {
	.pbm-auth-columns { grid-template-columns: 1fr; }
}

.pbm-auth-box {
	background: #f8faf9;
	border: 1px solid #e2e8e4;
	border-radius: 8px;
	padding: 18px;
}

.pbm-auth-box h3 {
	margin-top: 0;
	color: #0b5d3b;
}

.pbm-msg-error {
	background: #fdecea;
	border-left: 4px solid #b00020;
	color: #b00020;
}

.pbm-msg-pending {
	background: #fff8e1;
	border-left: 4px solid #ffb703;
	color: #7a5c00;
}
