/* Løbeklubben Club Events — frontend styles */

/* ===== Klubside: klubbens løb ===== */
.lbce-club-events {
	margin: 32px 0;
	padding-top: 24px;
	border-top: 1px solid #eee;
}
.lbce-club-events-heading {
	font-size: 1.5rem;
	margin: 0 0 16px;
	color: #222;
}
.lbce-club-events-count {
	font-size: 0.875rem;
	color: #888;
	font-weight: 400;
}
.lbce-club-events-actions {
	margin-bottom: 16px;
}
.lbce-club-events-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}
.lbce-club-event-item {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.lbce-club-event-item:hover {
	border-color: #e85d04;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.lbce-club-event-item.lbce-status-pending {
	border-left: 3px solid #b35900;
}
.lbce-club-event-item.lbce-status-draft {
	border-left: 3px solid #999;
}
.lbce-club-event-link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
}
.lbce-club-event-name {
	font-weight: 600;
	flex: 1 1 50%;
}
.lbce-club-event-date,
.lbce-club-event-city {
	color: #666;
	font-size: 0.875rem;
}
.lbce-club-event-status {
	font-size: 0.75rem;
	padding: 2px 8px;
	border-radius: 4px;
	background: #f0f0f0;
	color: #555;
}
.lbce-club-event-signups {
	font-size: 0.75rem;
	color: #e85d04;
	font-weight: 600;
}

/* ===== Event sidebar: klub badge ===== */
.lbce-event-club .lbce-club-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #e85d04;
	font-weight: 600;
}
.lbce-club-logo-mini {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	object-fit: cover;
}

/* ===== Tilmeldingsknap ===== */
.lbce-signup-ui {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e5e5;
}
.lbce-signups-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.lbce-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	transition: background 0.2s, color 0.2s, border 0.2s;
}
.lbce-btn:disabled {
	opacity: 0.7;
	cursor: default;
}
.lbce-btn-primary {
	background: #e85d04;
	color: #fff;
}
.lbce-btn-primary:hover:not(:disabled) {
	background: #c84e03;
}
.lbce-btn-success {
	background: #2a9d8f;
	color: #fff;
}
.lbce-btn-outline {
	background: transparent;
	color: #e85d04;
	border: 1px solid #e85d04;
}
.lbce-btn-outline:hover {
	background: #fff5f0;
}
.lbce-btn-danger {
	background: #d62828;
	color: #fff;
}
.lbce-btn-danger:hover {
	background: #b01e1e;
}
.lbce-btn-sm {
	padding: 6px 12px;
	font-size: 0.8125rem;
}
.lbce-btn-full {
	display: block;
	width: 100%;
	margin-bottom: 8px;
}

/* ===== Modals ===== */
.lbce-modal {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lbce-modal-backdrop {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
}
.lbce-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 540px;
	width: calc(100% - 32px);
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.lbce-modal-large .lbce-modal-content {
	max-width: 900px;
}
.lbce-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}
.lbce-modal-header h3 {
	margin: 0;
	font-size: 1.125rem;
}
.lbce-modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #666;
	line-height: 1;
	padding: 0;
}
.lbce-modal-close:hover {
	color: #000;
}
.lbce-modal-body {
	padding: 20px;
}
.lbce-modal-footer {
	padding-top: 16px;
	text-align: right;
}

/* ===== Tilmeldingsform ===== */
.lbce-field-group {
	margin-bottom: 14px;
}
.lbce-field-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9rem;
}
.lbce-field-group input[type="text"],
.lbce-field-group input[type="number"],
.lbce-field-group input[type="date"],
.lbce-field-group input[type="email"],
.lbce-field-group select,
.lbce-field-group textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9rem;
}
.lbce-required-mark {
	color: #d62828;
}
.lbce-error {
	background: #fee;
	border: 1px solid #f88;
	border-radius: 4px;
	padding: 8px 12px;
	color: #b00;
	margin: 8px 0;
	font-size: 0.875rem;
}
.lbce-success {
	background: #e6f9f0;
	border: 1px solid #8f8;
	border-radius: 4px;
	padding: 8px 12px;
	color: #060;
	margin: 8px 0;
	font-size: 0.875rem;
}

/* ===== Felt-editor (for arrangører) ===== */
.lbce-fields-editor {
	margin-top: 16px;
	padding: 16px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e5e5e5;
}
.lbce-fields-heading {
	margin: 0 0 4px;
	font-size: 1rem;
}
.lbce-fields-intro {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	color: #666;
}
.lbce-fields-list {
	display: grid;
	gap: 8px;
	margin-bottom: 12px;
}
.lbce-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 8px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}
.lbce-field-row input[type="text"],
.lbce-field-row select {
	padding: 6px 8px;
	font-size: 0.85rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.lbce-field-row .lbce-field-label {
	flex: 1 1 200px;
}
.lbce-field-row .lbce-field-type {
	width: 110px;
}
.lbce-field-row .lbce-field-options {
	flex: 1 1 100%;
	font-size: 0.8125rem;
}
.lbce-field-row .lbce-field-required {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8125rem;
}
.lbce-field-remove {
	background: #d62828;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}
.lbce-field-remove:hover {
	background: #b01e1e;
}
.lbce-fields-message {
	margin-top: 8px;
	font-size: 0.85rem;
}

/* ===== Tilmeldte liste (for arrangører) ===== */
.lbce-signups-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}
.lbce-signups-table th,
.lbce-signups-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid #e5e5e5;
}
.lbce-signups-table th {
	background: #f5f5f5;
	font-weight: 600;
}
.lbce-signup-row-cancelled {
	opacity: 0.55;
	text-decoration: line-through;
}

.lbce-cancellation-request {
	background: #fff5f0;
	border: 1px solid #f0d0c0;
	border-radius: 4px;
	padding: 12px;
	margin: 12px 0;
}
.lbce-cancellation-request p {
	margin: 0 0 8px;
}
.lbce-cancellation-actions {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-top: 8px;
}
.lbce-cancellation-actions input[type="text"] {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.85rem;
}

/* ===== Profil: tilmeldte løb ===== */
.lbce-profile-signups {
	margin: 32px 0;
}
.lbce-profile-heading {
	font-size: 1.25rem;
	margin: 0 0 16px;
}
.lbce-profile-count {
	font-size: 0.875rem;
	color: #888;
	font-weight: 400;
}
.lbce-profile-signups-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}
.lbce-profile-signup-item {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
}
.lbce-profile-signup-item.lbce-status-cancelled {
	opacity: 0.55;
}
.lbce-profile-signup-link {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
}
.lbce-profile-signup-name {
	font-weight: 600;
	flex: 1;
}
.lbce-profile-signup-status {
	font-size: 0.75rem;
	padding: 2px 8px;
	border-radius: 4px;
	background: #f0f0f0;
	color: #555;
}

@media (max-width: 600px) {
	.lbce-club-event-link {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.lbce-field-row {
		flex-direction: column;
		align-items: stretch;
	}
	.lbce-field-row .lbce-field-type {
		width: 100%;
	}
}