/* KPARASPO 사용자 하위 페이지 */

.user-subpage {
    background: #ffffff;
}

.user-subpage .user-main {
    padding-top: 44px;
    padding-bottom: 72px;
}

.user-page-head {
    position: relative;
    margin: 0 0 26px;
    padding: 45px 45px;
    overflow: hidden;
    background-color: #171b34;
    background-image: url('https://dioqaa1kptwcm.cloudfront.net/static/hero-pingpong.jpg');
    background-position: center 40%;
    background-size: cover;
    border-radius: 14px;
    color: #ffffff;
}

.user-page-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 35, 0.66);
    pointer-events: none;
}

.user-page-head > * {
    position: relative;
    z-index: 1;
}

.user-page-label {
    margin: 0 0 3px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.user-page-head .user-page-title {
    margin: 0;
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.24;
}

.user-page-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.user-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.user-page-head .u-btn.is-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.62);
    color: #ffffff;
}

.user-page-head .u-btn.is-ghost:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.user-subpage .u-filter-bar {
    margin-bottom: 18px;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid #e3e5ec;
    border-radius: 0;
    background: transparent;
}

.user-subpage .u-filter-bar label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: #7b8192;
    font-size: 15px;
    font-weight: 700;
}

.user-subpage .u-filter-bar select,
.user-subpage .u-filter-bar input,
.user-subpage .u-search-box input {
    height: 40px;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 15px;
}

.user-subpage .u-filter-bar select.event-select-wide {
    min-width: 360px;
    max-width: min(520px, 100%);
}

.user-subpage .u-tab-filter {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.user-subpage .u-tab-filter button {
    position: relative;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 0;
    background: transparent;
    color: #aaa;
    font-size: 16px;
    font-weight: 600;
}

.user-subpage .u-tab-filter button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 16px;
    background: #ddd;
    transform: translateY(-50%);
}

.user-subpage .u-tab-filter button:first-child {
    padding-left: 0;
}

.user-subpage .u-tab-filter button:last-child::after {
    display: none;
}

.user-subpage .u-tab-filter button:hover,
.user-subpage .u-tab-filter button.is-active {
    background: transparent;
    color: var(--lbp-primary);
}

.user-subpage .u-tab-filter .u-tab-count {
    margin-left: 5px;
    opacity: 1;
}

.user-subpage .tournament-filter-bar {
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 26px;
    padding: 10px 10px 10px 20px;
    background: #ffffff;
    border: 1px solid var(--lbp-border);
    border-radius: 10px;
}

.user-subpage .tournament-filter-bar .u-tab-filter {
    flex: 0 0 auto;
}

.user-subpage .tournament-year-filter {
    flex: 0 0 auto;
    width: 126px;
    min-width: 126px;
    margin-left: auto;
}

.user-subpage .tournament-search-box {
    flex: 0 1 320px;
    width: 320px;
    max-width: 320px;
    margin-left: 0;
}

.user-subpage .t-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.user-subpage .t-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 224px;
    background: #ffffff44;
    border: 1px solid var(--lbp-border);
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.user-subpage .t-card:hover {
    border-color: #ddd;
}

.user-subpage .t-card-accent {
    display: none;
}

.user-subpage .t-card .u-badge.is-in_progress::before {
    display: none;
}

.user-subpage .t-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 28px 22px;
}

.user-subpage .t-card-top {
    display: flex;
    align-items: center;
    min-height: 0;
}

.user-subpage .t-card-top .u-badge {
    width: fit-content;
}

.user-subpage .t-card-name {
    min-height: 0;
    margin: 0;
    color: var(--lbp-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top:-6px;
}

.user-subpage .t-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #4f5b6f;
    font-size: 15px;
}

.user-subpage .t-card-meta-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    align-items: start;
}

.user-subpage .t-card-meta-item strong {
    color: #333;
    font-weight: 700;
    font-size: 18px;
}

