/* Paperlogy Web Font (눈누 CDN) */
@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Reset & Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Paperlogy', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #f4f4f5;
  color: #18181b;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* 모바일 전용 컨테이너 */
.mobile-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: #fafafa;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  padding: 44px 24px 36px 24px;
  border-left: 2px solid #18181b;
  border-right: 2px solid #18181b;
}

@media (max-width: 480px) {
  .mobile-container {
    border-left: none;
    border-right: none;
  }
}

/* 🔔 화면 오른쪽 가장자리 둥근 종 모양 알림 버튼 */
.notification-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2.5px solid #18181b;
  box-shadow: 3px 3px 0px #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #18181b;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.notification-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #18181b;
}

.notification-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #18181b;
}

/* 🔴 오른쪽 상단 대각선 카톡 스타일 알림 숫자 뱃지 */
.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff4757;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 1px 0px #18181b;
  animation: pulse-bounce 2s infinite;
}

@keyframes pulse-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 메인 콘텐츠 */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

/* 1. 프로필 영역 (프로필 이미지 -> 이름 -> 한 줄 소개) */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 36px;
}

.profile-avatar-wrapper {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  padding: 3px;
  background-color: #ffffff;
  border: 3px solid #18181b;
  box-shadow: 4px 4px 0px #18181b;
  margin-bottom: 20px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.profile-avatar-wrapper:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 6px 6px 0px #18181b;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: #ffffff;
}

.profile-name {
  font-size: 26px;
  font-weight: 800;
  color: #18181b;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}

.profile-bio {
  font-size: 15px;
  color: #52525b;
  font-weight: 500;
  letter-spacing: -0.3px;
  background-color: #f4f4f5;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #e4e4e7;
  display: inline-block;
}

/* 2. 링크 목록 (세로 배치) */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

/* 링크 카드 */
.link-card {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2.5px solid #18181b;
  border-radius: 22px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 4px 4px 0px #18181b;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #18181b;
  background-color: #ffffff;
}

.link-card:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #18181b;
}

/* 카드 이미지 (대표 이미지) */
.card-image-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 16px;
  border: 2px solid #18181b;
  background-color: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 카드 텍스트 정보 */
.card-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-subinfo {
  font-size: 13px;
  color: #71717a;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 오른쪽 화살표 아이콘 */
.card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #18181b;
  background-color: #fafafa;
  color: #18181b;
  margin-left: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.link-card:hover .card-arrow {
  transform: translateX(3px);
  background-color: #18181b;
  color: #ffffff;
}

/* 💬 알림 팝업 모달 (배경 딤 + 손그림 카드) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background-color: #ffffff;
  border: 3px solid #18181b;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 8px 8px 0px #18181b;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-card {
  transform: scale(0.9);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fef08a;
  border: 2px solid #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18181b;
  box-shadow: 2px 2px 0px #18181b;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #18181b;
}

.modal-body {
  background-color: #fafafa;
  border: 2px solid #18181b;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 3px 3px 0px #18181b;
}

.modal-text {
  font-size: 15px;
  font-weight: 600;
  color: #18181b;
  line-height: 1.5;
  word-break: keep-all;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.modal-close-btn {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background-color: #18181b;
  color: #ffffff;
  border: 2px solid #18181b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0px #71717a;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.modal-close-btn:hover {
  background-color: #27272a;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #71717a;
}

.modal-close-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #71717a;
}

/* 푸터 */
.footer {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #a1a1aa;
  padding-bottom: 12px;
}
