/* ============================================
   사용자 이벤트 목록 — 카드 그리드
   브랜드 컬러: #2DD4A8
   클릭 시 상세 이동
   ============================================ */

.event-container {
    max-width: 1080px;
}

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.event-card {
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.event-card-clickable {
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.event-card-clickable:hover {
    border-color: #2DD4A8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.event-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: #f3f4f6;
}

.event-card-img-placeholder {
    width: 100%;
    height: 160px;
    background: #f3f4f6;
}

.event-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.event-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-card-summary {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-card-period {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

/* 페이지네이션 (content.css 와 톤 맞춤) */
.content-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.content-pagination .page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.content-pagination .page-btn:hover:not(:disabled) {
    border-color: #2DD4A8;
    color: #2DD4A8;
}

.content-pagination .page-btn.active {
    background: #2DD4A8;
    border-color: #2DD4A8;
    color: #fff;
    font-weight: 600;
}

.content-pagination .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .event-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .event-card-grid {
        grid-template-columns: 1fr;
    }

    .event-card-img,
    .event-card-img-placeholder {
        height: 180px;
    }
}