.user-subpage .t-card-meta-item span {
    min-width: 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.user-subpage .t-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    position: static;
    width: auto;
    height: 44px;
    margin-top: auto;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--lbp-primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.user-subpage .t-card:hover .t-card-cta {
    background: var(--lbp-primary-hover);
}

.user-subpage .home-empty,
.user-subpage .u-empty {
    grid-column: 1 / -1;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    padding:30px 0;
}

.user-subpage .home-empty-title {
    margin: 0 0 6px;
    color: var(--lbp-text);
    font-size: 17px;
    font-weight: 700;
}

.user-subpage .home-empty-desc {
    margin: 0;
    color: var(--lbp-text-sub);
    font-size: 14px;
}

.user-subpage .u-tbl {
    border-radius: 12px;
    font-size: 15px;
}

.user-subpage .u-tbl th,
.user-subpage .u-tbl td {
    padding: 15px 16px;
    font-size: 15px;
}

.user-subpage .u-tbl thead th {
    background: #171b34;
    color: #ffffff;
    text-align: center;
}

.user-subpage .ranking-table th,
.user-subpage .ranking-table td {
    text-align: center;
}

.notice-filter-bar {
    justify-content: flex-end;
}

.notice-search-field {
    flex: 0 1 25%;
    margin-left: auto;
    min-width: 280px;
    max-width: 360px;
}

.notice-search-field input {
    flex: 1 1 auto;
    min-width: 0;
}

.notice-table {
    table-layout: fixed;
}

.notice-table th:nth-child(1),
.notice-table td:nth-child(1) {
    width: 72px;
}

.notice-table th:nth-child(2),
.notice-table td:nth-child(2) {
    width: auto;
}

.notice-table th:nth-child(3),
.notice-table td:nth-child(3) {
    width: 120px;
    white-space: nowrap;
}

.notice-table th:nth-child(4),
.notice-table td:nth-child(4) {
    width: 82px;
}

.notice-table th:nth-child(5),
.notice-table td:nth-child(5) {
    width: 132px;
}

.notice-table th:nth-child(1),
.notice-table td:nth-child(1),
.notice-table th:nth-child(4),
.notice-table td:nth-child(4),
.notice-table th:nth-child(5),
.notice-table td:nth-child(5) {
    text-align: center;
    white-space: nowrap;
}

.notice-table .notice-row {
    cursor: pointer;
}

.notice-table .notice-row:hover td {
    background: #fafbff;
}

.notice-title-text {
    display: inline-block;
    max-width: calc(100% - 58px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
    color: #171b34;
    font-weight: 700;
}

.notice-title-cell {
    display: block;
    min-width: 0;
}

.notice-table .notice-row:hover .notice-title-text {
    color: var(--lbp-primary);
    text-decoration: underline;
}

.notice-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-width: 46px;
    height: 26px;
    margin-left: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f0ecff;
    color: var(--lbp-primary);
    font-size: 13px;
    font-weight: 800;
}

.notice-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.notice-pager button {
    min-width: 74px;
    height: 38px;
    border: 1px solid #d9dce6;
    border-radius: 8px;
    background: #ffffff;
    color: #333b4f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.notice-pager button:disabled {
    cursor: default;
    opacity: 0.42;
}

.notice-pager span {
    color: #5f6575;
    font-size: 14px;
    font-weight: 700;
}

.notice-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(12, 16, 30, 0.62);
}

.notice-modal {
    width: min(920px, 100%);
    max-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.notice-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e6e8ef;
}

.notice-modal-header h2 {
    margin: 0;
    color: #171b34;
    font-size: 24px;
    line-height: 1.35;
}

.notice-modal-meta {
    margin: 0 0 8px;
    color: #747a89;
    font-size: 14px;
    font-weight: 700;
}

.notice-modal-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid #d8dce7;
    border-radius: 8px;
    background: #ffffff;
    color: #171b34;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.notice-modal-content {
    min-height: 260px;
    overflow: auto;
    padding: 28px;
    color: #22293a;
    font-size: 16px;
    line-height: 1.72;
}

.notice-modal-content img {
    max-width: 100%;
    height: auto;
}

.notice-modal-content table {
    width: 100%;
    border-collapse: collapse;
}

.notice-modal-content th,
.notice-modal-content td {
    border: 1px solid #d8dce7;
    padding: 8px 10px;
}

.page-panel {
    background: #ffffff;
    border: 1px solid var(--lbp-border);
    border-radius: 12px;
    padding: 22px;
}

.page-panel + .page-panel {
    margin-top: 16px;
}

.user-subpage .t-detail-header {
    padding: 24px 28px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e3e5ec;
    margin-bottom: 16px;
}


.user-subpage .t-detail-title {
    color: #171b34;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: 0;
}

.user-subpage .t-info-row {
    padding: 10px 0;
    font-size: 15px;
}

.user-subpage .t-event-card,
.user-subpage .u-group-card {
    border-radius: 10px;
}

.user-subpage .register-wrap {
    justify-content: flex-start;
    padding-top: 0;
}

.user-subpage .register-card {
    max-width: 560px;
    border-radius: 12px;
    padding: 34px;
}

