/* 메인페이지 v2 카드 디자인 개선 (2026-05-19) */
/* .main-class--v2 컨텍스트 내에서만 스타일 적용하여 기존 스타일 영향 없음 */

/* 카드 전체 - 라운드 + 그림자 */
.main-class--v2 .class__item-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
    background: #fff;
}

/* 이미지 상단만 라운드 */
.main-class--v2 .class__item-main .thumb img {
    border-radius: 8px 8px 0 0;
    width: 155px;
    height: 103px;
}

/* 카드 정보 영역 패딩 */
.main-class--v2 .class__item-main .link {
    display: block;
}

/* 카테고리 → 컬러 배지 */
.main-class--v2 .cate--badge {
    display: inline-block;
    margin: 8px 8px 4px;
    padding: 2px 8px;
    background: #EEF3FF;
    color: #3677f6;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
    line-height: 1.5;
}

/* 모임 이름 개선 */
.main-class--v2 .class__item-main .title {
    padding: 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 인원/지역 정보 영역 */
.main-class--v2 .class__item-main .loc-info {
    padding: 0 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* 인원 수 */
.main-class--v2 .class__item-main .loc-info .members {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #8D92A3;
    background: none;
    padding: 0;
    letter-spacing: 0;
    flex-shrink: 0;
}

/* 소규모 모임 표시 (10명 이하) */
.main-class--v2 .class__item-main .loc-info .members--small {
    display: inline-block;
    font-size: 11px;
    color: #adb5bd;
    font-style: italic;
    background: none;
    padding: 0;
    letter-spacing: 0;
    flex-shrink: 0;
}

/* 지역 */
.main-class--v2 .class__item-main .loc-info .location {
    font-size: 12px;
    color: #8D92A3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 추천 섹션 그룹 */
.browse-group { margin-top: 16px; }
.browse-group__header { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 10px; }
.browse-group__label { font-size: 15px; font-weight: 600; color: #333; }
.browse-group__more { font-size: 13px; color: #8D92A3; }
.browse-group__more:after { content: ""; display: inline-block; width: 6px; height: 10px; background-position: -86px -45px; margin-left: 4px; vertical-align: middle; }

/* v2 카드 box-shadow가 overflow:hidden에 잘리지 않도록 상하 여백 확보 */
.main-class--v2 .main-swipe__cont {
    padding-top: 6px;
    padding-bottom: 12px;
}

/* 섹션 카드 간격 유지 */
.main-class--v2.main-class__new .main-swipe__cont + .main-swipe__cont {
    padding-top: 16px;
}

/* 신규 배지 위치 (라운드 카드에 맞게 조정) */
.main-class--v2 [class^=class__item-] .new__badge {
    top: 8px;
    left: 8px;
    border-radius: 6px;
}

/* =============================================
   모임 시작하기 섹션 (배너 아래)
   ============================================= */
.main-start-section {
    margin: 16px 16px 24px;
    background: #fff;
    border-radius: 20px;
    padding: 22px 18px 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.main-start__title {
    font-size: 16px;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    margin-bottom: 2px;
}

.main-start__title strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 18px;
}


/* 그리드 영역 */
.main-start__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
}

/* 큰 파란 버튼 - 좌측 2행 차지 */
.main-start__grid-main {
    grid-row: span 2;
    background: linear-gradient(145deg, #4a8af8 0%, #3677f6 55%, #2563eb 100%);
    border-radius: 16px;
    padding: 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 160px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* 파란 버튼 장식 원 */
.main-start__grid-main::before {
    content: '';
    position: absolute;
    top: -24px;
    right: -24px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.main-start__grid-main::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: -16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.main-start__grid-main-plus {
    font-size: 36px;
    font-weight: 200;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.main-start__grid-main-label {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* 작은 카테고리 카드 (a/button 공통) */
.main-start__grid-item {
    background: #f5f6f8;
    border-radius: 14px;
    padding: 12px 10px 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* button 태그 기본 스타일 리셋 */
    border: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.main-start__grid-plus {
    font-size: 13px;
    color: #aab0be;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 6px;
}

/* 카테고리명 - 굵고 진하게 */
.main-start__grid-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    /* 이모지 영역과 겹치지 않도록 우측 공간 확보 */
    padding-right: 38px;
}

/* "모임 만들기" 서브텍스트 */
.main-start__grid-sub {
    font-size: 11px;
    font-weight: 400;
    color: #8D92A3;
    line-height: 1;
    margin-top: 2px;
}

.main-start__grid-emoji {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.main-start__grid-emoji-text {
    position: absolute;
    right: 8px;
    bottom: 6px;
    font-size: 28px;
    line-height: 1;
}

.main__footer_logo {
    width: 84px;
    height: 19px;
}

/* 배너 페이지네이션 버튼 가시성 개선 — 기본값(rgba 0,0,0,0.1)이 밝은 배너에서 안 보임 */
#topMainBanner .main-banner__pagination {
    background: rgba(0, 0, 0, 0.4);
}

/* 메인페이지 container-klubo의 전역 padding-bottom(82px) 무효화
   footer가 #kluboContents 밖에 있으므로 안전하게 0으로 덮어씀 */
#kluboContents {
    padding-bottom: 0;
}

/* 내 주변 모임 섹션 - 위치 기반 영역 배경 강조 */
#main-nearby-teams {
    background: #F0F6FF;
    padding: 12px 0 20px;
}

/* 새로운 모임 섹션 - 상단 8px 구분선으로 영역 전환 신호 */
.main-grid.main-class__new {
    margin-top: 0;
    padding-top: 24px;
    border-top: 8px solid #F4F5F7;
}
