/* ===== Event Manager - stiluri front-end ===== */

.evm-empty {
    padding: 1rem;
    background: #f6f7f8;
    border-radius: 6px;
    color: #555;
}

/* ---- Grila de evenimente ---- */
.evm-events-grid {
    display: grid;
    gap: 24px;
    margin: 1.5rem 0;
}
.evm-cols-1 { grid-template-columns: 1fr; }
.evm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.evm-cols-3 { grid-template-columns: repeat(3, 1fr); }
.evm-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .evm-cols-3, .evm-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .evm-events-grid { grid-template-columns: 1fr; }
}

.evm-event-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.evm-event-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.evm-card-link { text-decoration: none; color: inherit; display: block; }
.evm-card-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.evm-card-body { padding: 16px; }
.evm-card-date {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 6px;
}
.evm-card-title { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.3; }
.evm-card-loc { display: block; font-size: .85rem; color: #6b7280; margin-bottom: 8px; }
.evm-card-excerpt { font-size: .9rem; color: #4b5563; margin: 0; }

/* ---- Detalii eveniment ---- */
.evm-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 1.5rem 0;
}
.evm-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
.evm-detail-icon { font-size: 1.1rem; }
.evm-detail-text { color: #374151; }

/* ---- Events grouped by category ---- */
.evm-by-category { margin: 1.5rem 0; }
.evm-cat-group { margin-bottom: 3rem; }
.evm-cat-title {
    font-size: 1.5rem;
    margin: 0 0 .25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #e5e7eb;
}
.evm-cat-desc {
    color: #6b7280;
    margin: 0 0 1.25rem;
    font-size: .95rem;
}
.evm-cat-group .evm-events-grid { margin-top: 1.25rem; }

/* ---- Upcoming events widget (homepage) ---- */
.evm-upcoming { margin: 1.5rem 0; }
.evm-upcoming-title { margin-bottom: 1rem; }
.evm-upcoming-list {
    display: grid;
    gap: 12px;
}
.evm-upcoming-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.evm-upcoming-info { flex: 1; min-width: 220px; }
.evm-upcoming-name { margin: 0 0 6px; font-size: 1.1rem; }
.evm-upcoming-name a { text-decoration: none; color: #111827; }
.evm-upcoming-name a:hover { color: #2563eb; }
.evm-upcoming-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: 10px;
    font-size: .9rem;
    color: #4b5563;
}
.evm-upcoming-date { font-weight: 600; color: #2563eb; }
.evm-upcoming-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
}
.evm-upcoming-btn:hover { background: #1d4ed8; color: #fff; }

@media (max-width: 600px) {
    .evm-upcoming-item { flex-direction: column; align-items: stretch; }
    .evm-upcoming-btn { text-align: center; }
}

/* ---- Sessions (multiple dates) — grouped by month/year ---- */
.evm-sessions { margin: 2rem 0; }
.evm-sessions-heading { margin-bottom: 1.25rem; }
.evm-sessions-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.evm-session-month {
    margin: 0 0 .5rem;
    font-size: .95rem;
    color: #111827;
    padding-bottom: .3rem;
    border-bottom: 1px solid #e5e7eb;
}
.evm-session-cards {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.evm-session-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: .9rem;
}
.evm-session-card-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}
.evm-session-card-date { font-weight: 600; color: #111827; }
.evm-session-card-loc { color: #4b5563; }
.evm-session-card-seats { font-size: .8rem; color: #2563eb; font-weight: 600; }
.evm-session-register {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.evm-session-register:hover { background: #1d4ed8; }
.evm-session-card-full { opacity: .7; }
.evm-session-card-soldout {
    color: #b91c1c;
    font-weight: 600;
    font-size: .8rem;
}

@media (max-width: 600px) {
    .evm-session-card { flex-direction: column; align-items: stretch; }
    .evm-session-register { text-align: center; }
}

/* ---- Program ---- */
.evm-schedule { margin: 2rem 0; }
.evm-schedule-heading { margin-bottom: 1rem; }
.evm-schedule-day {
    margin-bottom: 1.5rem;
    border-left: 3px solid #2563eb;
    padding-left: 18px;
}
.evm-schedule-day-title {
    font-size: 1.1rem;
    color: #1d4ed8;
    margin: 0 0 .75rem;
}
.evm-schedule-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}
.evm-schedule-item:last-child { border-bottom: none; }
.evm-schedule-item-title {
    font-size: 1rem;
    margin: 0 0 4px;
    font-weight: 600;
}
.evm-schedule-item-desc {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

/* ---- Galerie ---- */
.evm-gallery { margin: 2rem 0; }
.evm-gallery-heading { margin-bottom: 1rem; }
.evm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.evm-gallery-link img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    cursor: pointer;
    transition: opacity .2s;
}
.evm-gallery-link:hover img { opacity: .85; }

/* ---- Lightbox ---- */
.evm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.evm-lightbox.evm-open { display: flex; }
.evm-lightbox-img {
    max-width: 92%;
    max-height: 92%;
    border-radius: 6px;
}
.evm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ---- RSVP ---- */
.evm-rsvp {
    margin: 2rem 0;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
.evm-rsvp-heading { margin-top: 0; }
.evm-rsvp-field { margin-bottom: 14px; }
.evm-rsvp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.evm-req { color: #d63638; }
.evm-rsvp-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
}
.evm-rsvp-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}
.evm-rsvp-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
}
/* Rand cu doua campuri (First name / Surname) */
.evm-rsvp-row {
    display: flex;
    gap: 14px;
}
.evm-rsvp-row .evm-rsvp-field { flex: 1; }
@media (max-width: 500px) {
    .evm-rsvp-row { flex-direction: column; gap: 0; }
}
/* Grup de radio */
.evm-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.evm-radio {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}
.evm-radio input { width: auto; margin-top: 3px; }
/* Consimtamant */
.evm-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}
.evm-consent input { width: auto; margin-top: 4px; flex-shrink: 0; }
.evm-consent a { text-decoration: underline; }
/* Text explicativ deasupra formularului */
.evm-rsvp-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 18px;
    font-size: .95rem;
    line-height: 1.6;
    color: #374151;
}
.evm-rsvp-info p:last-child { margin-bottom: 0; }
.evm-rsvp-docs {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    font-size: .85rem;
    color: #6b7280;
}
.evm-docs-label { font-weight: 600; }
.evm-rsvp-docs a {
    color: #2563eb;
    text-decoration: underline;
}
.evm-print-confirm {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #2563eb;
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}
.evm-print-confirm:hover { background: #eff6ff; }
.evm-rsvp-submit {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}
.evm-rsvp-submit:hover { background: #1d4ed8; }
.evm-rsvp-submit:disabled { opacity: .6; cursor: not-allowed; }
.evm-rsvp-full {
    padding: 12px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 6px;
    font-weight: 600;
}
.evm-rsvp-closed {
    padding: 12px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    font-weight: 600;
}
.evm-rsvp-message { margin-bottom: 12px; padding: 0; }
.evm-rsvp-message.evm-success {
    padding: 12px;
    background: #ecfdf5;
    color: #047857;
    border-radius: 6px;
}
.evm-rsvp-message.evm-error {
    padding: 12px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 6px;
}

/* ---- Calendar ---- */
.evm-calendar {
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.evm-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.evm-cal-title { font-weight: 700; font-size: 1.1rem; }
.evm-cal-nav {
    text-decoration: none;
    color: #2563eb;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0 10px;
}
.evm-cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.evm-cal-table th {
    padding: 8px;
    font-size: .8rem;
    color: #6b7280;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}
.evm-cal-table td {
    border: 1px solid #f1f1f1;
    vertical-align: top;
    height: 84px;
    padding: 4px;
    position: relative;
}
.evm-cal-empty { background: #fafafa; }
.evm-day-num { font-size: .8rem; color: #6b7280; }
.evm-today .evm-day-num {
    background: #2563eb;
    color: #fff;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
}
.evm-day-events { margin-top: 4px; }
.evm-day-event {
    display: block;
    font-size: .72rem;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 2px 5px;
    border-radius: 4px;
    margin-bottom: 3px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.evm-day-event:hover { background: #dbeafe; }

@media (max-width: 600px) {
    .evm-cal-table td { height: 60px; font-size: .7rem; }
    .evm-day-event { font-size: .62rem; }
}

/* ---- Single via shortcode ---- */
.evm-single-featured img { width: 100%; border-radius: 10px; margin-bottom: 1rem; }

/* ---- Ascundem autorul si comentariile pe pagina evenimentului ---- */
/* Tintim clasele uzuale folosite de majoritatea temelor. */
.evm-single-event .author,
.evm-single-event .byline,
.evm-single-event .posted-by,
.evm-single-event .post-author,
.evm-single-event .entry-author,
.evm-single-event .author-meta,
.evm-single-event .vcard.author,
.evm-single-event .posted-on .author,
.evm-single-event [rel="author"],
.evm-single-event a[rel="author"] {
    display: none !important;
}
.evm-single-event .comments-area,
.evm-single-event #comments,
.evm-single-event .comment-respond,
.evm-single-event #respond,
.evm-single-event .comments-link {
    display: none !important;
}
/* Data postarii si taxonomiile (Tags / Categories) din meta temei. */
.evm-single-event .posted-on,
.evm-single-event .post-date,
.evm-single-event .entry-date,
.evm-single-event .published,
.evm-single-event time.entry-date,
.evm-single-event .post-meta-date,
.evm-single-event .cat-links,
.evm-single-event .tags-links,
.evm-single-event .post-categories,
.evm-single-event .post-tags,
.evm-single-event .entry-categories,
.evm-single-event .entry-tags,
.evm-single-event .taxonomy-categories,
.evm-single-event .taxonomy-post_tag {
    display: none !important;
}

/* ---- Numaratoare inversa ---- */
.evm-countdown {
    display: flex;
    gap: 14px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.evm-cd-unit {
    background: #111827;
    color: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 72px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.evm-cd-num {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.evm-cd-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .75;
}
.evm-cd-ended {
    background: #f3f4f6;
    color: #374151;
    border-radius: 10px;
    padding: 14px 18px;
    font-weight: 600;
}

/* Varianta compacta pentru carduri */
.evm-countdown-compact {
    gap: 6px;
    margin: 10px 0;
}
.evm-countdown-compact .evm-cd-unit {
    padding: 6px 8px;
    min-width: 44px;
    border-radius: 6px;
    background: #1f2937;
}
.evm-countdown-compact .evm-cd-num { font-size: 1.05rem; }
.evm-countdown-compact .evm-cd-label { font-size: .6rem; }
.evm-countdown-compact .evm-cd-ended {
    padding: 6px 10px;
    font-size: .8rem;
}

/* ---- Arhiva evenimentelor ---- */
.evm-archive-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.evm-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.evm-archive-title {
    font-size: 2rem;
    margin: 0;
}
.evm-archive-filter {
    display: inline-flex;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.evm-filter-btn {
    padding: 9px 20px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s, color .2s;
}
.evm-filter-btn.evm-active {
    background: #2563eb;
    color: #fff;
}
.evm-filter-btn:not(.evm-active):hover {
    background: #f3f4f6;
}

/* ---- Paginare ---- */
.evm-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}
.evm-pagination ul {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.evm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-weight: 600;
}
.evm-pagination .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.evm-pagination a.page-numbers:hover {
    background: #f3f4f6;
}

@media (max-width: 600px) {
    .evm-archive-header { flex-direction: column; align-items: flex-start; }
    .evm-archive-title { font-size: 1.6rem; }
}
