/**
 * OE Események – Frontend stílusok
 *
 * Prefixelt osztálynevekkel a téma-kompatibilitás érdekében.
 * Színek: ÓE sötétkék inspiráció.
 *
 * @package OE_Esemenyek
 */

/* ================================================================
   CSS Változók
   ================================================================ */
:root {
    --oe-blue-dark:    #00288c;
    --oe-blue-primary: #00288c;
    --oe-blue-mid:     #1a3a5c;
    --oe-blue-light:   #00dcdc;
    --oe-accent:       #00288c;
    --oe-accent-light: #60a5fa;
    --oe-white:        #ffffff;
    --oe-gray-50:      #f8fafc;
    --oe-gray-100:     #f1f5f9;
    --oe-gray-200:     #e2e8f0;
    --oe-gray-300:     #cbd5e1;
    --oe-gray-500:     #64748b;
    --oe-gray-700:     #334155;
    --oe-gray-900:     #0f172a;
    --oe-radius:       8px;
    --oe-radius-lg:    12px;
    --oe-shadow-card:  0 4px 12px rgba(0, 0, 0, 0.25),
                       0 0 0 1px rgba(255, 255, 255, 0.05);
    --oe-transition:   0.25s ease;
}

/* ================================================================
   1. KIEMELT ESEMÉNYEK BLOKK (Shortcode)
   ================================================================ */
.oe-featured-events {
padding: 1rem 1.5rem 2rem 1.5rem;
}

.oe-featured-events__inner {
    max-width: 1240px;
    margin: 0 auto;
}

.oe-featured-events__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.oe-featured-events__title {
    color: var(--oe-white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.oe-featured-events__more {
    color: var(--oe-accent-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--oe-transition);
}

.oe-featured-events__more:hover,
.oe-featured-events__more:focus {
    color: var(--oe-white);
}

.oe-featured-events__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.oe-featured-events__empty {
    color: #fff;
    font-size: 1rem;
    text-align: center;
    padding: 2rem 0;
}

/* ================================================================
   2. ESEMÉNYKÁRTYÁK (shortcode grid) – ÓE referencia dizájn
   ================================================================ */
.oe-event-card {
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform var(--oe-transition), box-shadow var(--oe-transition);
    border-top: 2px solid #5bbad5;
    display: flex;
    flex-direction: column;
}

.oe-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(91, 186, 213, 0.15);
}

.oe-event-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.oe-event-card__link:focus-visible {
    outline: 2px solid var(--oe-accent);
    outline-offset: 2px;
}

.oe-event-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #0e1e38;
    flex-shrink: 0;
}

.oe-event-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--oe-transition);
}

.oe-event-card:hover .oe-event-card__image {
    transform: scale(1.04);
}

/* --- Badge: szolid kék, rálog a kép aljáról a cím sávra --- */
.oe-event-card__badge {
    position: relative;
    z-index: 3;
    align-self: flex-end;
    margin-top: -22px;
    margin-right: 10px;
    margin-bottom: -4px;
    background: #00288c;
    color: var(--oe-white);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    line-height: 1;
    text-align: center;
}

/* Egy dátum-oszlop (hónap + nap egymás alatt) */
.oe-badge-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 14px 8px;
}

.oe-badge-col__month {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0px;
    opacity: 0.95;
}

.oe-badge-col__day {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* Kötőjel szeparátor többnapos eltérő hónap esetén */
.oe-badge-sep {
    font-size: 1rem;
    font-weight: 400;
    color: var(--oe-white);
    opacity: 0.55;
    line-height: 1;
    padding: 0;
    align-self: center;
}

/* --- Cím terület: extra padding-top a badge átlógás miatt --- */
.oe-event-card__body {
    padding: 1.1rem 0.85rem 1rem;
    background: #fff;
    flex: 1;
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.oe-event-card__title {
    color: #00288c;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   3. ARCHÍV OLDAL
   ================================================================ */
.oe-archive-wrap {
    background: #fff;
    min-height: 60vh;
}

.oe-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.oe-archive__header {
    margin-bottom: 2rem;
}

.oe-archive__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--oe-gray-900);
    margin: 0 0 0.5rem;
}

.oe-archive__filter-notice {
    font-size: 0.9rem;
    color: var(--oe-gray-500);
    margin: 0;
}

.oe-archive__filter-notice a {
    color: var(--oe-accent);
    text-decoration: none;
}

.oe-archive__filter-notice a:hover {
    text-decoration: underline;
}

.oe-archive__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* --- Fő tartalom --- */
.oe-archive__main {
    min-width: 0;
}

.oe-archive__section {
    margin-bottom: 2.5rem;
}

.oe-archive__section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--oe-gray-900);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--oe-blue-primary);
}

