
:root {
  /* Base Colors - Travel Dashboard Theme */
  --bg: #fffdfa;
  --panel: #FCFBF9;
  --panel-2: #F0EBE4;
  --text: #4A3B30;
  --muted: #7A7066;
  --accent: #ffdbb7;
  --accent-2: #8EC0C7;
  --ok: #A8E6CF;
  --warn: #D87C4A;
  --danger: #FFB3BA;
  --radius: 20px;
  
  /* Additional Colors */
  --panel-border: #E8DCC6;
  --panel-shadow: 0 4px 20px rgba(224, 139, 93, 0.15);
  --button-primary-bg: #fff4ee;
  --button-primary-text: #FFFFFF;
  --button-secondary-bg: #8EC0C7;
  --button-secondary-text: #4A3B30;
  --button-secondary-border: #8EC0C7;
}

/* 기본 스타일 */
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Apple SD Gothic Neo, Pretendard, Helvetica, Arial;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* 공통 레이아웃 */
.wrap {
  width: calc(100% - 40px);
  margin: 10px 0;
  padding: 0 20px;
  flex: 1;
}

/* 공통 헤더 */
header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

header h1 {
  font-size: 22px;
  margin: 0;
}

/* 페이지 헤더 (guild.html용) */
.page-header {
  margin-top: 10px;
  position: relative;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.create-post-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: black;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-post-btn:hover {
  background: #e6c499;
  transform: translateY(-1px);
}

.create-post-btn i {
  font-size: 12px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-toggle-btn {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.search-toggle-btn:hover {
  background: var(--panel);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--accent);
}

.search-toggle-btn.close-btn {
  background: #6b7280;
  border-color: #6b7280;
  color: white;
  position: relative;
}

.search-toggle-btn.close-btn:hover {
  background: #4b5563;
  border-color: #4b5563;
  color: white;
}

.search-toggle-btn.close-btn::before,
.search-toggle-btn.close-btn::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 16px;
  background: white;
  border-radius: 30px;
}

.search-toggle-btn.close-btn::before {
  transform: rotate(45deg);
}

.search-toggle-btn.close-btn::after {
  transform: rotate(-45deg);
}

.page-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search input {
  background: white;
  color: var(--text);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 40px 10px 16px;
  width: 200px;
  font-size: 14px;
  outline: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search input::placeholder {
  color: #999;
}

.search i {
  position: absolute;
  right: 12px;
  color: #666;
  font-size: 14px;
  pointer-events: none;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 22px;
}

/* 공통 버튼 */
.btn {
  background: var(--panel);
  border: 2px solid var(--panel-border);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--panel-shadow);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(224, 139, 93, 0.25);
  border-color: var(--accent);
  background: var(--panel-2);
}

.btn-primary {
  background: var(--accent);
  color: black;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(224, 139, 93, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 6px 20px rgba(142, 192, 199, 0.4);
  transform: translateY(-3px) scale(1.05);
}

.danger {
  background: var(--danger);
  color: var(--text);
  border: 2px solid var(--danger);
  box-shadow: 0 4px 15px rgba(255, 179, 186, 0.3);
  font-weight: 700;
}

.danger:hover {
  background: var(--warn);
  border-color: var(--warn);
  box-shadow: 0 6px 20px rgba(216, 124, 74, 0.4);
  transform: translateY(-3px) scale(1.05);
}

/* 공통 그리드 */
.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 14px;
  width: 100%;
}

/* members.html 전용 스타일 */
.members-container {
  padding: 20px;
  min-height: calc(100vh - 200px);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 2fr)) !important;
  gap: 20px;
  width: 100%;
}

/* members.html 카드 스타일 */
.members-grid .card {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.members-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
  .members-grid .card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  
  .members-grid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }
  
  .members-grid .cover {
    height: 250px;
  }
  
  .members-grid .meta {
    padding: 12px;
    gap: 6px;
  }
  
  .members-grid .member-name-mbti {
    margin-bottom: 6px;
  }
}

