/* ── Reset ── */
* { box-sizing: border-box; }

/* ── Base ── */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Buttons ── */
.btn-gcal, .btn-copy, .btn-download, .btn-subscribe {
    padding: 9px 16px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.btn-gcal  { background: #4285f4; color: #fff; }
.btn-gcal:hover  { background: #3367d6; }
.btn-copy  { background: #6c757d; color: #fff; }
.btn-copy:hover  { background: #545b62; }
.btn-download { background: #28a745; color: #fff; }
.btn-download:hover { background: #1e7e34; }
.btn-subscribe { background: #17a2b8; color: #fff; }
.btn-subscribe:hover { background: #117a8b; }

/* ── Event items ── */
.event-item {
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}
.event-item:last-child { border-bottom: none; }
.event-item h3 { margin: 0 0 3px; font-size: 15px; color: #2c3e50; font-weight: 600; }
.event-time { margin: 0; font-size: 13px; color: #7f8c8d; }

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f1f1;
}
.pagination button {
    padding: 6px 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.pagination button:hover:not(:disabled) { background: #0056b3; }
.pagination button:disabled { background: #ccc; cursor: not-allowed; }
.pagination span { font-size: 13px; color: #555; }

/* ── Empty state ── */
.empty { color: #999; font-size: 14px; text-align: center; padding: 40px 0; }

/* ── Calendar Deck (shared across index/discover/topics) ── */
.calendar-deck {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.calendar-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border-radius: 14px;
    padding: 19px 22px;
    box-shadow: 0 4px 20px rgba(100, 100, 255, 0.18), 0 0 0 1px rgba(120, 120, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}
.calendar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(100, 100, 255, 0.28), 0 0 0 1px rgba(120, 120, 255, 0.18);
}
.calendar-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #e0e0ff;
    text-decoration: none;
    line-height: 1.3;
}
.calendar-card-title:hover { color: #fff; text-decoration: underline; }
.calendar-card-event {
    font-size: 13px;
    color: #b0b8d0;
    line-height: 1.4;
    flex: 1;
}
.calendar-card-count {
    font-size: 12px;
    color: #8e99b8;
    line-height: 1.3;
}
.calendar-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 7px 12px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-start;
}
.calendar-card-btn:hover { background: #3367d6; text-decoration: none; }
