:root {
  --primary: #4f46e5;
  --primary-light: #e0e7ff;
  --bg-color: #f3f4f6;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
}

.v2-container * {
  box-sizing: border-box;
  font-family: 'Pretendard', sans-serif;
}

.v2-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  background-color: transparent;
  color: var(--text-main);
  padding-bottom: 60px;
  min-height: 50vh;
}

/* ==================================
   Main V2 (Grid Layout)
   ================================== */
.v2-header-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: white;
  padding: 20px;
  margin: 20px 16px 16px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}
.v2-header-banner h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; color:white; }
.v2-header-banner p { font-size: 14px; opacity: 0.9; line-height: 1.4; margin-bottom: 12px; }
.v2-btn-create {
  background: white; color: var(--primary);
  padding: 8px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 700; border: none; cursor: pointer;
}

.v2-category-scroll {
  display: flex; gap: 8px; padding: 0 16px 16px; overflow-x: auto; scrollbar-width: none;
}
.v2-category-scroll::-webkit-scrollbar { display: none; }
.v2-pill {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: var(--card-bg); color: var(--text-sub);
  border: 1px solid var(--border-color); cursor: pointer; white-space: nowrap; text-decoration:none;
}
.v2-pill.active { background: var(--text-main); color: white; border-color: var(--text-main); }
.v2-pill:hover { background: #e5e7eb; }

.v2-club-grid { padding: 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1200px) {
  .v2-club-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .v2-club-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .v2-club-grid { grid-template-columns: repeat(2, 1fr); }
}
.v2-club-card {
  background: var(--card-bg); border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(149, 157, 165, 0.1);
  display: flex; flex-direction: column; text-decoration:none; color:inherit;
  transition: transform 0.2s;
}
.v2-club-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(149, 157, 165, 0.15); }

.v2-card-cover { height: 100px; position: relative; background:#ddd; }
.v2-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.v2-card-category-badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.6); color: white; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }

.v2-card-body { padding: 12px; position: relative; flex: 1; display: flex; flex-direction: column; }
.v2-card-profile {
  position: absolute; top: -20px; right: 12px;
  width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid var(--card-bg); object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,0.1); background:#fff;
}
.v2-card-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; padding-right: 46px; line-height: 1.3; color:var(--text-main); }
.v2-card-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }

.v2-card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 8px; margin-top: auto; }
.v2-card-tags { font-size: 12px; color: var(--primary); font-weight: 600; }
.v2-card-stats { font-size: 12px; color: var(--text-sub); }


/* ==================================
   Detail V2 (Board Centric)
   ================================== */
.v2-view-banner { position: relative; margin-bottom: 40px; }
.v2-cover-img { width: 100%; height: 200px; object-fit: cover; background:#ddd;}
.v2-profile-wrap { position: absolute; bottom: -30px; left: 20px; display: flex; align-items: flex-end; gap: 16px; }
.v2-profile-img { width: 80px; height: 80px; border-radius: 20px; border: 4px solid var(--bg-color); object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.1); background:#fff;}
.v2-header-actions { position: absolute; right: 20px; bottom: -20px; display:flex; gap:8px; }
.v2-btn-ghost { background: var(--card-bg); padding: 6px 12px; border-radius: 16px; font-size: 12px; font-weight: 700; border: 1px solid var(--border-color); text-decoration:none; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.v2-club-info { padding: 0 20px 16px; }
.v2-club-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; color:var(--text-main); line-height:1.2;}
.v2-club-desc { font-size: 14px; color: var(--text-sub); }

.v2-top-actions { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.v2-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-action-btn { background: var(--card-bg); padding: 12px; border-radius: 16px; text-align: center; font-size: 14px; font-weight: 700; color: var(--text-main); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid var(--border-color); transition: .2s;}
.v2-action-btn:hover { background: #f9fafb; }
.v2-action-btn.v2-highlight { background: var(--primary); color: white; border: none; }
.v2-action-btn.v2-highlight:hover { background: #4338ca; }

.v2-board-section { padding: 0 16px 40px; display: flex; flex-direction: column; gap: 20px; }
.v2-board-card { background: var(--card-bg); border-radius: 24px; padding: 20px; box-shadow: 0 8px 24px rgba(149, 157, 165, 0.08); border: 1px solid rgba(255,255,255,0.5); }
.v2-board-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.v2-board-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; color:var(--text-main);}
.v2-board-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.v2-board-more { font-size: 13px; color: var(--text-sub); font-weight: 600; text-decoration: none; background: var(--bg-color); padding: 4px 10px; border-radius: 12px; transition:.2s;}
.v2-board-more:hover { background: #e5e7eb; color: var(--text-main); }

.v2-notice-box { background: var(--bg-color); border-radius: 16px; padding: 16px; border-left: 4px solid var(--primary); transition:.2s; }
.v2-notice-box:hover { background: #ebeef2; }
.v2-notice-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; color:var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-notice-date { font-size: 12px; color: var(--text-sub); }

.v2-feed-mini { padding-top: 14px; border-top: 1px solid var(--border-color); margin-top: 14px; transition: background .2s; border-radius:8px;}
.v2-feed-mini:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.v2-feed-mini:hover { background: #f9fafb; }
.v2-feed-author { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.v2-author-img { width: 28px; height: 28px; border-radius: 50%; background:#ddd; object-fit:cover;}
.v2-author-info { font-size: 13px; font-weight: 700; color: var(--text-main); display: flex; gap: 8px; align-items:center; }
.v2-author-info span { font-weight: 400; color: var(--text-sub); font-size: 11px; }
.v2-feed-content { font-size: 15px; color: var(--text-main); margin-bottom: 10px; line-height: 1.5; font-weight:500;}
.v2-feed-actions { display: flex; gap: 14px; font-size: 12px; color: var(--text-sub); font-weight: 600; }
.v2-feed-actions span { color: #f43f5e; }

.v2-photo-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
.v2-photo-scroll::-webkit-scrollbar { display: none; }
.v2-photo-item { min-width: 140px; height: 140px; border-radius: 16px; overflow: hidden; position: relative; background:#eee; display:block;}
.v2-photo-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.v2-photo-item:hover img { transform: scale(1.05); }
.v2-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 10px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8)); color: white; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
