/**
 * GMK Region Bayreuth API - Frontend Styles
 * Styles for event displays: list, detail, highlighted, featured, ticker
 */

/* ==========================================================================
   Event Filters
   ========================================================================== */

.gmk-event-filters {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--secondary);
}

.gmk-event-filters .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.gmk-event-filters .filter-item {
    flex: 1;
    min-width: 200px;
}

.gmk-event-filters .filter-item label {
    color: #FFF;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.gmk-event-filters .filter-item select,
.gmk-event-filters .filter-item input[type="date"] {
    font-family: 'Barlow', Arial, sans-serif;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #FFF;
    font-size: 1rem;
}

.gmk-event-filters .filter-submit {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-submit .btn-primary:before {
    border: 1px solid #FFF;
}

/* ==========================================================================
   Event List Cards
   ========================================================================== */

.list-news-single {
    padding: 0;
    position: relative;
    margin: 0;
}

.list-news-single a {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.eventdate-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.5rem;
    background-color: #333;
    color: #fff;
    text-align: center;
}

.eventdate-list .date {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.eventdate-list .month {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.eventlistcontent {
    flex: 1;
}

.eventtitle {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.event-location,
.event-time {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.morerow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.readmore {
    font-weight: 600;
    color: #000;
}

.iconarrow svg {
    width: 24px;
    height: 24px;
}

.event-count {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #666;
}

.no-events {
    padding: 2rem;
    text-align: center;
    color: #999;
}

/* ==========================================================================
   Event Detail Page
   ========================================================================== */

.event-hero-inner {
    position: relative;
}

.event-hero-bg {
    height: 90vh;
}

.event-hero-bg img {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}

.event-hero-content {
    background-color: #FFF;
    min-height: 250px;
    position: relative;
    top: -250px;
    width: initial;
}

.event-hero-content h1 {
    color: var(--black);
    font-size: 3rem;
    font-weight: 700;
    margin: 25px 0;
    text-transform: none;
    line-height: 1.2;
}

.event-hero-content-header,
.event-hero-badges {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.event-hero-badges {
    justify-content: flex-start;
    gap: 15px;
}

.share-buttons-wrap {
    gap: 10px;
}

.share-buttons-wrap a {
    background-color: #000;
    height: 35px;
    padding: 7.5px;
    transition: background-color 0.25s;
    width: 35px;
}

.share-buttons-wrap a:hover {
    background-color: var(--secondary);
}

.share-buttons-wrap a svg {
    height: 100%;
    width: 100%;
}

.event-back-link {
    color: var(--black);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-main-container p {
    color: var(--black);
}

.image-copyright {
    font-size: 14px;
    margin: 0!important;
}

.event-main-container {
    margin-top: -250px!important;
}

.event-main-container hr {
    all: unset;
    background-color: var(--black);
    display: block;
    height: 4px;
    margin: 50px 0;
}

.event-main-container h2 {
    font-size: 28px;
    margin-bottom: 2rem;
    text-rendering: geometricPrecision;
}

.event-main-container h3 {
    font-size: 22px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.event-detail-container .container {
    padding: 30px;
}

.event-detail-container .no-padding {
    padding-bottom: 0;
}

.first-section {
    margin-top: -250px!important;
}

.event-infosection {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.event-infosection + .event-infosection {
    margin-top: 50px;
}

.event-infosection p {
    color: var(--black);
}

.event-infosection-block {
    flex: 0 1 calc(100% / 2 - 50px);
    max-width: calc(100% / 2 - 50px);
    padding: 0px 65px;
    position: relative;
}

.event-infosection-full {
    padding: 0px 65px;
    position: relative;
}

.event-infosection-block > svg,
.event-infosection-full > svg {
    background-color: var(--secondary);
    height: 50px;
    left: 0;
    padding: 10px;
    position: absolute;
    top: 2.5px;
    width: 50px;
}

.event-main-container svg polygon,
.event-main-container svg path {
    fill: #FFF;
}

.organizer-contact a {
    text-decoration: none;
}

.event-dates-table tr {
    display: block;
    padding: 5px 0;
}

.event-dates-table th {
    font-size: 18px;
}

.event-dates-table td {
    padding: 0 15px;
}

.price-description {
    margin: 15px 0;
}

.tickets-button {
    display: flex;
    margin: 15px 0;
}

.tickets-button a {
    align-items: center;
    display: flex;
    font-weight: 700;
    gap: 15px;
    text-rendering: geometricPrecision;
}

.tickets-button a svg {
    height: 20px;
    width: 20px;
    z-index: 2;
}

.image-copyright {
    margin-top: 0.5rem;
    color: var(--black);
    text-align: right;
}

.event-description,
.event-additional-text {
    margin-bottom: 25px;
}

.event-dates-section h2 {
    margin-bottom: 1rem;
}

.event-categories-section {
    margin-bottom: 1.5rem;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.tag-item {
    background-color: var(--primary);
    color: #FFF;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 20px;
    text-rendering: geometricPrecision;
}

.info-box {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f5f5f5;
}

.info-box h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.info-box p {
    margin: 0.5rem 0;
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.location-name,
.organizer-name {
    margin-bottom: 0.5rem;
}

.organizer-contact {
    margin-top: 0.75rem;
}

.organizer-website a {
    text-decoration: none;
}

.organizer-website a:hover {
    text-decoration: underline;
}

.status-badge {
    border-radius: 40px;
    color: #000;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 15px 30px;
    position: relative;
    text-transform: uppercase;
    transition: var(--short);
    text-rendering: geometricPrecision;
}

.status-badge.featured {
    background-color: #ffd700;
}

.status-badge.highlighted {
    background-color: var(--primary);
    color: #FFF;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .event-detail-content {
        grid-template-columns: 1fr;
    }

    .event-sidebar {
        position: static;
    }

    .gmk-event-filters .filter-item {
        min-width: 150px;
    }

    .event-hero-badges {
        flex-wrap: wrap;
    }

    .event-detail-container .container {
        padding: 30px 20px;
    }

    .event-infosection-block svg, .event-infosection-full svg {
        margin-bottom: 5px;
        position: static;
    }

    .event-hero-content h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .event-infosection-block,
    .event-description,
    .event-infosection-full {
        padding: 0;
    }

    .event-infosection {
        flex-wrap: wrap;
    }

    .event-infosection-block {
        flex: initial;
        max-width: 100%;
        width: 100%;
    }

    .share-buttons-wrap {
        flex-direction: row!important;
        margin: 25px 0;
    }

}

@media (max-width: 768px) {
    .event-title {
        font-size: 2rem;
    }

    .gmk-event-filters .filter-row {
        flex-direction: column;
    }

    .gmk-event-filters .filter-item {
        width: 100%;
    }

    .ticker-content {
        animation-duration: 40s;
    }
}

@media (max-width: 576px) {
    .event-title {
        font-size: 1.5rem;
    }

    .info-box {
        padding: 1rem;
    }

    .eventslidecontent {
        padding: 1rem;
    }
}