.page-helper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: -8px 0 24px;
    padding: 16px 18px;
    border-left: 4px solid var(--lbp-primary);
    background: var(--lbp-primary-bg);
    border-radius: 10px;
    color: var(--lbp-text-sub);
    font-size: 15px;
    line-height: 1.6;
}

.page-helper strong {
    display: block;
    color: var(--lbp-text);
    font-weight: 700;
}

.mypage-tabs {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #e3e5ec;
    border-radius: 0;
    padding: 0 4px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.user-subpage .tournament-tabs {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid #e3e5ec;
    border-radius: 0;
    background: transparent;
    margin-bottom: 18px;
    padding: 0 4px;
    scrollbar-width: thin;
}

.user-subpage .tab-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 14px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #747a89;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.user-subpage .tab-btn:hover {
    color: #171b34;
}

.user-subpage .tab-btn.is-active {
    background: transparent;
    color: #7546d8;
    border-bottom-color: #7546d8;
    font-weight: 700;
}

.mypage-tab {
    min-height: 44px;
    padding: 14px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #747a89;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.mypage-tab.active {
    background: transparent;
    color: #7546d8;
    border-bottom-color: #7546d8;
    font-weight: 700;
}

.user-subpage .tab-panel {
    display: none;
}

.user-subpage .tab-panel.is-active {
    display: block;
}

@media (max-width: 768px) {
    .user-subpage .user-main {
        padding: 24px 16px 48px;
    }

    .user-page-head {
        margin-left: -16px;
        margin-right: -16px;
        padding: 28px 18px;
        border-radius: 0;
    }

    .user-page-head-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-page-head .user-page-title {
        font-size: 28px;
    }

    .user-page-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .user-page-actions .u-btn {
        flex: 1 1 140px;
    }

    .user-subpage .u-filter-bar {
        padding: 14px;
    }

    .user-subpage .tournament-filter-bar {
        flex-wrap: wrap;
        padding: 14px;
    }

    .user-subpage .tournament-filter-bar .u-tab-filter,
    .user-subpage .tournament-year-filter,
    .user-subpage .tournament-search-box {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
    }

    .user-subpage .u-filter-bar label,
    .user-subpage .u-filter-bar select.event-select-wide {
        width: 100%;
        min-width: 0;
    }

    .user-subpage .u-filter-bar label > span {
        flex: 0 0 auto;
        min-width: 2.5em;
        white-space: nowrap;
        word-break: keep-all;
    }

    .user-subpage .t-card-body {
        padding: 22px 20px;
    }

    .user-subpage .t-card-grid {
        grid-template-columns: 1fr;
    }

    .user-subpage .t-card-name {
        font-size: 19px;
    }

    .user-subpage .u-tbl th,
    .user-subpage .u-tbl td {
        padding: 12px 14px;
        font-size: 14px;
    }

    .notice-filter-bar {
        justify-content: stretch;
    }

    .notice-search-field,
    .notice-search-field input {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .notice-search-field {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .notice-table {
        display: block;
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    #noticeTableWrap {
        overflow-x: visible;
    }

    .notice-table thead,
    .notice-table tbody {
        display: block;
        width: 100%;
    }

    .notice-table thead tr,
    .notice-table tbody tr {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 108px;
        width: 100%;
    }

    .notice-table th,
    .notice-table td {
        display: block;
        min-width: 0;
        padding: 12px 8px;
        font-size: 14px;
    }

    .notice-table th:nth-child(1),
    .notice-table td:nth-child(1) {
        width: auto;
    }

    .notice-table th:nth-child(3),
    .notice-table td:nth-child(3),
    .notice-table th:nth-child(4),
    .notice-table td:nth-child(4) {
        display: none;
    }

    .notice-table th:nth-child(5),
    .notice-table td:nth-child(5) {
        width: auto;
        padding-right: 14px;
    }

    .notice-title-cell {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        min-width: 0;
    }

    .notice-title-text {
        display: -webkit-box;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        word-break: break-word;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.35;
    }

    .notice-pin {
        height: 22px;
        margin-left: 0;
        padding: 0 8px;
        font-size: 12px;
    }

    .notice-modal-backdrop {
        align-items: stretch;
        padding: 14px;
    }

    .notice-modal {
        max-height: none;
    }

    .notice-modal-header {
        padding: 20px 18px 16px;
    }

    .notice-modal-header h2 {
        font-size: 20px;
    }

    .notice-modal-content {
        padding: 20px 18px;
    }

    .page-helper {
        margin-top: 0;
        padding: 14px;
    }
}
