/* assets/css/lp-course-grid.css */

body.learnpress-profile {
    background: var(--bg-dark);
}

body.learnpress-profile .lp-content-area.learn-press-message {
    display: none;
}

#learn-press-profile {
    min-height: 80vh;
}

.lp-user-profile #profile-sidebar {
    border: 0;
    width: 300px;
}

.lp-user-profile .lp-profile-content {
    width: calc(100% - 335px);
}

.learn-press-profile-course__statistic {
    margin-bottom: 15px;
}

.profile-info {
    padding: 20px;
    border: 0;
    margin-bottom: 30px;
    background: #1e1e1e;
    border-radius: 9px;
    border: 1px solid #3c3c3c;
}

.profile-info .profile-name {
    font-size: 20px;
    margin: 0;
}

.profile-info .user-stats {
    margin-top: 6px;
}

.profile-info .user-stats p {
    margin: 3px 0;
    font-size: 14px;
    color: #c1c1c1;
}

.profile-info .user-stats i {
    color: var(--e-global-color-accent);
}

.profile-info .user-stats p strong {
    font-size: 18px;
    letter-spacing: -0.5px;
    margin-right: 2px;
    color: #ffffff;
}

.dashboard-statistic__row .statistic-box {
    padding: 20px;
    background: transparent;
    border: 1px solid #282828;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: var(--lp-border-radius, 5px);
    width: calc((100% - 40px) / 3);
}

.learn-press-profile-course__progress {
    background: transparent;
    border: 0;
    border-radius: 0px;
}

.lp-user-profile .lp-profile-nav-tabs>li {
    border: 0;
}

.lp-user-profile .lp-profile-nav-tabs>li>a {
    padding: 16px 20px;
    position: relative;
    border-radius: 5px;
}

.lp-user-profile .lp-profile-nav-tabs>li.active>a i {
    color: #532B83;
}

.lp-user-profile .lp-profile-nav-tabs>li.active>a {
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary-border-light);
    color: var(--color-primary);
}

.lp-user-profile .lp-profile-nav-tabs>li.active {
    background: unset;
}

.lp-user-profile .lp-profile-nav-tabs>li>a>i {
    color: inherit;
    display: none;
}

.learnpress-profile .learn-press-filters li {
    margin-bottom: 0;
}

.lp-user-profile .lp-profile-nav-tabs>li:not(.active):hover {
    background: transparent;
}

.learn-press-tabs {
    border-bottom: 0;
    margin: 30px 0;
}

.learn-press-filters li a,
.learn-press-filters li span {
    display: block;
    margin: 0;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
    cursor: pointer;
    color: #ffffffd4;
    text-decoration: none;
    background: transparent;
    border-radius: 5px;
    border: 1px solid #212121;
}

.learn-press-filters li.learn-press-tabs__item.active a,
.learn-press-filters li.learn-press-tabs__item a:hover,
.learn-press-filters li a.active,
.learn-press-filters li a:hover,
.learn-press-filters li span.active,
.learn-press-filters li span:hover {
    color: #fff !important;
    background: #212121;
}

.learn-press-filters li a::after,
.learn-press-filters li span::after {
    display: none;
}

.learn-press-filters {
    column-gap: 10px;
    row-gap: 10px;
}

.lp-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.lp-course-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}

.lp-course-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 비율 유지 */
    overflow: hidden;
}

.lp-course-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-course-detail {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #1c1c1c;
    padding: 8px 15px 15px;
}

.lp-course-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    color: #fff;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    margin: 10px 0;
}

.lp-progress-bar {
    width: 100%;
    height: 6px;
    background: #535353;
    border-radius: 4px;
    overflow: hidden;
}

.lp-progress-bar.zero-progress .lp-progress-bar-fill {
    width: 5px !important;
}

.lp-progress-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.lp-progress-text {
    font-size: 13px;
    color: #9e9e9e;
    margin-top: 5px;
    text-align: end;
}

.lp-course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    /* border-top: 1px solid #eee; */
    font-size: 13px;
    color: #ddd;
}

.learn-press-form .form-fields .form-field label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-style: normal;
}

.learn-press-form .form-fields .form-field input[type=email],
.learn-press-form .form-fields .form-field input[type=text],
.learn-press-form .form-fields .form-field input[type=password],
.learn-press-form .form-fields .form-field input[type=tel],
.learn-press-form .form-fields .form-field input[type=url],
.learn-press-form .form-fields .form-field input[type=number],
.learn-press-form .form-fields .form-field textarea {
    width: 100%;
    border: 1px solid #353432;
    padding: 17px 16px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: transparent;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
}

.learn-press-form .form-fields .form-field input[type=password] {
    max-width: 400px;
}

#profile-content .lp-button {
    padding: 13px 27px;
    background: 000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    background: #212121;
}

.lp-ajax-message {
    border: 0;
    border-radius: 0px;
    padding: 0;
}


/* 반응형 스타일 */

@media screen and (max-width: 1280px) {
    .lp-course-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 1rem;
    }
}

