/**
 * Neo-Social — Εκδηλώσεις
 *
 * Το --nsev-primary έρχεται από τις ρυθμίσεις· όταν δεν οριστεί, ακολουθεί το
 * χρώμα του Πυρήνα. Το --nsev-cat μπαίνει ανά κάρτα και είναι το χρώμα της
 * κατηγορίας.
 */

.nsev-wrap {
	--nsev-primary: var(--neo-primary, #1d9e75);
	--nsev-cat: var(--nsev-primary);
	--nsev-line: #e6e8eb;
	--nsev-muted: #6b7280;
	--nsev-bg: #ffffff;
	color: inherit;
}

.nsev-wrap * {
	box-sizing: border-box;
}

/*
 * Το hidden του JS πρέπει να νικάει τα display των πεδίων, αλλιώς τα
 * εξαρτημένα πεδία (σύνδεσμος, τιμή, κανόνας επανάληψης) φαίνονται όλα μαζί.
 */
.nsev-wrap [hidden] {
	display: none !important;
}

/* ---------- Κοινά ---------- */

.nsev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--nsev-line);
	border-radius: 8px;
	background: var(--nsev-bg);
	color: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.nsev-btn:hover {
	border-color: var(--nsev-primary);
}

.nsev-btn[disabled] {
	opacity: .55;
	cursor: default;
}

.nsev-btn-primary {
	background: var(--nsev-primary);
	border-color: var(--nsev-primary);
	color: #fff;
}

.nsev-btn-danger {
	color: #a3231b;
}

.nsev-btn-icon {
	width: 36px;
	padding: 8px 0;
}

.nsev-h2 {
	margin: 0 0 14px;
	font-size: 20px;
}

.nsev-h3 {
	margin: 22px 0 10px;
	font-size: 16px;
}

.nsev-muted {
	color: var(--nsev-muted);
	font-size: 13px;
}

.nsev-empty {
	padding: 24px;
	text-align: center;
	color: var(--nsev-muted);
	border: 1px dashed var(--nsev-line);
	border-radius: 10px;
}

.nsev-notice {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.nsev-notice.is-ok {
	background: #e9f6f1;
	color: #0f6e56;
}

.nsev-notice.is-error {
	background: #fbeaea;
	color: #a3231b;
}

.nsev-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 12px;
}

.nsev-badge.is-warn {
	background: #faeeda;
	color: #854f0b;
}

.nsev-badge.is-bad {
	background: #fbeaea;
	color: #a3231b;
}

/* ---------- Καρτέλες ---------- */

.nsev-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--nsev-line);
}

.nsev-tab {
	padding: 10px 14px;
	border-bottom: 2px solid transparent;
	color: var(--nsev-muted);
	text-decoration: none;
	font-size: 14px;
}

.nsev-tab.is-active {
	color: inherit;
	border-bottom-color: var(--nsev-primary);
}

.nsev-tabs-cta {
	margin-left: auto;
	margin-bottom: 6px;
}

/* ---------- Φίλτρα ---------- */

.nsev-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin-bottom: 16px;
}

.nsev-filter {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 150px;
}

/* Η αναζήτηση παίρνει τον χώρο που περισσεύει· τα υπόλοιπα κρατούν το μέτρο τους. */
.nsev-filter-wide {
	flex: 1 1 220px;
}

.nsev-filter > span {
	font-size: 12px;
	color: var(--nsev-muted);
}

.nsev-filters input[type="text"],
.nsev-filters select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--nsev-line);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}

.nsev-filter-go {
	height: 37px;
}

.nsev-filter-clear {
	align-self: center;
	font-size: 13px;
	color: var(--nsev-muted);
}

@media (max-width: 600px) {

	.nsev-filter,
	.nsev-filter-wide {
		flex: 1 1 100%;
	}

	.nsev-filter-go {
		flex: 1 1 100%;
	}
}

/* ---------- Κάρτες ---------- */

.nsev-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
}

.nsev-card {
	border: 1px solid var(--nsev-line);
	border-radius: 12px;
	overflow: hidden;
	background: var(--nsev-bg);
	display: flex;
	flex-direction: column;
}

.nsev-card-cover {
	display: block;
}

.nsev-cover {
	position: relative;
	height: 120px;
	background: var(--nsev-cat);
}

.nsev-single .nsev-cover {
	height: 200px;
	border-radius: 12px;
}