.oe-archive__section--past .oe-archive__section-title {
    color: var(--oe-gray-500);
    border-bottom-color: var(--oe-gray-300);
}

.oe-archive__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oe-archive__empty {
    color: var(--oe-gray-500);
    font-size: 0.95rem;
    padding: 1rem 0;
}

/* ================================================================
   4. LISTA KÁRTYÁK (archív oldal)
   ================================================================ */
.oe-list-card {
    background: var(--oe-white);
    border-radius: var(--oe-radius);
    overflow: hidden;
box-shadow: 0 16px 48px rgba(73, 92, 136, 0.15);;
    transition: box-shadow var(--oe-transition), transform var(--oe-transition);
}

.oe-list-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.oe-list-card--past {
    opacity: 0.7;
}

.oe-list-card--past:hover {
    opacity: 1;
}

.oe-list-card__link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.oe-list-card__link:focus-visible {
    outline: 2px solid var(--oe-accent);
    outline-offset: 2px;
}

.oe-list-card__image-wrap {
    flex: 0 0 160px;
    overflow: hidden;
    background-color: var(--oe-gray-200);
}

.oe-list-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 120px;
}

.oe-list-card__content {
    flex: 1;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.oe-list-card__badge {
    display: inline-block;
    background: var(--oe-accent);
    color: var(--oe-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    line-height: 1.2;
    align-self: flex-start;
    white-space: nowrap;
}

.oe-list-card--past .oe-list-card__badge {
    background: var(--oe-gray-500);
}

.oe-list-card__time {
    font-size: 0.8rem;
    color: var(--oe-gray-500);
}

.oe-list-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--oe-gray-900);
    margin: 0;
    line-height: 1.3;
}

.oe-list-card__location {
    font-size: 0.85rem;
    color: var(--oe-gray-500);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.oe-list-card__icon {
    flex-shrink: 0;
}

.oe-list-card__excerpt {
    font-size: 0.85rem;
    color: var(--oe-gray-500);
    margin: 0.25rem 0 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   5. NAPTÁR (referencia: ÓE naptár design)
   ================================================================ */
.oe-archive__calendar-wrap {
    background: var(--oe-white);
    border-radius: var(--oe-radius-lg);
    overflow: hidden;
  box-shadow: 0 16px 48px rgba(73, 92, 136, 0.15);
}

.oe-calendar {
padding:20px;
}

.oe-calendar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--oe-white);
}

.oe-calendar__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--oe-blue-primary);
    letter-spacing: 0.01em;
}

.oe-calendar__nav {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--oe-blue-primary);
    transition: color var(--oe-transition);
    line-height: 1;
    padding: 0;
    border-radius: 4px;
}

.oe-calendar__nav:hover {
    color: var(--oe-accent);
    background: var(--oe-gray-100);
}

.oe-calendar__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Napnév fejléc: sötétkék háttér, arany alsó csík */
.oe-calendar__table thead tr {
    background: var(--oe-blue-primary);
    border-bottom: 3px solid #d4a843;
}

.oe-calendar__table th {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--oe-white);
    text-transform: uppercase;
    text-align: center;
    padding: 0.6rem 0;
    letter-spacing: 0.06em;
	border-bottom: 3px solid #00dcdc !important;
}

.oe-calendar__table tbody {
    background: var(--oe-white);
}

.oe-calendar__table td {
    text-align: center;
    padding: 0.35rem 0.15rem;
    vertical-align: middle;
}

.oe-calendar__empty {
    /* Üres cella */
}

.oe-calendar__day span,
.oe-calendar__day .oe-calendar__day-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--oe-gray-700);
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    transition: background var(--oe-transition), color var(--oe-transition);
    border: none;
    background: none;
    cursor: default;
    padding: 0;
    font-family: inherit;
    line-height: 1;
}

/* Eseményes nap gombok */
.oe-calendar__day-btn {
    cursor: pointer !important;
    color: var(--oe-accent) !important;
    font-weight: 700 !important;
}

.oe-calendar__day-btn::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--oe-accent);
    border-radius: 50%;
}

.oe-calendar__day-btn:hover {
    background: rgba(59, 130, 246, 0.12);
}

/* Aktív (kiválasztott) nap */
.oe-calendar__day-btn--active {
    background: var(--oe-accent) !important;
    color: var(--oe-white) !important;
}

.oe-calendar__day-btn--active::after {
    background: var(--oe-white);
}

