/* 24 Events Lite — Frontend Styles
   These are intentionally minimal. Override in your theme. */

/* ── Event list ──────────────────────────────────────────────────────────────── */
.tel-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tel-event-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.tel-event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.tel-event-card .tel-event-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tel-event-card-body {
    padding: 16px;
}

.tel-event-title {
    font-size: 1.1em;
    margin: 0 0 8px;
}

.tel-event-title a {
    text-decoration: none;
    color: inherit;
}

.tel-event-date,
.tel-event-venue,
.tel-event-price {
    margin: 4px 0;
    font-size: 0.9em;
    color: #555;
}

/* ── Status badges ────────────────────────────────────────────────────────────── */
.tel-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tel-status-selling_fast { background: #fff3cd; color: #856404; }
.tel-status-sold_out     { background: #f8d7da; color: #721c24; }
.tel-status-cancelled    { background: #e2e3e5; color: #383d41; }
.tel-status-postponed    { background: #d1ecf1; color: #0c5460; }
.tel-status-free         { background: #d4edda; color: #155724; }
.tel-status-new          { background: #cce5ff; color: #004085; }

/* ── Single event ─────────────────────────────────────────────────────────────── */
.tel-event-single {
    max-width: 800px;
    margin: 0 auto;
}

.tel-event-single-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.tel-event-single-title {
    font-size: 1.8em;
    margin-bottom: 16px;
}

.tel-event-single-date,
.tel-event-single-venue,
.tel-event-single-price,
.tel-event-single-organiser {
    margin: 8px 0;
    font-size: 1em;
}

.tel-booking-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 16px;
    transition: background 0.2s;
}

.tel-booking-btn:hover {
    background: #005a87;
    color: #fff;
}

.tel-event-single-description {
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

/* ── Calendar ─────────────────────────────────────────────────────────────────── */
.tel-calendar {
    overflow-x: auto;
}

.tel-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1em;
}

.tel-calendar-nav a {
    text-decoration: none;
    color: #0073aa;
}

.tel-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tel-calendar-table th {
    background: #f5f5f5;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.85em;
    border: 1px solid #e2e8f0;
}

.tel-calendar-table td {
    vertical-align: top;
    padding: 6px;
    border: 1px solid #e2e8f0;
    min-height: 80px;
    font-size: 0.85em;
}

.tel-cal-empty {
    background: #fafafa;
}

.tel-cal-today .tel-cal-day-num {
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tel-cal-has-events {
    background: #f0f8ff;
}

.tel-cal-events {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.tel-cal-events li {
    margin-bottom: 2px;
}

.tel-cal-events a {
    font-size: 0.8em;
    color: #0073aa;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Submission form ──────────────────────────────────────────────────────────── */
.tel-submission-form {
    max-width: 700px;
}

.tel-submission-form input[type="text"],
.tel-submission-form input[type="email"],
.tel-submission-form input[type="tel"],
.tel-submission-form input[type="url"],
.tel-submission-form input[type="number"],
.tel-submission-form input[type="datetime-local"],
.tel-submission-form textarea,
.tel-submission-form select {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.tel-submission-form textarea {
    max-width: 700px;
}

.tel-no-events {
    color: #666;
    font-style: italic;
}
