/* 멤버십 선택 메인 */

/* 페이지 헤더 */
.page-header {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-header-icon {
    width: 40px;
    height: 40px;
    background: #fff5ed;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ff6c0f;
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.page-subtitle {
    font-size: 13px;
    color: #888;
    margin: 4px 0 0;
}

.membership-main {
    min-height: calc(100vh - 200px);
    background: #f5f7fa;
    padding: 40px 30px 60px;
}

.membership-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 페이지 헤더 */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 멤버십 그리드 */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 멤버십 카드 */
.membership-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #ff6c0f;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.membership-card:hover {
    border-color: #ff6c0f;
}

.membership-card:hover::before {
    transform: scaleX(1);
}

/* 추천 카드 */
.membership-card.featured {
    border: 2px solid #ff6c0f;
    box-shadow: 0 12px 32px rgba(255, 108, 15, 0.15);
}

.membership-card.featured::before {
    transform: scaleX(1);
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ff6c0f;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    /* animation: pulse 2s infinite; */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* 카드 헤더 */
.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

/* 카드 바디 */
.card-body {
    margin-bottom: 20px;
    flex: 1;
}

/* 기능 섹션 */
.feature-section {
    margin-bottom: 20px;
}

.feature-section.premium {
    background: #fff5ed;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.feature-section.restricted {
    background: #f5f5f5;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 12px;
    font-weight: 700;
    color: #656565;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.feature-section.premium .feature-title {
    color: #ff6c0f;
}

.feature-section.restricted .feature-title {
    color: #999;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #333;
}

.feature-item.premium {
    color: #ff6c0f;
    font-weight: 600;
}

.feature-item.restricted {
    color: #999;
}

.feature-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: #10b981;
}

.feature-item.premium .feature-icon {
    stroke: #ff6c0f;
}

.feature-item.restricted .feature-icon {
    stroke: #ccc;
}

/* 카드 버튼 */
.card-button {
    width: 100%;
    padding: 14px 20px;
    background: #ff6c0f;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
    margin-top: auto;
}

.card-button svg {
    transition: transform 0.3s ease;
}
 

.card-button:hover svg {
    transform: translateX(4px);
}

.card-button:active {
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}

@media (max-width: 768px) {
    .membership-main {
        padding: 30px 20px 50px;
    }


    .membership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .membership-card {
        padding: 24px 20px;
    }

    .card-title {
        font-size: 18px;
    }

    .price-current {
        font-size: 28px;
    }

    .card-info-item {
        padding: 10px 0;
    }

    .info-label {
        font-size: 11px;
    }

    .info-value {
        font-size: 12px;
    }

    .card-button {
        padding: 13px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .membership-main {
        padding: 25px 15px 40px;
    }


    .membership-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .card-header {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .card-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .price-current {
        font-size: 26px;
    }

    .price-original {
        font-size: 13px;
    }

    .price-discount {
        font-size: 12px;
    }

    .card-body {
        margin-bottom: 16px;
    }

    .card-info-item {
        padding: 10px 0;
        gap: 5px;
    }

    .info-value {
        font-size: 12px;
        line-height: 1.4;
    }

    .card-button {
        padding: 12px 16px;
        font-size: 14px;
    }

    .card-badge {
        top: 14px;
        right: 14px;
        padding: 4px 12px;
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .membership-card {
        padding: 20px 16px;
    }


    .card-title {
        font-size: 16px;
    }

    .price-current {
        font-size: 24px;
    }
}

/* 스크롤 애니메이션 */
.membership-card {
    animation: cardFadeIn 0.6s ease forwards;
    opacity: 0;
}

.membership-card:nth-child(1) {
    animation-delay: 0.1s;
}

.membership-card:nth-child(2) {
    animation-delay: 0.2s;
}

.membership-card:nth-child(3) {
    animation-delay: 0.3s;
}

.membership-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 호버 효과 개선 */
.membership-card {
    background: #ffffff;
}


/* 가격 강조 애니메이션 */
.price-current {
    position: relative;
    display: inline-block;
}

.membership-card:hover .price-current {
    animation: priceHighlight 0.6s ease;
}

@keyframes priceHighlight {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* 큰 화면에서 최적화 */
@media (min-width: 1400px) {
    .membership-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .membership-card {
        padding: 30px 26px;
    }

    .card-header {
        margin-bottom: 22px;
    }

    .card-body {
        margin-bottom: 22px;
    }
}

/* 안내 문구 */
.membership-notice {
    margin-top: 40px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #ff6c0f;
}

.membership-notice p {
    font-size: 13px;
    color: #656565;
    line-height: 1.7;
    margin: 0;
}

.membership-notice p+p {
    margin-top: 8px;
}

/* 반응형 - 추가 */
@media (max-width: 768px) {
    .feature-section.premium,
    .feature-section.restricted {
        padding: 12px;
    }

    .feature-item {
        font-size: 12px;
    }

    .membership-notice {
        margin-top: 30px;
        padding: 16px 20px;
    }

    .membership-notice p {
        font-size: 12px;
    }

    .page-header {
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .page-title {
        font-size: 16px;
    }

    .page-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .feature-section {
        margin-bottom: 16px;
    }

    .feature-icon {
        width: 16px;
        height: 16px;
    }

    .membership-notice {
        margin-top: 25px;
        padding: 14px 16px;
    }

    .page-header {
        padding: 14px 16px;
        margin-bottom: 20px;
    }

    .page-header-icon {
        width: 36px;
        height: 36px;
    }

    .page-title {
        font-size: 15px;
    }
}