.nsev-datechip {
	position: absolute;
	top: 10px;
	left: 10px;
	min-width: 46px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	line-height: 1.15;
}

.nsev-datechip-m {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	color: var(--nsev-muted);
}

.nsev-datechip-d {
	display: block;
	font-size: 17px;
	font-weight: 600;
}

.nsev-pricechip,
.nsev-cancelchip {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 9px;
	border-radius: 8px;
	background: #fff;
	font-size: 12px;
}

.nsev-cancelchip {
	top: 44px;
	background: #fbeaea;
	color: #a3231b;
}

.nsev-card-body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.nsev-card-title {
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.nsev-card-sub {
	font-size: 13px;
	color: var(--nsev-muted);
}

.nsev-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
	font-size: 13px;
	color: var(--nsev-muted);
}

.nsev-meta-i .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	vertical-align: -3px;
	margin-right: 2px;
}

.nsev-meta-i.is-full {
	color: #a3231b;
}

.nsev-card-state {
	font-size: 12px;
	color: var(--nsev-cat);
}

/* ---------- Λίστα (οι εκδηλώσεις μου) ---------- */

.nsev-mine-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.nsev-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nsev-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--nsev-line);
	border-left: 3px solid var(--nsev-cat);
	border-radius: 10px;
}

.nsev-row-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nsev-row-title {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.nsev-row-sub {
	font-size: 13px;
	color: var(--nsev-muted);
}

/* ---------- Ημερολόγιο ---------- */

.nsev-calhead {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.nsev-calmonth {
	font-size: 16px;
	font-weight: 600;
}

.nsev-cal {
	border: 1px solid var(--nsev-line);
	border-radius: 12px;
	overflow: hidden;
}

.nsev-cal-names {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border-bottom: 1px solid var(--nsev-line);
	font-size: 12px;
	color: var(--nsev-muted);
}

.nsev-cal-names span {
	padding: 8px 6px;
}

.nsev-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 1px;
	background: var(--nsev-line);
}

.nsev-cell {
	min-height: 92px;
	padding: 6px;
	background: var(--nsev-bg);
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.nsev-cell.is-out {
	background: #fafbfc;
}

.nsev-cell.is-today .nsev-cell-day {
	font-weight: 700;
	color: var(--nsev-primary);
}

.nsev-cell-day {
	font-size: 12px;
	color: var(--nsev-muted);
}

.nsev-cell-full {
	display: none;
	font-size: 13px;
	font-weight: 600;
}

.nsev-cell-more {
	font-size: 11px;
	color: var(--nsev-muted);
}

.nsev-pill {
	display: block;
	padding: 3px 6px;
	border-radius: 5px;
	border-left: 3px solid var(--nsev-cat);
	background: #f4f6f8;
	font-size: 11px;
	line-height: 1.35;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * Σε στενή οθόνη το πλέγμα των επτά στηλών δεν διαβάζεται: γίνεται λίστα ανά
 * μέρα και οι κενές μέρες κρύβονται.
 */
@media (max-width: 600px) {

	.nsev-cal-names {
		display: none;
	}

	.nsev-cal-grid {
		grid-template-columns: 1fr;
	}

	.nsev-cell {
		min-height: 0;
		padding: 10px 12px;
	}

	.nsev-cell.is-empty,
	.nsev-cell.is-out {
		display: none;
	}

	.nsev-cell-day {
		display: none;
	}

	.nsev-cell-full {
		display: block;
	}

	.nsev-pill {
		white-space: normal;
		font-size: 13px;
	}
}

/* ---------- Σελίδα εκδήλωσης ---------- */

.nsev-back {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 13px;
	text-decoration: none;
	color: var(--nsev-muted);
}

.nsev-single-body {
	padding: 16px 2px 0;
}

.nsev-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.nsev-chip {
	padding: 3px 9px;
	border-radius: 10px;
	background: #f1f3f5;
	font-size: 12px;
	color: var(--nsev-muted);
}

.nsev-chip.is-cat {
	background: var(--nsev-cat);
	color: #fff;
}

.nsev-single-title {
	margin: 0 0 4px;
	font-size: 22px;
}

.nsev-single-owner {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--nsev-muted);
}

.nsev-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.nsev-fact {
	padding: 12px;
	border-radius: 10px;
	background: #f7f8f9;
}

.nsev-fact-l {
	display: block;
	font-size: 12px;
	color: var(--nsev-muted);
	margin-bottom: 2px;
}

.nsev-fact-v {
	display: block;
	font-size: 14px;
}

.nsev-desc {
	margin: 16px 0;
	line-height: 1.7;
}

.nsev-rsvp {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 14px 0;
	border-top: 1px solid var(--nsev-line);
}

.nsev-state {
	font-size: 13px;
	color: var(--nsev-cat);
}

.nsev-guest-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nsev-guest {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 5px;
	border: 1px solid var(--nsev-line);
	border-radius: 20px;
	font-size: 13px;
}

.nsev-guest img {
	border-radius: 50%;
}

.nsev-manage {
	margin-top: 20px;
	padding: 14px;
	border: 1px solid var(--nsev-line);
	border-radius: 12px;
}

.nsev-manage-row,
.nsev-inline-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.nsev-manage-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--nsev-line);
}