@media screen and (max-width: 1024px) {
    .lp-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .lp-course-detail {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 768px) {
    .lp-course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.75rem;
    }
    .lp-course-detail {
        padding: 1rem;
    }
    .lp-course-title {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .lp-course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    .lp-course-thumbnail {
        padding-top: 52.25%;
        /* 모바일에서는 조금 더 낮은 비율 */
    }
}


/* 로딩 상태를 위한 스타일 */

.lp_profile_course_progress__nav {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.lp-button {
    padding: 0.75rem 1.5rem;
    background: 000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.lp-course-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.lp-button:hover {
    background: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-recover-order {
    display: none;
}

.lp-course-meta {
    flex-direction: column;
    align-items: flex-start;
}


/* 멤버십 카드 스타일 - 실버 메탈릭 그라데이션 */

.membership-card-wrapper {
    margin-bottom: 30px;
}

.membership-card {
    background: linear-gradient(135deg, rgba(240, 240, 245, 0.12) 0%, rgba(200, 200, 210, 0.08) 25%, rgba(180, 180, 190, 0.10) 50%, rgba(200, 200, 210, 0.08) 75%, rgba(240, 240, 245, 0.12) 100%);
    border: 1px solid rgba(220, 220, 230, 0.25);
    border-radius: 5px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* 메탈릭 광택 효과 */

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.membership-card:hover::before {
    left: 100%;
}

.membership-card:hover {
    border-color: rgba(220, 220, 230, 0.45);
    background: linear-gradient(135deg, rgba(240, 240, 245, 0.18) 0%, rgba(200, 200, 210, 0.12) 25%, rgba(180, 180, 190, 0.15) 50%, rgba(200, 200, 210, 0.12) 75%, rgba(240, 240, 245, 0.18) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.membership-card-content {
    position: relative;
    z-index: 1;
}

.membership-card-content .membership-title {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f5;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.membership-card-content .membership-desc {
    font-size: 12px;
    color: #d0d0d0;
    margin: 0;
}

.membership-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
}

.membership-btn svg {
    transition: transform 0.3s ease;
}

.membership-btn:hover svg {
    transform: translateX(3px);
}


/* 멤버십 카드 반응형 스타일 */

@media screen and (max-width: 768px) {
    .membership-card {
        padding: 16px;
    }
    .membership-card-content .membership-title {
        font-size: 15px;
    }
    .membership-card-content .membership-desc {
        font-size: 12px;
    }
    .membership-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}

.lp-user-profile .lp-profile-nav-tabs li>ul {
    background: #111111;
}

.lp-user-profile .lp-profile-nav-tabs>li a>i {
    margin-top: 3px;
    display: none;
}

.lp-user-profile .lp-profile-nav-tabs>li ul li a {
    border-bottom: 0;
    font-size: 14px;
}

.lp-user-profile .lp-profile-nav-tabs li>ul li:hover,
.lp-user-profile .lp-profile-nav-tabs li>ul li.active,
.lp-user-profile .lp-profile-nav-tabs>li ul li a:hover {
    color: inherit;
    opacity: 0.8;
}

#learn-press-profile-basic-information .form-fields .form-field input[type=email],
#learn-press-profile-basic-information .form-fields .form-field input[type=text],
#learn-press-profile-basic-information .form-fields .form-field input[type=password],
#learn-press-profile-basic-information .form-fields .form-field input[type=tel],
#learn-press-profile-basic-information .form-fields .form-field input[type=url],
#learn-press-profile-basic-information .form-fields .form-field input[type=number],
#learn-press-profile-basic-information .form-fields .form-field textarea {
    padding: 17px 15px;
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    /* text-align: center; */
    /* text-transform: capitalize; */
    color: #ffffffd4;
    text-decoration: none;
    background: #242424;
    border-radius: 5px;
    border: 1px solid #212121;
}


/* 안내 문구 스타일 */

.profile-notice {
    background-color: #0c0c0c;
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 30px;
    text-align: right;
    width: fit-content;
}

.profile-notice p {
    margin: 0;
    font-size: 14px;
    color: #c8d2db;
}


/* 읽기 전용 필드 스타일 */

input[readonly]:not(input#billing_address_1[readonly]) {
    background-color: #252222 !important;
    cursor: not-allowed !important;
}


/* 중복 체크 메시지 스타일 */

.check-message {
    display: block;
    font-size: 14px;
    padding: 8px 15px 0px;
}

.check-message.success {
    color: #28a745;
}

.check-message.issue {
    color: #dc3545;
}

.check-message.checking {
    color: #8b949d;
}

.learn-press-form button[type="submit"] {
    margin-top: 20px;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#profile-content .lp-button:disabled {
    background-color: #301e1e;
    cursor: not-allowed;
}

.learnpress_avatar__form__upload {
    background: #1c1c1c;
    flex-direction: column;
    line-height: 1.5em;
    font-style: normal;
}

.learnpress_avatar__form__upload svg {
    width: 24px;
}

@media screen and (max-width: 990px) {
    .lp-user-profile #profile-nav {
        border: 0;
    }
    .lp-user-profile #profile-sidebar {
        border: 0;
        width: 100%;
        padding: 0 15px;
    }
    .lp-user-profile .lp-profile-content {
        width: 100%;
        padding: 20px 15px;
    }
    .dashboard-statistic__row .statistic-box {
        flex: 1;
        padding: 15px;
    }
    .statistic-box__icon {
        display: none;
    }
    .lp-list-table .col-date {
        text-align: start;
    }
}