/**
 * Calendar Plugin — Frontend Styles
 *
 * Any custom styling for the public /calendar page and [calendar] shortcode embeds.
 * Most styling uses Tailwind CSS classes; this file provides extras.
 */

/* Calendar event card hover effect */
.cal-event-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cal-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ── Calendar Embed Shortcode Styles ─────────────────────────────────── */

.cal-embed {
    margin: 1.5rem 0;
    font-family: inherit;
}

.cal-embed-empty p {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px dashed #d1d5db;
}

/* ── List Style ──────────────────────────────────────────────────────── */

.cal-embed-list .cal-embed-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cal-embed-list .cal-embed-item:last-child {
    border-bottom: none;
}

.cal-embed-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.cal-embed-date-main {
    font-weight: 600;
    color: #374151;
}

.cal-embed-date-sep {
    color: #9ca3af;
    margin: 0 0.15rem;
}

.cal-embed-time {
    color: #9ca3af;
    font-size: 0.75rem;
}

.cal-embed-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #111827;
    margin-bottom: 0.2rem;
}

.cal-embed-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.cal-embed-place {
    font-size: 0.8rem;
    color: #6b7280;
}

.cal-embed-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    margin-top: 0.35rem;
}

/* ── Cards Style ─────────────────────────────────────────────────────── */

.cal-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.cal-embed-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.cal-embed-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.cal-embed-card-date {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.cal-embed-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.4rem;
}

.cal-embed-card-time,
.cal-embed-card-place {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

/* ── Compact Style ───────────────────────────────────────────────────── */

.cal-embed-compact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cal-embed-compact-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cal-embed-compact-item:last-child {
    border-bottom: none;
}

.cal-embed-compact-date {
    display: inline-block;
    min-width: 6.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.8rem;
}

.cal-embed-compact-time {
    color: #9ca3af;
    font-size: 0.75rem;
}

.cal-embed-compact-title {
    font-weight: 500;
    color: #111827;
}

.cal-embed-compact-place {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ── Minimal Style ───────────────────────────────────────────────────── */

.cal-embed-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cal-embed-table td {
    padding: 0.4rem 0.75rem 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.cal-embed-table tr:last-child td {
    border-bottom: none;
}

.cal-embed-table-date {
    white-space: nowrap;
    font-weight: 600;
    color: #374151;
    width: 7rem;
    font-size: 0.85rem;
}

.cal-embed-table-title {
    color: #111827;
}

/* ── View All Link ───────────────────────────────────────────────────── */

.cal-embed-link {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.cal-embed-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.cal-embed-link a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}
