/* LOW Simple Events Calendar - Public Styles */

/* --- Single Event Details (Appended/Prepended) --- */
.lowsec-event-featured-image {
	margin-bottom: 1.5em;
	text-align: center;
	/* Or left, or however you want it */
}

.lowsec-event-featured-image img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	/* Optional subtle styling */
}

.lowsec-event-details-wrap {
	margin-top: 2em;
	padding: 1.5em;
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.lowsec-event-details-wrap h3 {
	margin-top: 0;
	margin-bottom: 0.75em;
	font-size: 1.4em;
	border-bottom: 1px solid #ddd;
	padding-bottom: 0.5em;
}

.lowsec-event-details-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.lowsec-event-details-list li {
	padding: 0.3em 0;
	border-bottom: 1px dotted #eee;
}

.lowsec-event-details-list li:last-child {
	border-bottom: none;
}

.lowsec-event-details-list strong {
	min-width: 120px;
	/* Adjust as needed */
	display: inline-block;
	color: #333;
}

/* --- Event List Shortcodes --- */
.lowsec-events-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.lowsec-event-list-item {
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin-bottom: 1.5em;
	padding: 1em;
	overflow: hidden;
	/* Clearfix for floated thumbnail */
	display: flex;
	/* For modern layout of thumbnail and content */
	gap: 1em;
}

.lowsec-event-list-item:last-child {
	margin-bottom: 0;
}

.lowsec-event-list-thumbnail {
	flex-shrink: 0;
	/* Prevent thumbnail from shrinking */
	width: 100px;
	/* Example fixed width */
	/* float: left; */
	/* Old method, flexbox is better */
	/* margin-right: 1em; */
}

.lowsec-event-list-thumbnail img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 3px;
}

.lowsec-event-list-content {
	flex-grow: 1;
	/* Allow content to take remaining space */
	/* overflow: hidden; */
	/* Old method if using float */
}

.lowsec-event-list-content .lowsec-event-title {
	margin-top: 0;
	margin-bottom: 0.25em;
	font-size: 1.2em;
}

.lowsec-event-list-content .lowsec-event-title a {
	text-decoration: none;
	color: #2c3e50;
	/* Example color */
}

.lowsec-event-list-content .lowsec-event-title a:hover {
	color: #1abc9c;
	/* Example hover color */
}

.lowsec-event-meta {
	font-size: 0.9em;
	color: #7f8c8d;
	margin-bottom: 0.5em;
}

.lowsec-event-meta span {
	margin-right: 1em;
	display: inline-flex;
	/* Align icon and text */
	align-items: center;
}

.lowsec-event-meta .dashicons {
	margin-right: 0.3em;
	font-size: 1.1em;
	/* Adjust icon size */
}

.lowsec-event-excerpt {
	font-size: 0.95em;
	color: #555;
	margin-bottom: 0.75em;
}

.lowsec-event-read-more {
	font-size: 0.9em;
	text-decoration: none;
	color: #16a085;
}

.lowsec-event-read-more:hover {
	text-decoration: underline;
}


/* --- Community Event Submission Form --- */
#lowsec-submission-form-wrapper {
	max-width: 600px;
	/* Or theme content width */
	margin: 2em auto;
	padding: 2em;
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
}

#lowsec-community-event-submission-form .form-row {
	margin-bottom: 1em;
}

#lowsec-community-event-submission-form label {
	display: block;
	font-weight: bold;
	margin-bottom: 0.3em;
	color: #444;
}

#lowsec-community-event-submission-form input[type="text"],
#lowsec-community-event-submission-form input[type="email"],
#lowsec-community-event-submission-form input[type="url"],
#lowsec-community-event-submission-form input[type="tel"],
#lowsec-community-event-submission-form input[type="date"],
#lowsec-community-event-submission-form input[type="time"],
#lowsec-community-event-submission-form textarea,
#lowsec-community-event-submission-form select {
	width: 100%;
	padding: 0.6em;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-sizing: border-box;
	/* Important for width: 100% */
	font-size: 1em;
}

#lowsec-community-event-submission-form textarea {
	min-height: 100px;
}

#lowsec-community-event-submission-form select[multiple] {
	min-height: 120px;
}

/* For half-width fields (Start Date/Time, End Date/Time) */
@media (min-width: 600px) {
	#lowsec-community-event-submission-form .form-row-half {
		width: 48%;
		display: inline-block;
		vertical-align: top;
	}

	#lowsec-community-event-submission-form .form-row-half:nth-child(odd) {
		margin-right: 4%;
	}

	#lowsec-community-event-submission-form .form-row-half:nth-child(even) {
		margin-right: 0;
	}
}


#lowsec-community-event-submission-form .required {
	color: red;
	margin-left: 2px;
}

#lowsec-community-event-submission-form small {
	font-size: 0.85em;
	color: #666;
	display: block;
	margin-top: 0.2em;
}

#lowsec-community-event-submission-form .form-submit {
	margin-top: 1.5em;
	text-align: right;
}

#lowsec-community-event-submission-form button[type="submit"] {
	background-color: #1abc9c;
	/* Example color */
	color: white;
	border: none;
	padding: 0.8em 1.5em;
	font-size: 1em;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
}

#lowsec-community-event-submission-form button[type="submit"]:hover {
	background-color: #16a085;
}

#lowsec-community-event-submission-form button[type="submit"]:disabled {
	background-color: #bdc3c7;
	cursor: not-allowed;
}

#lowsec-community-event-submission-form .lowsec-spinner {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
}

#lowsec-community-event-submission-form .lowsec-spinner img {
	vertical-align: middle;
}

/* Form Messages */
#lowsec-form-messages {
	padding: 1em;
	margin-bottom: 1.5em;
	border-radius: 4px;
	border-width: 1px;
	border-style: solid;
}

#lowsec-form-messages.success {
	background-color: #dff0d8;
	border-color: #d6e9c6;
	color: #3c763d;
}

#lowsec-form-messages.error {
	background-color: #f2dede;
	border-color: #ebccd1;
	color: #a94442;
}

#lowsec-form-messages.notice {
	background-color: #fcf8e3;
	border-color: #faebcc;
	color: #8a6d3b;
}

#lowsec-form-messages p {
	margin: 0;
	padding: 0;
}

#lowsec-form-messages ul.error-list {
	margin-top: 0.5em;
	margin-bottom: 0;
	padding-left: 20px;
}

/* Field error styling */
#lowsec-community-event-submission-form .error-field {
	border-color: #a94442 !important;
	/* Ensure it overrides other styles */
}

#lowsec-community-event-submission-form .field-error-message {
	display: block;
	color: #a94442;
	font-size: 0.85em;
	margin-top: 0.2em;
}