/* PTA Tools — shared event styles
 *
 * Loaded by every surface that may render an event (single-event
 * template, /events/ archive, calendar shortcodes). Contains:
 *   - .pta-join-meeting button (Teams / Zoom / etc.)
 *   - .pta-events-card layout used by [azure_calendar_events]
 */

/* ============================================================
   Join meeting button — used on single event + archive list +
   events-list shortcode card.
   ============================================================ */

.pta-join-meeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #4338ca;
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1px solid #4338ca;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    cursor: pointer;
    max-width: 100%;
}
.pta-join-meeting:hover,
.pta-join-meeting:focus {
    background: #3730a3;
    border-color: #3730a3;
    color: #ffffff !important;
    text-decoration: none !important;
}
.pta-join-meeting:active {
    transform: translateY(1px);
}
.pta-join-meeting-icon {
    font-size: 18px;
    line-height: 1;
    filter: grayscale(1) brightness(2.5);
}
.pta-join-meeting-label {
    flex: 0 1 auto;
}
.pta-join-meeting-provider {
    flex: 0 1 auto;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Block variant: full-width hero button on the single-event view */
.pta-join-meeting--block {
    display: flex;
    width: 100%;
    max-width: 420px;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 6px;
    justify-content: flex-start;
}
.pta-join-meeting--block .pta-join-meeting-icon {
    font-size: 22px;
}
.pta-join-meeting--block .pta-join-meeting-provider {
    margin-left: auto;
}

/* ============================================================
   [azure_calendar_events] card grid (pta_event-backed)
   ============================================================ */

.pta-events-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.pta-events-card {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pta-events-card:hover {
    border-color: #4338ca;
    box-shadow: 0 2px 10px rgba(67, 56, 202, 0.08);
}
.pta-events-card-link {
    display: flex;
    flex: 1 1 320px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.pta-events-card-link:hover {
    text-decoration: none;
    color: inherit;
}
.pta-events-card-thumb {
    flex: 0 0 140px;
    min-height: 100px;
    background-color: #ede9fe;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.pta-events-card-body {
    flex: 1 1 auto;
    padding: 12px 16px;
    min-width: 0;
}
.pta-events-card-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #4338ca;
}
.pta-events-card-when {
    margin: 0 0 2px;
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}
.pta-events-card-venue {
    margin: 0 0 4px;
    font-size: 13px;
    color: #4b5563;
}
.pta-events-card-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: #374151;
}
.pta-events-card-join {
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

@media (max-width: 560px) {
    .pta-events-card {
        flex-direction: column;
    }
    .pta-events-card-link {
        flex-direction: column;
    }
    .pta-events-card-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 140px;
        min-height: 0;
    }
    .pta-events-card-join {
        border-top: 1px solid #f3f4f6;
        width: 100%;
        justify-content: center;
    }
    .pta-join-meeting {
        width: 100%;
        justify-content: center;
    }
}
