/* Putnam County Community Calendar — front-end styles */

.ccp-calendar-wrap {
	max-width: 100%;
	margin: 1.5em 0;
	font-family: inherit;
}

.ccp-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75em;
}

.ccp-cal-title {
	margin: 0;
	font-size: 1.4em;
}

.ccp-cal-nav {
	text-decoration: none;
	padding: 0.4em 0.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.9em;
	white-space: nowrap;
}
.ccp-cal-nav:hover {
	background: #f2f2f2;
}

/* Category color legend */
.ccp-cal-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9em 1.3em;
	padding: 0.9em;
	background: #f7f7f7;
	border-radius: 4px;
	margin-bottom: 1.2em;
	font-size: 0.85em;
}

.ccp-cal-legend-label {
	font-weight: 700;
	color: #444;
}

.ccp-cal-legend-item {
	display: inline-block;
	color: #333;
	border-bottom: 12px solid #6c757d;
	padding-bottom: 4px;
	line-height: 1.2;
}

.ccp-cal-color-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
	border: 1px solid rgba(0,0,0,0.15);
}

/* Day-by-day agenda list */
.ccp-no-events {
	color: #666;
	font-style: italic;
	padding: 1em 0;
}

.ccp-calendar-list {
	display: flex;
	flex-direction: column;
	gap: 1.4em;
}

.ccp-cal-day-group {
	border-top: 2px solid #222;
	padding-top: 0.6em;
}

.ccp-cal-day-today {
	border-top-color: #2271b1;
}

.ccp-cal-day-heading {
	display: flex;
	align-items: baseline;
	gap: 0.5em;
	margin-bottom: 0.5em;
}

.ccp-cal-day-name {
	font-weight: 700;
	font-size: 1.05em;
}

.ccp-cal-day-date {
	color: #555;
	font-size: 0.95em;
}

.ccp-cal-today-badge {
	background: #2271b1;
	color: #fff;
	font-size: 0.7em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 2px 7px;
	border-radius: 10px;
	margin-left: auto;
}

.ccp-cal-day-events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ccp-cal-list-event {
	display: block;
	padding: 0.7em 0.9em;
	border-bottom: 1px solid #eee;
	border-left: 4px solid #6c757d;
}
.ccp-cal-list-event:last-child {
	border-bottom: none;
}

.ccp-cal-list-datetime {
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	font-weight: 600;
	margin-bottom: 0.2em;
}

.ccp-cal-list-title {
	display: flex;
	align-items: center;
	gap: 0.45em;
	font-weight: 700;
	font-size: 1.08em;
	text-decoration: none;
	color: #1d2327;
}
.ccp-cal-list-title:hover {
	text-decoration: underline;
}

.ccp-cal-list-venue {
	font-size: 0.85em;
	color: #666;
	margin-top: 0.2em;
}

.ccp-cal-list-excerpt {
	font-size: 0.9em;
	color: #444;
	margin-top: 0.45em;
	line-height: 1.5;
}

.ccp-cal-readmore {
	white-space: nowrap;
	font-weight: 600;
	text-decoration: none;
	color: #2271b1;
}
.ccp-cal-readmore:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.ccp-cal-list-title {
		font-size: 1em;
	}
}

/* Upcoming events list */
.ccp-upcoming-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ccp-upcoming-item {
	padding: 0.7em 0.9em;
	border-bottom: 1px solid #eee;
	border-left: 4px solid #6c757d;
}
.ccp-upcoming-date {
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	font-weight: 600;
	margin-bottom: 0.2em;
}
.ccp-upcoming-title {
	display: flex;
	align-items: center;
	gap: 0.45em;
	font-weight: 700;
	font-size: 1.05em;
	text-decoration: none;
	color: #1d2327;
}
.ccp-upcoming-location {
	font-size: 0.85em;
	color: #666;
	margin-top: 0.2em;
}
.ccp-upcoming-excerpt {
	font-size: 0.9em;
	color: #444;
	margin-top: 0.4em;
	line-height: 1.5;
}

/* Single event details box */
.ccp-event-details-box {
	background: #f7f7f7;
	border-left: 4px solid #2271b1;
	padding: 1em 1.25em;
	margin-bottom: 1.5em;
	border-radius: 3px;
}
.ccp-event-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ccp-event-details-list li {
	margin-bottom: 0.5em;
}
.ccp-map-link {
	font-size: 0.85em;
}

/* Submission form */
.ccp-submit-event-wrap {
	max-width: 640px;
}
.ccp-event-form .ccp-field {
	margin-bottom: 1.1em;
}
.ccp-event-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}
.ccp-event-form input[type="text"],
.ccp-event-form input[type="email"],
.ccp-event-form input[type="tel"],
.ccp-event-form input[type="url"],
.ccp-event-form input[type="date"],
.ccp-event-form input[type="time"],
.ccp-event-form select,
.ccp-event-form textarea {
	width: 100%;
	padding: 0.55em 0.7em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-size: 1em;
}
.ccp-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
}
.ccp-field-checkbox label {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 400;
}
.req {
	color: #b32d2e;
}
.ccp-optional {
	font-weight: 400;
	color: #777;
	font-size: 0.85em;
}
.ccp-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}
.ccp-submit-button {
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 0.75em 1.6em;
	font-size: 1em;
	border-radius: 4px;
	cursor: pointer;
}
.ccp-submit-button:hover {
	background: #135e96;
}
.ccp-terms-text {
	font-size: 0.85em;
	color: #666;
}
.ccp-notice {
	padding: 0.9em 1.1em;
	border-radius: 4px;
	margin-bottom: 1.2em;
}
.ccp-notice-success {
	background: #edf8ed;
	border-left: 4px solid #46b450;
}
.ccp-notice-error {
	background: #fbeaea;
	border-left: 4px solid #b32d2e;
}
.ccp-notice-info {
	background: #eaf3fb;
	border-left: 4px solid #2271b1;
}

@media (max-width: 600px) {
	.ccp-field-row {
		grid-template-columns: 1fr;
	}
}