.nsev-inline-form input[type="text"] {
	padding: 8px 10px;
	border: 1px solid var(--nsev-line);
	border-radius: 8px;
	font-size: 14px;
}

/* ---------- Φόρμα ---------- */

.nsev-form {
	max-width: 720px;
}

/*
 * Το θέμα δίνει στα label δικό του display και πλάτος με μεγαλύτερη
 * ειδικότητα, οπότε τα πεδία μαζεύονταν στο πλάτος του input και τα
 * checkbox κολλούσαν δίπλα-δίπλα. Ανεβάζουμε την ειδικότητα αντί για
 * !important, ώστε να παραμένει παρακάμψιμο από στυλ του site.
 */
.nsev-wrap .nsev-form .nsev-field,
.nsev-wrap .nsev-form .nsev-check {
	display: block;
	width: 100%;
	float: none;
	max-width: none;
}

/*
 * Τα φίλτρα δεν παίρνουν το width: 100% της φόρμας — μοιράζονται τη σειρά.
 * Το flex-basis δίνει το μέτρο τους και η αναζήτηση κρατά ό,τι περισσεύει.
 */
.nsev-wrap .nsev-filters .nsev-filter {
	display: flex;
	flex: 0 1 165px;
	width: auto;
	float: none;
	max-width: none;
}

.nsev-wrap .nsev-filters .nsev-filter-wide {
	flex: 1 1 220px;
}

.nsev-wrap .nsev-form .nsev-check-inline {
	display: inline-block;
	width: auto;
	margin-right: 14px;
}

.nsev-wrap .nsev-form input[type="text"],
.nsev-wrap .nsev-form input[type="url"],
.nsev-wrap .nsev-form input[type="number"],
.nsev-wrap .nsev-form input[type="date"],
.nsev-wrap .nsev-form input[type="datetime-local"],
.nsev-wrap .nsev-form select,
.nsev-wrap .nsev-form textarea {
	width: 100%;
	max-width: none;
}

.nsev-wrap .nsev-form input[type="checkbox"],
.nsev-wrap .nsev-form input[type="file"] {
	width: auto;
}

.nsev-field {
	display: block;
	margin-bottom: 14px;
}

.nsev-field > span,
.nsev-field-label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	color: var(--nsev-muted);
}

.nsev-field input[type="text"],
.nsev-field input[type="url"],
.nsev-field input[type="number"],
.nsev-field input[type="date"],
.nsev-field input[type="datetime-local"],
.nsev-field select,
.nsev-field textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--nsev-line);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}

.nsev-row2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.nsev-check {
	display: block;
	margin-bottom: 12px;
	font-size: 14px;
}

.nsev-check-inline {
	display: inline-block;
	margin-right: 14px;
}

.nsev-weekdays {
	margin-bottom: 12px;
}

.nsev-repeat {
	padding: 12px 14px;
	margin-bottom: 14px;
	border: 1px solid var(--nsev-line);
	border-radius: 10px;
}

.nsev-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

.nsev-more {
	margin-top: 16px;
	text-align: center;
}

/* ---------- Φίλτρο ημερολογίου ---------- */

.nsev-calfilter {
	margin-left: auto;
}

.nsev-calfilter select {
	padding: 8px 10px;
	border: 1px solid var(--nsev-line);
	border-radius: 8px;
	font-size: 14px;
}

/* ---------- Φωτογραφίες ---------- */

.nsev-h4 {
	margin: 16px 0 8px;
	font-size: 14px;
}

.nsev-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.nsev-shot {
	position: relative;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f3f5;
}