/* Mai nap */
.oe-calendar__day--today > span,
.oe-calendar__day--today > .oe-calendar__day-btn {
    background: var(--oe-accent);
    color: var(--oe-white) !important;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

.oe-calendar__day--today > .oe-calendar__day-btn::after {
    background: var(--oe-white);
}

.oe-calendar__day--today > .oe-calendar__day-btn:hover {
    background: #2563eb;
}

/* Loading state */
.oe-calendar--loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ================================================================
   5b. NAPTÁR ALATTI NAPI ESEMÉNYEK PANEL
   ================================================================ */
.oe-day-panel {
    background: var(--oe-white);
    border-radius: var(--oe-radius-lg);
    padding: 1rem 1.25rem;
  box-shadow: 0 16px 48px rgba(73, 92, 136, 0.15);
    margin-top: 1rem;
}

.oe-day-panel--loading {
    text-align: center;
    color: var(--oe-gray-500);
    font-size: 0.85rem;
}

.oe-day-panel__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--oe-gray-900);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--oe-blue-primary);
}

.oe-day-panel__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--oe-gray-100);
    text-decoration: none;
    color: inherit;
    transition: background var(--oe-transition);
}

.oe-day-panel__item:last-child {
    border-bottom: none;
}

.oe-day-panel__item:hover {
    background: var(--oe-gray-50);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
}

.oe-day-panel__badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--oe-accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.oe-day-panel__time {
    font-size: 0.75rem;
    color: var(--oe-gray-500);
}

.oe-day-panel__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--oe-gray-900);
    line-height: 1.3;
}

.oe-day-panel__empty {
    font-size: 0.85rem;
    color: var(--oe-gray-500);
    margin: 0;
    text-align: center;
    padding: 0.5rem 0;
}

/* --- Kategória lista sidebar --- */
.oe-archive__categories {
    background: var(--oe-white);
    border-radius: var(--oe-radius-lg);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-top: 1.5rem;
}

.oe-archive__categories-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--oe-gray-900);
    margin: 0 0 0.75rem;
}

.oe-archive__categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oe-archive__categories-list li {
    border-top: 1px solid var(--oe-gray-100);
}

.oe-archive__categories-list li:first-child {
    border-top: none;
}

.oe-archive__categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--oe-gray-700);
    text-decoration: none;
    transition: color var(--oe-transition);
}

.oe-archive__categories-list a:hover {
    color: var(--oe-accent);
}

.oe-archive__cat-count {
    color: var(--oe-gray-500);
    font-size: 0.75rem;
}

/* ================================================================
   6. EGYEDI ESEMÉNYOLDAL
   ================================================================ */
.oe-single-wrap {
    background: #fff;
    min-height: 60vh;
}

.oe-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.oe-single__nav {
    margin-bottom: 1.5rem;
}

.oe-single__back {
    font-size: 0.9rem;
    color: var(--oe-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--oe-transition);
}

.oe-single__back:hover {
    color: var(--oe-blue-light);
}

.oe-single__hero {
    position: relative;
    border-radius: var(--oe-radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.oe-single__image {
    width: 100%;
    height: auto;
    display: block;
	box-shadow: 0 16px 48px rgba(73, 92, 136, 0.15);
}

.oe-single__badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--oe-accent);
    color: var(--oe-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    line-height: 1.2;
}

.oe-single__content-wrap {
    background: var(--oe-white);
    border-radius: var(--oe-radius-lg);
    padding: 2rem;
box-shadow: 0 16px 48px rgba(73, 92, 136, 0.15);
}

.oe-single__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--oe-gray-900);
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.oe-single__meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--oe-gray-200);
}

.oe-single__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--oe-gray-700);
}

.oe-single__meta-icon {
    flex-shrink: 0;
    color: var(--oe-accent);
}

.oe-single__meta-categories a {
    color: var(--oe-accent);
    text-decoration: none;
}

.oe-single__meta-categories a:hover {
    text-decoration: underline;
}

.oe-single__body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--oe-gray-700);
}

.oe-single__body p {
    margin-bottom: 1rem;
}

.oe-single__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--oe-radius);
}

/* ================================================================
   7. RESZPONZÍV
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .oe-featured-events__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .oe-archive__layout {
        grid-template-columns: 1fr;
    }

    .oe-archive__sidebar {
        order: -1;
    }
}

/* Mobil */
@media (max-width: 640px) {
    .oe-featured-events {
        padding: 2rem 1rem;
    }

    .oe-featured-events__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .oe-featured-events__title {
        font-size: 1.4rem;
    }

    .oe-archive {
        padding: 1.5rem 1rem;
    }

    .oe-archive__title {
        font-size: 1.5rem;
    }

    .oe-list-card__link {
        flex-direction: column;
    }

    .oe-list-card__image-wrap {
        flex: none;
        aspect-ratio: 16 / 9;
    }

    .oe-single {
        padding: 1.5rem 1rem;
    }

    .oe-single__content-wrap {
        padding: 1.25rem;
    }

    .oe-single__title {
        font-size: 1.4rem;
    }

    .oe-calendar__day span,
    .oe-calendar__day .oe-calendar__day-btn {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    .oe-calendar__table th {
        font-size: 0.65rem;
    }
}
