/* ==========================================================================
   Eventpage Portal - Base Styles
   Custom Domain Landing Pages for Tickit Organizers

   All colors are driven by CSS Custom Properties set in head.php:
   --ep-primary, --ep-secondary, --ep-accent, --ep-bg, --ep-text
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.eventpage-body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ep-text, #565a5c);
    background-color: var(--ep-bg, #ffffff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--ep-accent, #245D5F);
    line-height: 1.3;
}

a {
    color: var(--ep-primary, #6DC4C7);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--ep-secondary, #B3007D);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */

.ep-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ep-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ep-logo-link {
    display: flex;
    align-items: center;
}

.ep-logo {
    max-height: 50px;
    width: auto;
}

.ep-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ep-accent, #245D5F);
}

.ep-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ep-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ep-text, #565a5c);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ep-nav a:hover {
    color: var(--ep-primary, #6DC4C7);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.ep-main {
    flex: 1;
}

.ep-section {
    width: 100%;
}

.ep-block-title {
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.ep-empty {
    text-align: center;
    padding: 80px 20px;
}

.ep-404 {
    text-align: center;
    padding: 80px 20px;
}

.ep-404 h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ep-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--ep-primary, #6DC4C7);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
}

.ep-btn:hover {
    background-color: var(--ep-secondary, #B3007D);
    color: #fff;
    transform: translateY(-1px);
}

.ep-btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* ==========================================================================
   Hero Block
   ========================================================================== */

.ep-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--ep-accent, #245D5F);
}

.ep-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    pointer-events: none;
}

.ep-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}

.ep-hero-title {
    font-size: 48px;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ep-hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.ep-hero-btn {
    font-size: 16px;
    padding: 14px 40px;
}

/* ==========================================================================
   Text Block
   ========================================================================== */

.ep-block-text {
    padding: 60px 20px;
}

.ep-text-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ep-text-content {
    font-size: 16px;
    line-height: 1.8;
}

.ep-text-content p {
    margin-bottom: 16px;
}

.ep-text-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

/* ==========================================================================
   Events Block
   ========================================================================== */

.ep-events-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ep-events-empty {
    text-align: center;
    font-size: 16px;
    color: #999;
    padding: 40px 0;
}

/* Grid Layout */
.ep-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* List Layout */
.ep-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ep-events-list .ep-event-card {
    flex-direction: row;
    align-items: center;
}

.ep-events-list .ep-event-image {
    width: 200px;
    min-height: 120px;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
}

/* Event Card */
.ep-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.ep-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    color: inherit;
}

.ep-event-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--ep-accent, #245D5F);
}

.ep-event-noimage {
    background: linear-gradient(135deg, var(--ep-primary, #6DC4C7), var(--ep-accent, #245D5F));
}

.ep-event-info {
    padding: 16px 20px;
    flex: 1;
}

.ep-event-name {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--ep-accent, #245D5F);
}

.ep-event-date {
    font-size: 14px;
    color: var(--ep-primary, #6DC4C7);
    font-weight: 600;
    margin-bottom: 4px;
}

.ep-event-datum {
    margin-right: 8px;
}

.ep-event-location {
    font-size: 13px;
    color: #999;
}

.ep-event-action {
    padding: 0 20px 16px;
}

/* ==========================================================================
   Video Block
   ========================================================================== */

.ep-video-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ep-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ep-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ep-video-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #999;
}

/* ==========================================================================
   FAQ Block
   ========================================================================== */

.ep-faq-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

.ep-faq-item {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.ep-faq-question {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    background: #fafafa;
    transition: background 0.2s;
}

.ep-faq-question:hover {
    background: #f0f0f0;
}

.ep-faq-question::-webkit-details-marker {
    display: none;
}

.ep-faq-question::before {
    content: '+';
    display: inline-block;
    width: 20px;
    font-size: 18px;
    color: var(--ep-primary, #6DC4C7);
    transition: transform 0.2s;
}

details[open] .ep-faq-question::before {
    content: '−';
}

.ep-faq-answer {
    padding: 16px 20px;
    line-height: 1.7;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Contact Block
   ========================================================================== */

.ep-contact-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ep-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ep-contact-item {
    font-size: 16px;
}

.ep-contact-item strong {
    display: inline-block;
    width: 80px;
    color: var(--ep-accent, #245D5F);
}

.ep-contact-map {
    margin-top: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.ep-contact-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* ==========================================================================
   News Block
   ========================================================================== */

.ep-news-block {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ep-news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ep-news-item {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.ep-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ep-news-image {
    width: 180px;
    flex-shrink: 0;
}

.ep-news-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.ep-news-content {
    flex: 1;
}

.ep-news-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.ep-news-date {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.ep-news-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* ==========================================================================
   Image Gallery Block
   ========================================================================== */

.ep-gallery-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ep-gallery-grid {
    display: grid;
    gap: 12px;
}

.ep-gallery-item {
    overflow: hidden;
    border-radius: 6px;
}

.ep-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.ep-gallery-item:hover img {
    transform: scale(1.05);
}

.ep-gallery-item figcaption {
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
}

/* ==========================================================================
   HTML Block
   ========================================================================== */

.ep-html-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ep-html-content {
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.ep-footer {
    background: #2a2a2a;
    color: #aaa;
    padding: 30px 0;
    margin-top: auto;
}

.ep-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.ep-footer-text {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.ep-footer-meta {
    font-size: 13px;
}

.ep-footer-meta a {
    color: #ccc;
}

.ep-footer-meta a:hover {
    color: var(--ep-primary, #6DC4C7);
}

.ep-footer-sep {
    margin: 0 8px;
    color: #555;
}

.ep-powered a {
    color: var(--ep-primary, #6DC4C7);
}

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

@media (max-width: 768px) {
    .ep-header-inner {
        height: 60px;
    }

    .ep-logo {
        max-height: 40px;
    }

    .ep-nav {
        gap: 16px;
    }

    .ep-nav a {
        font-size: 12px;
    }

    .ep-hero {
        min-height: 350px;
    }

    .ep-hero-title {
        font-size: 30px;
    }

    .ep-hero-subtitle {
        font-size: 16px;
    }

    .ep-block-title {
        font-size: 22px;
    }

    .ep-events-grid {
        grid-template-columns: 1fr;
    }

    .ep-events-list .ep-event-card {
        flex-direction: column;
    }

    .ep-events-list .ep-event-image {
        width: 100%;
        border-radius: 8px 8px 0 0;
    }

    .ep-text-block {
        padding: 40px 16px;
    }

    .ep-events-block {
        padding: 40px 16px;
    }

    .ep-video-block,
    .ep-faq-block,
    .ep-contact-block,
    .ep-news-block,
    .ep-gallery-block,
    .ep-html-block {
        padding: 40px 16px;
    }

    .ep-news-item {
        flex-direction: column;
    }

    .ep-news-image {
        width: 100%;
    }

    .ep-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .ep-nav {
        gap: 10px;
    }

    .ep-hero {
        min-height: 280px;
    }

    .ep-hero-title {
        font-size: 24px;
    }

    .ep-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}