.nsev-shot img {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.nsev-shot form {
	position: absolute;
	top: 6px;
	right: 6px;
	margin: 0;
}

.nsev-shot-del {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.nsev-photo-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

/* ---------- Συνδιοργανωτές ---------- */

.nsev-cohosts {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--nsev-line);
}

.nsev-cohosts input[type="text"] {
	padding: 8px 10px;
	border: 1px solid var(--nsev-line);
	border-radius: 8px;
	font-size: 14px;
}

.nsev-live {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--nsev-cat);
}

/* ---------- Ανάσα στη φόρμα ---------- */

/*
 * Μετά από τσεκ, το επόμενο πεδίο κολλούσε πάνω τους και έμοιαζε να ανήκει
 * στην ίδια ομάδα. Οι ενότητες χρειάζονται ορατό κενό, όχι μόνο σειρά.
 */
.nsev-wrap .nsev-form .nsev-check + .nsev-field,
.nsev-wrap .nsev-form .nsev-check + .nsev-row2,
.nsev-wrap .nsev-form .nsev-check + .nsev-repeat {
	margin-top: 20px;
}

.nsev-wrap .nsev-form .nsev-check {
	margin-bottom: 10px;
	line-height: 1.5;
}

.nsev-wrap .nsev-form input[type="file"] {
	margin-top: 2px;
	padding: 6px 0;
}

/* Η βοηθητική γραμμή ανήκει στο πεδίο από πάνω, όχι στο επόμενο. */
.nsev-wrap .nsev-form .nsev-field + .nsev-muted {
	margin: -8px 0 18px;
}

.nsev-wrap .nsev-form .nsev-repeat {
	margin-top: 18px;
}

/* Μία μόνη στήλη σε σειρά δύο: κρατάει το μισό πλάτος αντί να τεντώνεται. */
.nsev-wrap .nsev-row2-half {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {

	.nsev-wrap .nsev-row2-half {
		grid-template-columns: 1fr;
	}
}

/* ---------- Ημερομηνία και ώρα ---------- */

.nsev-dt-row {
	display: flex;
	gap: 8px;
}

.nsev-wrap .nsev-form .nsev-dt-date {
	flex: 1;
}

.nsev-wrap .nsev-form .nsev-dt-time {
	width: 96px;
	flex: 0 0 96px;
	text-align: center;
}

/*
 * Τα πλαίσια ζουν στο body, όχι μέσα στη φόρμα: αλλιώς τα έκοβε το
 * overflow του θέματος. Γι' αυτό το z-index είναι ψηλά.
 */
.nsev-pop {
	position: absolute;
	z-index: 99995;
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
	padding: 10px;
	font-size: 14px;
	color: #1f2328;
}

.nsev-pop-cal {
	width: 268px;
}

.nsev-pop-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.nsev-pop-title {
	flex: 1;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
}

.nsev-pop-nav {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid #e6e8eb;
	border-radius: 7px;
	background: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.nsev-pop-names {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 4px;
	font-size: 11px;
	color: #6b7280;
	text-align: center;
}

.nsev-pop-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.nsev-pop-day {
	padding: 6px 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font-size: 13px;
	font-family: inherit;
	color: inherit;
	cursor: pointer;
}

.nsev-pop-day:hover {
	background: #f1f3f5;
}

.nsev-pop-day.is-today {
	box-shadow: inset 0 0 0 1px var(--nsev-primary, #1d9e75);
}

.nsev-pop-day.is-chosen {
	background: var(--nsev-primary, #1d9e75);
	color: #fff;
}

.nsev-pop-foot {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e6e8eb;
}

.nsev-pop-foot button {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid #e6e8eb;
	border-radius: 7px;
	background: #fff;
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
}

.nsev-pop-time {
	width: 132px;
	max-height: 240px;
	overflow-y: auto;
	padding: 6px;
}

.nsev-pop-time-item {
	display: block;
	width: 100%;
	padding: 6px 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font-size: 13px;
	font-family: inherit;
	color: inherit;
	text-align: center;
	cursor: pointer;
}

.nsev-pop-time-item:hover {
	background: #f1f3f5;
}

.nsev-pop-time-item.is-chosen {
	background: var(--nsev-primary, #1d9e75);
	color: #fff;
}

/* ---------- Προεπισκόπηση εξωφύλλου ---------- */

.nsev-cover-preview {
	margin: 2px 0 8px;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f3f5;
	max-width: 320px;
}

.nsev-cover-preview img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}
