/* --- 기본 모바일 세팅 --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: #ffffff;
  box-sizing: border-box;
  padding-bottom: 60px;
}

/* --- 헤더 / 타이틀 --- */
h1 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 15px 0;
  margin: 0;
  border-bottom: 1px solid #dbdbdb;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  padding: 15px 16px 8px 16px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a.no-style {
  text-decoration: none;
  color: inherit;
}

/* --- 입력창 --- */
.card {
  background: #ffffff;
  padding: 16px;
  border-bottom: 1px solid #efefef;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  width: 100%;
  box-sizing: border-box;
  background: #faafa020;
  background-color: #fafafa;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #262626;
  outline: none;
  transition: border 0.2s;
}

input:focus {
  border: 1px solid #a8a8a8;
}

/* --- 내 프로필 확인하기 --- */
.ig-helper {
  text-align: right;
  font-size: 12px;
}

.ig-helper a {
  color: #888;
  text-decoration: none;
}

.ig-helper a:hover {
  text-decoration: underline;
}

/* --- 버튼 스타일 --- */
button {
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
  background-color: #0095f6;
  color: #ffffff;
}

button:active {
  opacity: 0.7;
}

.unstyled-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}
.unstyled-button:focus {
  outline: 2px solid #1da1f2;
}

/* 기본/보조 버튼 (회색조) */
.filters button, button[onclick^="copyAllIG"], button[onclick^="shareLink"] {
  background-color: #efefef;
  color: #000000;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
}
.filters button:hover, button[onclick^="copyAllIG"]:hover {
  background-color: #dbdbdb;
}

/* 삭제 버튼 */
.danger {
  padding: 7px 14px;
  background-color: #ffeeee;
  color: #ed4956;
}
.danger:hover {
  background-color: #ffd2d2;
}

/* --- 필터 탭 --- */
.filters {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #efefef;
}

.filters button {
  flex: 1;
  font-weight: 600;
}

/* --- 참석자 리스트 --- */
#list {
  display: flex;
  flex-direction: column;
}

.user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #fafafa;
}

/* 프로필 */
.user-info-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); /* 인스타 그라디언트 */
  padding: 2px; /* 테두리 효과 */
  box-sizing: border-box;
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.name {
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}

.ig {
  font-size: 12px;
  color: #737373;
}

/* --- (대기/확정) --- */
.badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.pending {
  background: #fff4e5;
  color: #b26a00;
}

.confirmed {
  background: #e6f7ed;
  color: #1a7f37;
}

.actions {
  display: flex;
  gap: 6px;
  padding: 4px 16px 12px 16px;
  border-bottom: 1px solid #efefef;
}

#suggestions {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  margin-top: -4px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.suggestion {
  padding: 12px 16px;
  font-size: 14px;
  color: #262626;
  cursor: pointer;
  border-bottom: 1px solid #efefef;
}

.suggestion:hover {
  background: #fafafa;
}

/* --- 로딩 인디케이터 --- */
body.loading {
  opacity: 0.7;
  pointer-events: none;
}

body.loading::after {
  content: "로딩 중...";
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.3px;
}