/* 마이페이지 스타일 */

/* 사용자 정보 섹션 */
.mypage-user-info {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.user-email-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email-section i {
    font-size: 2.5rem;
    color: #c5d0ff;
}

.user-email-section span {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.edit-profile-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mypage-tabs {
    display: flex;
    gap: 1rem;
    /* margin-bottom: 2rem; */
    border-bottom: 2px solid rgb(207 215 249);
}
.mypage-tab {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    color: #b0b0d0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mypage-tab:hover {
    color: #3b82f6;
    background: rgba(102, 126, 234, 0.1);
}

.mypage-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.mypage-tab i {
    font-size: 1.2rem;
}

/* 탭 컨텐츠 */
.mypage-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mypage-tab-content.active {
    display: block;
}

/* 테이블 래퍼 */
.history-table-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

/* 히스토리 테이블 */
.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead tr {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
}

.history-table th {
    padding: 1rem;
    /*text-align: left; */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.history-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table td {
    padding: 1rem;
    color: #d0d0e0;
    font-size: 0.95rem;
}

.history-table td.price {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

/* 상태 배지 */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.ended {
    background: rgba(108, 117, 125, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.deleted {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* 입금 상태 배지 */
.payment-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.payment-badge.waiting {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.payment-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 데이터 없음 */
.no-data {
    text-align: center;
    padding: 3rem;
    color: #9090b0;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data p {
    font-size: 1.1rem;
}

/* 페이징 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d0d0e0;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
}

.page-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #ffffff;
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-btn.page-prev,
.page-btn.page-next {
    padding: 8px 12px;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: #9090b0;
    font-size: 1.2rem;
}

/* 다운로드 버튼 */
.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.download-btn i {
    font-size: 0.9rem;
}

/* 내 정보 수정 모달 */
.social-type-display {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.social-badge.kakao {
    background: #FEE500;
    color: #000000;
}

.social-badge.naver {
    background: #03C75A;
    color: #ffffff;
}

.social-badge.google {
    background: #ffffff;
    color: #000000;
}

.social-badge i {
    font-size: 1rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mypage-user-info {
        padding: 1.5rem;
    }

    .user-email-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-email-section span {
        font-size: 1.1rem;
    }

    .edit-profile-btn {
        width: 100%;
        justify-content: center;
    }

    .mypage-tabs {
        flex-direction: column;
        gap: 0;
    }

    .mypage-tab {
        padding: 1rem;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mypage-tab.active {
        background: rgba(102, 126, 234, 0.2);
        border-left: 4px solid #667eea;
    }

    .history-table-wrapper {
        padding: 1rem;
        overflow-x: auto;
    }

    .history-table {
        min-width: 600px;
    }

    .history-table.purchase-table {
        min-width: 900px;
    }

    .history-table th,
    .history-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    .pagination {
        gap: 0.3rem;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .user-email-section i {
        font-size: 2rem;
    }

    .user-email-section span {
        font-size: 1rem;
    }

    .mypage-tab {
        font-size: 1rem;
    }

    .history-table th,
    .history-table td {
        padding: 0.7rem 0.4rem;
        font-size: 0.8rem;
    }

    .status-badge,
    .payment-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}