.members-grid .cover {
  height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.members-grid .cover-placeholder {
  color: var(--muted);
  font-size: 14px;
  opacity: 0.7;
}

.members-grid .meta {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.members-grid .member-name-mbti {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.members-grid .member-name-mbti-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.members-grid .title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.members-grid .mbti {
  font-size: 12px;
  color: var(--accent);
  background: rgba(255, 193, 7, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.members-grid .role {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.members-grid .member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.members-grid .member-tag {
  font-size: 11px;
  color: var(--text);
  background: var(--panel-2);
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.members-grid .bio {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--panel-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

/* 커버 업로드 아이콘 */
.cover-upload-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.cover-upload-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.cover-upload-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.cover-upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(224, 139, 93, 0.1), rgba(142, 192, 199, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* 공통 입력 요소 */
input, select, textarea {
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px 18px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--panel-shadow);
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(224, 139, 93, 0.2), var(--panel-shadow);
  transform: scale(1.001);
  background: var(--panel-2);
}

label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* 공통 레이아웃 */
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pill {
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 25px;
  background: var(--accent);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(224, 139, 93, 0.3);
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
  display: inline-block;
}

.pill:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(224, 139, 93, 0.4);
  background: var(--accent-2);
  border-color: var(--accent-2);
}

/* 공통 푸터 */
footer {
  opacity: 0.65;
  margin: 22px 0 6px;
}

/* ===== 메인 헤더 스타일 ===== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 245, 240, 0.9);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(224, 139, 93, 0.1);
}

.header-content {
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-sizing: border-box;
}

.logo {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.header-nav > a:not(.auth-buttons) {
  flex-shrink: 0;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  background: var(--panel-2);
  color: var(--text);
}

.nav-link:hover .nav-icon {
  transform: scale(1.2) rotate(5deg);
}

.nav-link.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 4px 15px rgba(224, 139, 93, 0.3);
  transform: scale(1.05);
}

/* 네비게이션 텍스트 */
.nav-text {
  font-size: 14px;
  font-weight: 500;
  margin-left: 4px;
}

/* 인증 버튼 컨테이너 */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 숨겨진 인증 버튼 처리 */
.sidebar-auth-buttons .sidebar-link[style*="display: none"] {
  display: none !important;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 미드저니 스타일 카드 */
.midjourney-card {
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  margin-bottom: 24px;
}

.midjourney-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.midjourney-card:hover .card-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
}

.midjourney-card:hover .image-overlay {
  opacity: 1;
}

.overlay-left {
  display: flex;
  align-items: flex-end;
}

.overlay-right {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.tags-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.more-tags {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.author-info-overlay {
  display: flex;
  align-items: center;
}

.author-name-overlay {
  color: white;
  font-size: 14px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 16px;
}

.delete-btn-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 68, 68, 0.9);
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-btn-overlay:hover {
  background: rgba(255, 68, 68, 1);
  transform: scale(1.1);
}

.card-footer {
  padding: 12px 20px 16px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.post-author {
  font-weight: 500;
  color: var(--text);
  display: none; /* 데스크톱에서는 숨김 */
}

.image-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 인스타그램 스타일 모달 */
.instagram-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.instagram-content {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.instagram-image-section {
  flex: 1;
  min-width: 0;
}

.instagram-info-section {
  width: 350px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.instagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-details .author-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.author-details .post-date {
  font-size: 12px;
  color: var(--muted);
}

.close-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 100%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--panel-2);
  color: var(--text);
}

.instagram-content-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-item {
  background: white;
  color: black;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  border: 2px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.no-tags {
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
}

.post-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.instagram-actions {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.delete-btn {
  background: #ff4444;
  color: white;
}

.delete-btn:hover {
  background: #e63939;
}

/* 이미지 캐러셀 */
.image-carousel {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.carousel-container {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
}

.carousel-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-indicator {
  font-size: 12px;
  font-weight: 500;
}

/* 포스팅 작성 페이지 스타일 */
.posting-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.posting-header {
  padding: 20px 24px 0;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.back-btn:hover {
  background: var(--panel-2);
}

.posting-title {
  padding: 16px 24px 0;
  border-bottom: 1px solid var(--border);
}

.posting-title h2 {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.posting-editor {
  padding: 24px;
}

.posting-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

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

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

.publish-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.image-upload-section {
  margin-bottom: 32px;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--panel-2);
  justify-content: center;
  align-items: center;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--accent);
  background: rgba(102, 126, 234, 0.05);
}

.upload-placeholder i {
  font-size: 48px;
  color: var(--muted);
  margin-bottom: 16px;
}

.upload-placeholder h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.upload-placeholder p {
  color: var(--muted);
  margin-bottom: 4px;
}

.upload-placeholder span {
  color: var(--muted);
  font-size: 12px;
}

.image-preview-section {
  margin-top: 24px;
  margin-bottom: 24px;
}

.preview-header h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.preview-header p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.preview-item.main-thumbnail {
  border-color: var(--accent);
}

.preview-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.preview-actions {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.set-main-btn,
.crop-btn,
.remove-btn {
  padding: 6px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
}

.set-main-btn {
  background: var(--accent);
  color: white;
}

.set-main-btn:hover {
  background: #5a67d8;
}

.crop-btn {
  background: #38a169;
  color: white;
}

.crop-btn:hover {
  background: #2f855a;
}

.remove-btn {
  background: #ff4444;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: #e63939;
}

.tag-section,
.location-section {
  margin-bottom: 24px;
}

.tag-header h3,
.location-header h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.tag-header p,
.location-header p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.tag-input-container {
  position: relative;
}

#tagInput,
#locationInput {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
}

#tagInput:focus,
#locationInput:focus {
  outline: none;
  border-color: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-item {
  background: white;
  color: black;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.remove-tag {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.remove-tag:hover {
  background: rgba(255, 255, 255, 0.2);
}

.permission-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.permission-card {
  text-align: center;
  padding: 40px;
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.permission-card h2 {
  color: var(--text);
  margin-bottom: 16px;
}

.permission-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* 포스팅하기 버튼 스타일 개선 */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

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

.btn-primary i {
  font-size: 16px;
}

/* 멤버 카드 스타일 개선 */
.member-name-mbti {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.member-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.member-mbti {
  font-size: 12px;
  color: rgb(0, 0, 0);
  font-weight: 500;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.member-role {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.member-bio {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}

.member-tag {
  background: var(--panel-2);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}

/* members.html 카드 스타일 개선 */
.card .meta {
  padding: 16px;
}

.card .member-name-mbti {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card .title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.card .mbti {
  font-size: 12px;
  color: rgb(0, 0, 0);
  font-weight: 500;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 8px;
}

.card .role {
  font-size: 14px;
  color: var(--muted);
}

.card .member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
  justify-content: center;
}

.card .member-tag {
  background: white;
  color: black;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card .bio {
  margin: 8px 0 0 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}

/* 플로팅 포스팅 버튼 */
.floating-post-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.floating-btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.floating-btn-link:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
}

.floating-btn-link i {
  font-size: 24px;
  color: #333;
  transition: color 0.3s ease;
}

.floating-btn-link:hover i {
  color: #007bff;
}

/* 세로 긴 상세 모달 */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.detail-content {
  width: 100%;
  margin: 20px auto;
  background: white;
  min-height: 50vh;
  max-height: 90vh;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-close-btn {
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.detail-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: white;
  position: sticky;
  top: 0;
  z-index: 30;
}

.detail-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-author .author-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.detail-author .post-date {
  font-size: 12px;
  color: #666;
}

.detail-delete-btn {
  width: 36px;
  height: 36px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.detail-delete-btn:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.detail-images {
  padding: 0;
}

.detail-image-item {
  width: 100%;
  margin-bottom: 0;
}

.detail-image-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 인스타그램 스타일 하단 영역 */
.instagram-style-bottom {
  background: white;
  padding: 0;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
  z-index: 8;
}

/* 이미지 캐러셀 */
.image-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f0f0f0;
  transition: background 0.3s ease;
}

.carousel-image-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--blurred-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: 1;
}


.carousel-image-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  filter: none !important;
  transform: none !important;
  position: relative;
  z-index: 2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  font-size: 16px;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* 이미지 인디케이터 */
.image-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.image-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-indicator.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* 다운로드 버튼 */
.download-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.3s ease;
  font-size: 16px;
  backdrop-filter: blur(4px);
}

.download-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* 다운로드 모달 */
.download-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.download-modal.active {
  display: flex;
}

.download-modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: modalSlideIn 0.3s ease-out;
}

.download-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  border-bottom: 1px solid #f0f0f0;
}

.download-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.download-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #8e8e8e;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.download-modal-close:hover {
  background: #f0f0f0;
  color: #262626;
}

.download-modal-body {
  padding: 24px;
}

.download-modal-body p {
  margin: 0 0 20px 0;
  color: #8e8e8e;
  font-size: 14px;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #262626;
}

.download-option-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.download-option-btn i {
  font-size: 18px;
  color: #007bff;
}

.download-option-btn span {
  font-weight: 500;
}

/* 더보기 태그 버튼 */
.show-more-tags-btn {
  background: none;
  border: none;
  color: #8e8e8e;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: color 0.2s ease;
}

.show-more-tags-btn:hover {
  color: #262626;
}

.show-more-tags-btn p {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

/* 상호작용 버튼들 */
.interaction-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 4px;
  gap: 8px;
}

.interaction-buttons button {
  background: none;
  border: none;
  font-size: 24px;
  color: #262626;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.interaction-buttons button:hover {
  transform: scale(1.1);
}

.interaction-buttons button .like-count {
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}


/* 좋아요 개수 섹션 */
.like-count-section {
  display: none;
}

.like-count-text {
  font-weight: 600;
  color: #262626;
  font-size: 14px;
}

/* 태그 섹션 */
.tags-section {
  display: flex;
  justify-content: center;
}

.tags-content {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.tag-item {
  color: #262626;
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

.show-more-tags-btn {
  background: none;
  border: none;
  color: #8e8e8e;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.show-more-tags-btn:hover {
  color: #262626;
}

/* 댓글 섹션 */
.comments-section {
  padding: 0 16px 8px;
}

.comments-header {
  margin-bottom: 4px;
}

.comment-count-text {
  color: #8e8e8e;
  font-size: 14px;
  cursor: pointer;
}

.comment-count-text:hover {
  color: #262626;
}

.comments-list {
  max-height: 200px;
  overflow-y: auto;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  color: #262626;
  margin-right: 4px;
}

.comment-text {
  color: #262626;
}

.comment-date {
  color: #8e8e8e;
  font-size: 12px;
  margin-left: 4px;
}

/* 댓글 입력 영역 */
.comment-input-section {
  border-top: 1px solid #efefef;
  padding: 8px 6px;
}

.comment-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-input-container input {
  flex: 1;
  border: none;
  background: transparent;
  color: #262626;
  font-size: 14px;
  outline: none;
}

.comment-input-container input::placeholder {
  color: #8e8e8e;
}

.comment-send-btn {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-send-btn:hover {
  background: #6c6c6c;
  transform: translateY(-1px);
}

.comment-send-btn:disabled {
  background: #8e8e8e;
  color: white;
  cursor: not-allowed;
  transform: none;
}

.comment-send-btn:disabled:hover {
  background: #8e8e8e;
  transform: none;
}

.no-comments {
  text-align: center;
  color: #8e8e8e;
  font-size: 14px;
  padding: 20px;
  font-style: italic;
}

.show-more-comments-btn {
  background: none;
  border: none;
  color: #8e8e8e;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  text-align: left;
  transition: color 0.2s ease;
}

.show-more-comments-btn:hover {
  color: #262626;
}


.detail-tag-item {
  display: inline-block;
  background: #f0f0f0;
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin: 4px 8px 4px 0;
  font-weight: 500;
}

.detail-tags .no-tags {
  color: #999;
  font-style: italic;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

/* 관련 피드 섹션 */
.related-posts {
  background: white;
  padding: 20px;
  border-top: 1px solid #eee;
}

.related-posts h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 16px 0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.related-post-item {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.related-post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}

.related-post-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
  transform: scale(1.05);
}

.related-multi-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.related-post-info {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.related-post-author {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-post-date {
  font-size: 10px;
  color: #666;
}

/* 커스텀 스크롤바 - 다크 테마에 최적화 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox용 스크롤바 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* 특정 요소에서 스크롤바 완전 숨김 */
.no-scrollbar {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.no-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* 푸터 컴포넌트 */
.site-footer {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 40px 0 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-info h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-info p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copyright {
  text-align: right;
}

.footer-copyright p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .instagram-content {
    flex-direction: column;
    max-height: 95vh;
  }
  
  .instagram-info-section {
    width: 100%;
    max-height: 40vh;
  }
  
  .instagram-image-section {
    min-height: 60vh;
  }
  
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }
  
  .posting-container {

  }
  
  .posting-header {
    padding: 16px 20px 0;
  }
  
  .posting-title {
    padding: 12px 20px 0;
  }
  
  .posting-editor {
    padding: 20px;
  }
  
  .posting-footer {
    padding: 16px 20px;
  }
  
  .member-name-mbti {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  .card .member-name-mbti {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  /* 모바일 플로팅 버튼 - 하단 메뉴바 위쪽에 위치 */
  .floating-post-btn {
    bottom: 100px; /* 하단 메뉴바 높이(80px) + 여백(20px) */
    right: 20px;
    z-index: 1000; /* 하단 메뉴바와 동일한 z-index */
  }
  
  .floating-btn-link {
    width: 50px;
    height: 50px;
  }
  
  .floating-btn-link i {
    font-size: 20px;
  }
  
  /* 모바일 상세 모달 */
  .detail-content {
    max-width: calc(100% - 20px);
    margin: 10px;
    min-height: 60vh;
    max-height: 95vh;
  }
  
  .detail-close-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .detail-delete-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .detail-header {
    padding: 15px;
  }
  
  .detail-author .author-name {
    font-size: 15px;
  }
  
  .detail-author .post-date {
    font-size: 11px;
  }
  
  
  .detail-tag-item {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  /* 모바일 관련 피드 */
  .related-posts {
    padding: 15px;
  }
  
  .related-posts h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .related-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  
  .related-post-info {
    padding: 6px;
  }
  
  .related-post-author {
    font-size: 10px;
  }
  
  .related-post-date {
    font-size: 9px;
  }
  
  /* 모바일 푸터 */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
  
  .footer-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header-logout {
  background: var(--danger);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: none;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.header-logout.show {
  display: flex;
}

.header-logout:hover {
  background: #e53e3e;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(252, 129, 129, 0.3);
}

/* ===== 모바일 하단 고정 메뉴바 스타일 ===== */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f2f2f2;
  border-top: 1px solid #e2e8f0;
  z-index: 1000;
  display: none;
  padding: 8px 0;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 4px;
  min-height: 60px;
  flex: 1;
}

.bottom-nav-link i {
  font-size: 20px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.bottom-nav-link span {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
  color: var(--accent);
  background: rgba(255, 107, 157, 0.1);
}

.bottom-nav-link:hover i,
.bottom-nav-link.active i {
  transform: scale(1.1);
}

.bottom-nav-link.auth-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-nav-link.auth-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  flex-shrink: 0;
}

.sidebar-logo {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.sidebar-logo:hover {
  transform: scale(1.05);
}

.sidebar-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.sidebar-close:hover {
  background: var(--panel-2);
  color: var(--text);
}

.sidebar-nav {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.sidebar-main-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar-auth-buttons {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  margin: 0 8px;
  border-radius: 8px;
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-link i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-link span {
  flex: 1;
  font-weight: 500;
}

.sidebar-auth-buttons .sidebar-link {
  display: flex !important;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  margin: 4px 12px;
  border-radius: 8px;
  min-height: 50px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-auth-buttons .sidebar-link i {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.sidebar-auth-buttons .sidebar-link span {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
}

.sidebar-link:hover {
  background: var(--panel);
  border-left-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
}

.sidebar-link.active {
  background: var(--panel);
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* 사이드바 오버레이 - 별도 요소로 분리 */
.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== INDEX.HTML (메인 페이지) 스타일 ===== */

/* 히어로 섹션 */
.hero-section {
  position: relative;
  width: 100%;
  aspect-ratio: 30/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--warn) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/cover.webp') center/cover no-repeat;
  margin-bottom: 20px;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

.hero-content {
  background: rgba(255, 219, 183, 0.8);
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text);
  max-width: 800px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 20px;
  margin: 10px 0 10px 0;
  color: var(--text);
  opacity: 0.9;
  font-weight: 500;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -1px;
}

/* 메인 컨텐츠 */
.main-content {
  background: var(--bg);
  position: relative;
  z-index: 3;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* 2컬럼 컨테이너 */
.content-sections-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
  margin: 0;
  align-items: start;
}

.content-section {
  padding: 10px 30px;
  border-radius: var(--radius);
  margin-bottom: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-self: start;
}

/* 사진첩 섹션 배경 */
.photo-section {
  background: white;
  box-shadow: var(--panel-shadow);
}

/* 길드원 섹션 배경 */
.member-section {
  background: white;
  box-shadow: var(--panel-shadow);
}

.section-header {
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  margin-bottom: 20px;
  margin-top: 10px;
}

.section-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* 사진첩 그리드 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  flex: 1;
  align-items: start;
}

@media (max-width: 1160px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: var(--panel-shadow);
  position: relative;
  max-height: 280px;
  display: flex;
  flex-direction: column;
}

.photo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 179, 209, 0.1), rgba(184, 230, 184, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
  z-index: 1;
}

.photo-card:hover::before {
  opacity: 1;
}

.photo-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 35px rgba(224, 139, 93, 0.25);
  border-color: var(--accent);
}

.photo-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  position: relative;
  overflow: hidden;
  max-height: 200px;
  flex-shrink: 0;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-card:hover .photo-thumb img {
  transform: scale(1.05);
}

.photo-meta {
  padding: 8px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.photo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.photo-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.3;
}

.photo-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 0;
}

.photo-info .author {
  font-weight: 500;
  color: var(--text);
}

.photo-info .date {
  color: var(--muted);
}

.photo-info .image-count {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

/* 길드원 그리드 */
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  flex: 1;
  align-items: start;
}

@media (max-width: 1160px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.member-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 0;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--panel-shadow);
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 179, 209, 0.1), rgba(184, 230, 184, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius);
  z-index: 1;
}

.member-card:hover::before {
  opacity: 1;
}

.member-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 35px rgba(224, 139, 93, 0.25);
  border-color: var(--accent);
}

/* 멤버 커버 이미지 */
.member-cover {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.member-avatar-overlay {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(224, 139, 93, 0.4);
  border: 2px solid var(--panel);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.member-card:hover .member-avatar-overlay {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(224, 139, 93, 0.5);
}

/* 멤버 정보 영역 */
.member-info {
  padding: 16px;
}

/* 멤버 태그 */
.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  justify-content: center;
}

.member-tag {
  background: white;
  color: black;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.2s ease;
  border: 2px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.member-tag:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* 마이페이지 스타일 */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 0;
}

.login-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--panel-shadow);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 30px;
  color: var(--text);
  font-size: 24px;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 219, 183, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.login-help {
  margin-top: 30px;
  padding: 20px;
  background: var(--panel-2);
  border-radius: 12px;
  text-align: left;
}

.login-help p {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
}

.login-help ul {
  margin: 0;
  padding-left: 20px;
}

.login-help li {
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--muted);
}

.mypage-content {
  display: grid;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  min-height: 60vh;
  padding: 0 20px;
}

.profile-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--panel-shadow);
  min-height: 25vh;
  display: flex;
  align-items: center;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.profile-cover {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(224, 139, 93, 0.4);
  border: 3px solid var(--panel);
  position: relative;
  z-index: 2;
}

.profile-info h2 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
}

.profile-info p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 16px;
}

.edit-form-card,
.cover-upload-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--panel-shadow);
  min-height: 30vh;
}

.edit-form-card h3,
.cover-upload-card h3 {
  margin: 0 0 24px 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.cover-upload-area {
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--panel-border);
  border-radius: 12px;
  background: var(--panel-2);
}

.upload-help {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .mypage-content {
    min-width: 360px;
    padding: 0 16px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .profile-cover {
    width: 120px;
    height: 120px;
  }
  
  .profile-info h2 {
    font-size: 24px;
  }
  
  .profile-info p {
    font-size: 15px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .login-card {
    margin: 0 16px;
    padding: 24px;
  }
  
  .profile-card,
  .edit-form-card {
    min-height: 20vh;
    padding: 24px;
  }
  
  .edit-form-card h3 {
    font-size: 20px;
  }
  
  .form-group label {
    font-size: 15px;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 15px;
    padding: 10px 14px;
  }
}

/* 로그인 모달 스타일 */
.login-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.login-modal-content {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 20px;
}

.login-modal-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
}

.login-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.login-modal-close:hover {
  background: var(--panel-2);
  color: var(--text);
}

.login-modal-body {
  padding: 0 24px 24px 24px;
}

.login-modal .form-group {
  margin-bottom: 16px;
}

.login-modal .form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.login-modal .form-group input {
  width: 100%;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}


.login-modal .btn {
  width: 100%;
  margin-top: 8px;
}

.login-modal .login-help {
  margin-top: 20px;
  padding: 16px;
  background: var(--panel-2);
  border-radius: 8px;
  text-align: left;
}

.login-modal .login-help p {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}

.login-modal .login-help ul {
  margin: 0;
  padding-left: 16px;
}

.login-modal .login-help li {
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Google 로그인 버튼 스타일 */
.login-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--panel-border);
}

.login-divider span {
  background: var(--panel);
  padding: 0 15px;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.btn-google {
  width: 100%;
  background: #4285f4;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-google:hover {
  background: #3367d6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-google:active {
  transform: translateY(0);
}

.btn-google i {
  font-size: 16px;
}

/* 사용자 상태 스타일 */
.user-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.status-approved {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-rejected {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* 권한 관련 상태 표시 */
.permission-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

.permission-status.admin {
  background: rgba(255, 107, 157, 0.1);
  color: #ff6b9d;
  border: 1px solid rgba(255, 107, 157, 0.3);
}

.permission-status.approved {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.permission-status.pending {
  background: rgba(255, 193, 7, 0.1);
  color: #FFC107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* 권한 관련 버튼 비활성화 상태 */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* 권한 부족 시 표시되는 메시지 */
.permission-message {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #FFC107;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
  text-align: center;
  font-size: 14px;
}

.permission-message.error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

.permission-message.success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4CAF50;
}

/* 관리자 승인/거부 버튼 스타일 */
.btn-approve {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 8px;
}

.btn-approve:hover {
  background: #45a049;
}

.btn-reject {
  background: #f44336;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-reject:hover {
  background: #da190b;
}

.member-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.member-role {
  font-size: 16px;
  color: var(--text);
}

/* 더보기 버튼 */
.more-btn {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  background: var(--button-primary-bg);
  color: var(--text);
  padding: 16px 0;
  border-radius: 30px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(224, 139, 93, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: auto;
  margin-bottom: 10px;
}

.more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: left 0.5s;
}

.more-btn:hover::before {
  left: 100%;
}

.more-btn:hover {
  background: var( --accent);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(216, 124, 74, 0.4);
}

/* ===== PICTURE.HTML (사진첩) 스타일 ===== */

.thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meta {
  padding: 12px 14px 14px;
}

.title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
}

.sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.empty {
  opacity: 0.7;
  text-align: center;
  padding: 26px;
  border: 2px dashed #e2e8f0;
  border-radius: var(--radius);
  background: var(--panel);
}

/* 다이얼로그 */
dialog {
  border: none;
  max-width: 560px;
  width: 96%;
  background: var(--panel-2);
  color: var(--text);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dlg-h {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  background: var(--panel);
}

.dlg-b {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.dlg-f {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--panel);
}

/* 상세 페이지 모달 */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1002;
  display: none;
  align-items: center;
  justify-content: center;
}

.detail-content {
  background: white;
  border-radius: 16px;
  max-width: 710px;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.detail-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.detail-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

.detail-close:hover {
  color: var(--text);
}

.detail-body {
  padding: 24px;
}

.detail-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  max-height: 400px;
  object-fit: cover;
}

.detail-meta {
  display: grid;
  gap: 16px;
}

.detail-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.detail-label {
  font-weight: 600;
  color: var(--accent);
  min-width: 80px;
}

.detail-value {
  color: var(--text);
}



.detail-actions .btn {
  flex: 1;
}

/* ===== GUILD.HTML (길드원 관리) 스타일 ===== */

.cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-placeholder {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  z-index: 1;
}

/* ===== ADMIN.HTML (관리자) 스타일 ===== */

.admin-wrap {
  max-width: 600px;
  margin: 90px auto 50px;
  padding: 0 18px;
}

.login-card {
  background: var(--panel-2);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--accent);
}

.login-subtitle {
  color: var(--muted);
  margin: 0 0 30px;
  font-size: 16px;
}

.form-group {
  margin: 20px 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-btn {
  background: var(--accent-2);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  margin: 20px 0;
  box-shadow: var(--panel-shadow);
}

.admin-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  filter: brightness(1.1);
}

.error {
  color: var(--danger);
  margin: 10px 0;
  font-size: 14px;
}

.success {
  color: var(--ok);
  margin: 10px 0;
  font-size: 14px;
}

.admin-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.admin-status {
  margin-top: 30px;
  padding: 20px;
  background: var(--panel-2);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-status h3 {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
}

.admin-stats div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.admin-stats span {
  color: var(--ok);
  font-weight: 600;
}

.admin-link {
  background: var(--panel);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-link:hover {
  background: var(--panel-2);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-link h3 {
  margin: 0 0 8px;
  color: var(--accent);
}

.admin-link p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.logout-btn {
  background: var(--danger);
  color: #ff8888;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.logout-btn:hover {
  filter: brightness(1.1);
}

/* 삭제 확인 모달 */
.delete-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 수정 모달 */
.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.edit-content {
  background: var(--panel-2);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  border: 1px solid #e2e8f0;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.edit-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
}

.edit-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
}

.edit-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

.edit-close:hover {
  color: var(--text);
}

.edit-body {
  padding: 24px;
}

.edit-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.edit-actions .admin-btn {
  min-width: 100px;
}

/* 길드원 관리 섹션 */
.admin-members-section {
  margin-top: 30px;
  padding: 20px;
  background: var(--panel-2);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-members-section h3 {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.member-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-direction: column;
}

.member-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(224, 139, 93, 0.3);
}

.member-details {
  flex: 1;
}

.member-details h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.member-details p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.member-role {
  font-weight: 500;
  color: var(--text);
}

.member-actions {
  display: flex;
  gap: 8px;
}

.btn-edit, .btn-delete {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-edit {
  background: var(--accent-2);
  color: var(--text);
}

.btn-edit:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-delete {
  background: var(--danger);
  color: white;
}

.btn-delete:hover {
  background: #e53e3e;
  transform: translateY(-1px);
}

.delete-content {
  background: var(--panel-2);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  border: 1px solid #e2e8f0;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.delete-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  background: var(--panel);
}

.delete-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--danger);
}

.delete-body {
  padding: 24px;
  text-align: center;
}

.delete-message {
  color: var(--text);
  margin: 0 0 20px;
  line-height: 1.5;
}

.delete-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.delete-actions .btn {
  min-width: 100px;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-cancel {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #e2e8f0;
}

.btn-cancel:hover {
  filter: brightness(1.1);
}

/* 우측 하단 관리자 버튼 */
.admin-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
}

.admin-float .btn {
  background: var(--warn);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--panel-shadow);
  transition: all 0.3s;
}

.admin-float .btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== 포스팅 다이얼로그 스타일 ===== */

.posting-dialog {
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  border: none;
  border-radius: 12px;
  padding: 0;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.posting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 12px 12px 0 0;
}

.posting-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--panel-2);
  color: var(--text);
}

.posting-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.posting-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* 이미지 업로드 섹션 */
.image-upload-section {
  border-bottom: 1px solid var(--panel-border);
}

.image-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed var(--panel-border);
  margin: 20px;
  border-radius: 12px;
  background: var(--panel-2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-upload-area:hover,
.image-upload-area.drag-over {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.upload-placeholder {
  text-align: center;
}

.upload-placeholder i {
  font-size: 48px;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}

.upload-placeholder p {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.upload-placeholder span {
  font-size: 14px;
  color: var(--muted);
}

.image-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

.image-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.remove-image:hover {
  background: rgba(255, 0, 0, 0.8);
}

/* 텍스트 입력 섹션 */
.text-input-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--panel-border);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.author-name {
  font-weight: 600;
  color: var(--text);
}

#caption {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
}

#caption::placeholder {
  color: var(--muted);
}

.character-count {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* 포스팅 옵션 */
.posting-options {
  padding: 20px 24px;
}

.option-row {
  margin-bottom: 16px;
}

.option-row:last-child {
  margin-bottom: 0;
}

.option-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.option-row input {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
}

.option-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 219, 183, 0.2);
}

/* 포스팅 푸터 */
.posting-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 0 0 12px 12px;
}

/* 다중 이미지 인디케이터 */
.multi-image-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 이미지 캐러셀 */
.image-carousel {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  background: var(--panel-2);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  color: rgb(0, 0, 0);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 100%;
  transition: background 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.carousel-indicator {
  font-size: 14px;
  font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .posting-dialog {
    width: 95%;
    max-height: 95vh;
  }
  
  .image-preview-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 16px;
  }
  
  .posting-header,
  .text-input-section,
  .posting-options,
  .posting-footer {
    padding: 16px 20px;
  }
  
  .carousel-container {
    height: 300px;
  }
}

/* ===== 반응형 디자인 ===== */

@media (max-width: 768px) {
  .wrap {
    padding-bottom: 80px; /* 하단 메뉴바 공간 확보 */
  }
  
  .admin-wrap {
    padding: 0 12px;
    margin: 80px auto 30px;
    padding-bottom: 80px; /* 하단 메뉴바 공간 확보 */
  }
  
  /* 모바일에서 하단 메뉴바 표시 */
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* 모바일에서 기존 헤더 숨김 */
  .main-header {
    display: none;
  }
  
  header {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  header h1 {
    font-size: 20px;
    text-align: center;
  }
  
  .search {
    margin-left: 0;
    margin-top: 8px;
  }
  
  .search input {
    min-width: 60%;
    width: 60%;
  }
  
  .toolbar {
    justify-content: center;
    margin: 12px 0 18px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 12px;
  }
  
  /* members.html 반응형 */
  .members-container {
    padding: 16px;
  }
  
  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .members-grid .cover {
    height: 250px;
  }
  
  .members-grid .meta {
    padding: 14px;
  }
  
  .row2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  dialog {
    width: 98%;
    max-width: none;
    margin: 10px;
  }
  
  .dlg-b {
    padding: 12px;
  }
  
  .dlg-f {
    padding: 10px 12px;
    flex-direction: column;
  }
  
  .dlg-f .btn {
    width: 100%;
    margin: 2px 0;
  }
  
  .detail-modal {
    padding: 1px;
  }
  
  .detail-content {
    max-width: calc(100% - 20px);
    max-height: 95vh;
  }
  
  .detail-header {
    padding: 16px 20px;
  }
  
  .detail-body {
    padding: 20px;
  }
  
  .detail-title {
    font-size: 20px;
  }
  
  .detail-actions {
    flex-direction: column;
  }
  
  .admin-float {
    bottom: 15px;
    right: 15px;
  }
  
  .admin-float .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .login-card {
    padding: 30px 20px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .admin-links {
    grid-template-columns: 1fr;
  }
  
  /* 헤더 반응형 */
  .header-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  
  /* 모바일에서 인증 버튼 컨테이너 스타일 */
  .auth-buttons {
    gap: 4px;
  }
  
  .nav-text {
    font-size: 12px;
  }
  
  .header-content {
    width: 100%;
    padding: 0 16px;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    display: flex;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo h1 {
    font-size: 20px;
    margin: 0;
    line-height: 1;
    gap: 6px;
  }
  
  .logo-img {
    width: 32px;
    height: 32px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .nav-icon {
    width: 18px;
    height: 18px;
  }
  
  .sidebar-icon {
    width: 20px;
    height: 20px;
  }
  
  .header-logout {
    padding: 6px 12px;
    font-size: 14px;
    height: 36px;
  }
  
  /* 페이지 헤더 모바일 */
  .page-header {
    margin-top: 10px;
  }
  
  .page-title-row {
    align-items: center;
    gap: 12px;
  }
  
  .create-post-btn {
    display: none;
  }
  
  .search {
    position: static;
    transform: none;
    margin-bottom: 0;
  }
  
  .search input {
    width: 150px;
    min-width: 120px;
    font-size: 13px;
    padding: 8px 30px 8px 12px;
  }
  
  .search i {
    right: 10px;
    font-size: 12px;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .search-toggle-btn {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  /* 메인 페이지 반응형 */
  .hero-title {
    font-size: 48px;
  }
  
  .hero-description {
    font-size: 18px;
  }
  
  /* 태블릿에서 1컬럼으로 변경 */
  .content-sections-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
    width: calc(100% - 20px);
    align-items: start;
  }
  
  .content-section {
    padding: 6px 10px;
    margin-bottom: 20px;
    min-height: 500px;
  }
  
  /* 모바일에서도 데스크톱과 동일한 배경 유지 */
  .photo-section {
    background: white;
  }
  
  .member-section {
    background: white;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-icon {
    width: 32px;
    height: 32px;
  }
  
  .page-icon {
    width: 28px;
    height: 28px;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .card .meta {
    padding: 10px 12px 12px;
  }
  
  .row {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }
  
  .row input[type="file"] {
    margin-bottom: 4px;
  }
  
  .btn {
    width: 100%;
    margin: 2px 0;
  }
}

@media (max-width: 480px) {
  .wrap {
    margin: 16px 0;
  }
  
  header h1 {
    font-size: 18px;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 10px;
  }
  
  /* members.html 모바일 반응형 */
  .members-container {
    padding: 12px;
  }
  
  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  
  .members-grid .cover {
    height: 250px;
  }
  
  .members-grid .meta {
    padding: 12px;
  }
  
  .members-grid .title {
    font-size: 20px;
  }
  
  .members-grid .mbti {
    font-size: 11px;
    padding: 2px 6px;
  }
  
  .members-grid .role {
    font-size: 16px;
  }
  
  .members-grid .bio {
    font-size: 18px;
  }
  
  .card .meta {
    padding: 8px 10px 10px;
  }
  
  .title {
    font-size: 15px;
  }
  
  .sub {
    font-size: 12px;
  }
  
  .row {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  
  .btn {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .pill {
    font-size: 10px;
    padding: 1px 6px;
  }
  
  input, textarea {
    padding: 6px 8px;
    font-size: 13px;
  }
  
  label {
    font-size: 11px;
  }
  
  .page-title-row {
    gap: 8px;
  }
  
  .search input {
    width: 120px;
    min-width: 100px;
    font-size: 12px;
    padding: 6px 25px 6px 10px;
  }
  
  .search i {
    right: 8px;
    font-size: 11px;
  }
  
  .page-header h1 {
    font-size: 20px;
  }
  
  .search-toggle-btn {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
  
  /* 메인 페이지 모바일 */
  .hero-section {
    aspect-ratio: 9/16;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .content-sections-container {
    gap: 15px;
    padding: 0 12px;
    align-items: start;
  }
  
  .content-section {
    padding: 4px 10px;
    margin-bottom: 15px;
    min-height: 450px;
  }
  
  /* 작은 모바일에서도 데스크톱과 동일한 배경 유지 */
  .photo-section {
    background: white;
  }
  
  .member-section {
    background: white;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-icon {
    width: 28px;
    height: 28px;
  }
  
  .page-icon {
    width: 24px;
    height: 24px;
  }
  
  .nav-icon {
    width: 16px;
    height: 16px;
  }
  
  .sidebar-icon {
    width: 18px;
    height: 18px;
  }
  
  .header-content {
    padding: 0 12px;
    height: 56px;
  }
  
  .logo h1 {
    font-size: 18px;
    gap: 4px;
  }
  
  .logo-img {
    width: 28px;
    height: 28px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .mobile-menu-btn {
    min-width: 40px;
    min-height: 40px;
  }
  
  .mobile-menu-btn span {
    width: 20px;
    height: 2px;
  }
  
  .header-logout {
    padding: 5px 10px;
    font-size: 13px;
    height: 32px;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* ===== 공지사항 스타일 ===== */

/* 공지사항 컨테이너 */
.notice-container {
  display: flex;
  gap: 24px;
  margin: 0 auto;
  padding: 0 20px;
}

.notice-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.notice-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--panel-shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--warn);
}

.notice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.notice-header {
  margin-bottom: 16px;
}

.notice-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.notice-title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.notice-title.important {
  color: var(--accent);
}

.notice-title i {
  margin-right: 8px;
}

.notice-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notice-edit-btn,
.notice-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.notice-edit-btn:hover {
  background: var(--primary);
  color: white;
}

.notice-delete-btn:hover {
  background: var(--danger);
  color: white;
}

.notice-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.notice-author {
  font-weight: 500;
}

.notice-date {
  opacity: 0.8;
}

.notice-content {
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.notice-content p {
  margin: 0;
  white-space: pre-wrap;
}

/* 공지사항 작성 폼 */
.notice-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.notice-form {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--panel-shadow);
}

.notice-form .form-group {
  margin-bottom: 24px;
}

.notice-form .form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.notice-form .form-group input,
.notice-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.notice-form .form-group textarea {
  resize: vertical;
  min-height: 200px;
}

.notice-form .form-group input:focus,
.notice-form .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 219, 183, 0.2);
}

/* 공지사항 체크박스 스타일 */
.notice-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  padding: 12px 16px;
  background: var(--bg);
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.notice-checkbox-label:hover {
  background: var(--panel-2);
  border-color: var(--accent);
}

.notice-checkbox-label input[type="checkbox"] {
  display: none;
}

.notice-checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--panel-border);
  border-radius: 6px;
  margin-right: 16px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: var(--panel);
}

.notice-checkbox-label input[type="checkbox"]:checked + .notice-checkmark {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.notice-checkbox-label input[type="checkbox"]:checked + .notice-checkmark::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.notice-form .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
}

/* 공지사항 조각 (메인 페이지용) */
.notice-snippet {
  background: var(--panel);
  border-radius: 0;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--panel-shadow);
  width: calc(100% - 40px);
  margin-top: 20px;
}

/* 메인 페이지의 공지사항 스니펫 */
.main-content > .notice-snippet {
  margin: 0 0 24px 0;
  width: 100% - 40px;
}

.notice-snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.notice-snippet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.notice-snippet-title i {
  color: var(--accent);
}

.notice-snippet-more {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.notice-snippet-more:hover {
  color: var(--text);
}

.notice-snippet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-snippet-item {
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.notice-snippet-item:hover {
  background: var(--panel-2);
  transform: translateX(4px);
}

.notice-snippet-item-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice-snippet-item-title.important {
  color: #ff1613;
}

.notice-snippet-item-meta {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ===== 공지사항 페이지 전용 스타일 ===== */

/* 공지사항 페이지 카드 스타일 (세로 비율) */
.notice-page .notice-card {
  background: var(--panel);
  border-radius: 0 16px 16px 0;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 6px solid var(--warn);
  margin-bottom: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.notice-page .notice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-left-color: var(--accent);
}

.notice-page .notice-header {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.notice-page .notice-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

.notice-page .notice-title {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.notice-page .notice-title.important {
  color: var(--accent);
}

.notice-page .notice-title i {
  margin-right: 10px;
  font-size: 22px;
}

.notice-page .notice-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.notice-page .notice-edit-btn,
.notice-page .notice-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 16px;
  position: relative;
}

.notice-page .notice-edit-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.notice-page .notice-delete-btn:hover {
  background: var(--danger);
  color: white;
  transform: scale(1.1);
}

.notice-page .notice-delete-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.notice-page .notice-delete-btn:disabled:hover {
  background: none;
  color: var(--muted);
  transform: none;
}

.notice-page .notice-meta {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 8px;
}

.notice-page .notice-author {
  font-weight: 600;
  color: var(--accent);
}

.notice-page .notice-date {
  opacity: 0.8;
}

.notice-page .notice-content {
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.notice-page .notice-content p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Quill 에디터 다크 테마 */
.ql-toolbar {
  background: var(--panel);
  border: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
}

.ql-container {
  background: var(--bg);
  border: 2px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  color: var(--text);
}

.ql-editor {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.ql-editor.ql-blank::before {
  color: var(--muted);
  font-style: normal;
}

.ql-toolbar .ql-stroke {
  stroke: var(--text);
}

.ql-toolbar .ql-fill {
  fill: var(--text);
}

.ql-toolbar button:hover .ql-stroke {
  stroke: var(--accent);
}

.ql-toolbar button:hover .ql-fill {
  fill: var(--accent);
}

.ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--accent);
}

.ql-toolbar button.ql-active .ql-fill {
  fill: var(--accent);
}

.ql-snow .ql-picker {
  color: var(--text);
}

.ql-snow .ql-picker-options {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ql-snow .ql-picker-item {
  color: var(--text);
}

.ql-snow .ql-picker-item:hover {
  background: var(--panel-2);
}

/* 공지사항 HTML 콘텐츠 스타일 */
.notice-html-content {
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.notice-html-content p {
  margin: 0 0 16px 0;
  word-break: break-word;
}

.notice-html-content p:last-child {
  margin-bottom: 0;
}

.notice-html-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.notice-html-content h1,
.notice-html-content h2,
.notice-html-content h3,
.notice-html-content h4,
.notice-html-content h5,
.notice-html-content h6 {
  color: var(--text);
  margin: 24px 0 16px 0;
  font-weight: 600;
  line-height: 1.3;
}

.notice-html-content h1 { font-size: 28px; }
.notice-html-content h2 { font-size: 24px; }
.notice-html-content h3 { font-size: 20px; }
.notice-html-content h4 { font-size: 18px; }
.notice-html-content h5 { font-size: 16px; }
.notice-html-content h6 { font-size: 14px; }

.notice-html-content ul,
.notice-html-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.notice-html-content li {
  margin: 8px 0;
  line-height: 1.6;
}

.notice-html-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: all 0.3s ease;
}

.notice-html-content a:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

.notice-html-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 16px 0;
  padding: 16px 20px;
  background: var(--panel-2);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.notice-html-content code {
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--accent);
}

.notice-html-content pre {
  background: var(--panel-2);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.notice-html-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

/* 공지사항 모바일 반응형 */
@media (max-width: 768px) {
  .notice-container {
    padding: 0 16px;
  }
  
  .notice-page .notice-card {
    padding: 24px;
    min-height: 160px;
    margin-bottom: 20px;
  }
  
  .notice-page .notice-title {
    font-size: 20px;
  }
  
  .notice-page .notice-title i {
    font-size: 18px;
  }
  
  .notice-page .notice-meta {
    font-size: 14px;
    gap: 16px;
  }
  
  .notice-page .notice-content {
    font-size: 15px;
  }
  
  .notice-form-container {
    padding: 0 16px;
  }
  
  .notice-form {
    padding: 24px;
  }
  
  .notice-form .form-group input,
  .notice-form .form-group textarea {
    font-size: 15px;
    padding: 10px 14px;
  }
  
  .notice-checkbox-label {
    padding: 10px 14px;
    font-size: 15px;
  }
  
  .notice-checkmark {
    width: 20px;
    height: 20px;
    margin-right: 12px;
  }
  
  .notice-checkbox-label input[type="checkbox"]:checked + .notice-checkmark::after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border-width: 0 2px 2px 0;
  }
  
  .notice-snippet {
    padding: 16px;
    margin-bottom: 20px;
  }
  
  .notice-snippet-title {
    font-size: 16px;
  }
  
  .notice-snippet-item {
    padding: 10px 14px;
  }
  
  .notice-snippet-item-title {
    font-size: 14px;
  }
  
  /* 메인 페이지 공지사항 모바일 */
  .main-content > .notice-snippet {
    width: 100% - 40px;
    padding: 16px;
  }
  
  /* 공지사항 HTML 콘텐츠 모바일 스타일 */
  .notice-html-content {
    font-size: 15px;
  }
  
  .notice-html-content h1 { font-size: 24px; }
  .notice-html-content h2 { font-size: 20px; }
  .notice-html-content h3 { font-size: 18px; }
  .notice-html-content h4 { font-size: 16px; }
  .notice-html-content h5 { font-size: 15px; }
  .notice-html-content h6 { font-size: 14px; }
  
  .notice-html-content img {
    margin: 12px 0;
    border-radius: 6px;
  }
  
  .notice-html-content ul,
  .notice-html-content ol {
    padding-left: 20px;
  }
  
  .notice-html-content blockquote {
    padding: 12px 16px;
    margin: 12px 0;
  }
  
  .notice-html-content pre {
    padding: 12px;
    margin: 12px 0;
  }
  
  /* 공지사항 컨테이너 모바일 스타일 */
  .notice-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* 공지사항 리스트 모바일 스타일 */
  .notice-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}

/* ===== 크롭 모달 스타일 ===== */
.crop-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.crop-modal-content {
  position: relative;
  background: var(--panel);
  margin: 2% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.crop-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}

.crop-modal-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.crop-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-modal-close:hover {
  background: var(--danger);
  color: white;
  transform: scale(1.1);
}

.crop-modal-body {
  padding: 24px;
}

.crop-container {
  width: 100%;
  height: 400px;
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 2px solid var(--border);
}

.crop-container img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.crop-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.crop-controls .btn {
  min-width: 100px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.crop-controls .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 크롭 모달 모바일 반응형 */
@media (max-width: 768px) {
  .crop-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 85vh;
  }
  
  .crop-modal-header {
    padding: 16px 20px;
  }
  
  .crop-modal-header h3 {
    font-size: 16px;
  }
  
  .crop-modal-body {
    padding: 20px;
  }
  
  .crop-container {
    height: 300px;
    margin-bottom: 20px;
  }
  
  .crop-controls {
    flex-direction: column;
    gap: 12px;
  }
  
  .crop-controls .btn {
    width: 100%;
    min-width: auto;
  }
  
  /* 모바일 권한 관련 스타일 */
  .permission-status {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .permission-message {
    font-size: 13px;
    padding: 10px 12px;
    margin: 12px 0;
  }
  
  .notice-actions {
    gap: 6px;
  }
  
  .notice-edit-btn,
  .notice-delete-btn {
    padding: 6px;
    font-size: 14px;
  }
}



.detail-like-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-like-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.detail-like-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.detail-like-btn:disabled:hover {
  background: none;
  transform: none;
}

.detail-like-btn i {
  font-size: 24px;
  transition: all 0.3s ease;
}

/* 좋아요 아이콘 - 기본 상태 (스트로크만) */
.detail-like-btn i {
  color: #333;
}

/* 좋아요 아이콘 - 좋아요 상태 (빨간색 fill) */
.detail-like-btn.liked i {
  color: #ff6b9d;
  animation: heartBeat 0.6s ease-in-out;
}


.like-count {
  font-weight: 600;
  font-size: 12px;
  margin-left: 4px;
  color: #666;
}

/* 좋아요 애니메이션 */
@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}


/* 좋아요 애니메이션 */
.like-animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 200;
}

@keyframes likeHeartFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -150%) scale(1.2) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -300%) scale(0.8) rotate(30deg);
  }
}

.like-heart-animation {
  animation: likeHeartFloat 1.5s ease-out forwards;
}

/* 모바일 태그와 좋아요/공유 버튼 */
@media (max-width: 768px) {
  .detail-tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
  }
  
  .detail-tags-content {
    width: 100%;
  }
  
  .detail-actions {
    align-self: flex-end;
    gap: 8px;
    flex-direction: row;
  }
  
  /* 모바일 인스타그램 스타일 */
  .interaction-buttons {
    padding: 4px 4px 4px;
    gap: 4px;
  }
  
  .interaction-buttons button {
    font-size: 20px;
  }
  
  .like-count-section,
  .tags-section,
  .comments-section {

  }
  
  .comment-input-section {
    padding: 8px 6px;
  }
  
  .detail-like-btn {
    padding: 6px;
  }
  
  /* 모바일에서 post-meta에 작성자 표시 */
  .post-meta .post-author {
    display: inline;
  }
  
  .post-meta .image-count {
    display: none;
  }
  
  
  .detail-like-btn i {
    font-size: 20px;
  }
  
  .like-count {
    font-size: 11px;
  }
  
  .tag-item {
    font-size: 11px;
  }

  /* 모바일 캐러셀 버튼 */
  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .carousel-prev {
    left: 15px;
  }

  .carousel-next {
    right: 15px;
  }

  .image-indicators {
    bottom: 15px;
    padding: 6px 10px;
  }

  .image-indicator {
    width: 6px;
    height: 6px;
  }
  
  .download-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
    top: 15px;
    right: 15px;
  }
}
