/* ============================================
   MAIN PAGE STYLES
   ============================================ */

/* Category Tabs */
.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 20px;
  position: sticky;
  top: var(--header-height);
  z-index: 100;
}

.category-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.category-tab:hover {
  color: var(--primary);
}

.category-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Category Content Area */
.category-content {
  padding: 24px 0;
}

/* Popular Tags */
.popular-tags {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.popular-tags-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 12px;
}

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

.popular-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  background: var(--gray-100);
  color: var(--gray-700);
  transition: var(--transition);
}

.popular-tag:hover {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
}

/* Party Grid */
.party-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.party-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.party-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.party-card-header {
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.party-card-service {
  display: flex;
  align-items: center;
  gap: 10px;
}

.party-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.party-card-service-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-800);
}

.party-card-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-live {
  background: rgba(0, 184, 148, 0.1);
  color: var(--success);
}

.badge-waiting {
  background: rgba(253, 203, 110, 0.15);
  color: #E17055;
}

.badge-full {
  background: rgba(225, 112, 85, 0.1);
  color: var(--danger);
}

.party-card-body {
  padding: 0 16px 16px;
}

.party-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.party-card-desc {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.party-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.party-card-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.party-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.party-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.party-card-price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 2px;
}

.party-card-seats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.seat-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
}

.seat-dot.filled {
  background: var(--primary);
}

.seat-dot.empty {
  background: var(--gray-300);
}

/* Make Party Button */
.make-party-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 100;
}

.make-party-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  color: var(--white);
}

/* Party List View */
.party-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.party-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.party-list-item:hover {
  box-shadow: var(--shadow-md);
}

.party-list-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.party-list-body {
  flex: 1;
  min-width: 0;
}

.party-list-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.party-list-meta {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 12px;
}

.party-list-right {
  text-align: right;
  flex-shrink: 0;
}

.party-list-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.party-list-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state-text {
  font-size: 0.95rem;
}

/* Service Colors */
.bg-netflix { background: #E50914; }
.bg-youtube { background: #FF0000; }
.bg-tving { background: #FF2C55; }
.bg-wave { background: #00C3EC; }
.bg-disney { background: #113CCF; }
.bg-watcha { background: #FF2C55; }
.bg-laftel { background: #A755F1; }
.bg-appleone { background: #333; }
.bg-coupang { background: #FCD200; color: #333; }
.bg-prime { background: #00A8E1; }
.bg-spotify { background: #1DB954; }
.bg-apple-music { background: #FC3C44; }
.bg-melon { background: #333; }
.bg-steam { background: #1B2838; }
.bg-chatgpt { background: #10A37F; }
.bg-duolingo { background: #58CC02; }
.bg-default { background: var(--primary); }

/* Login Page */
.login-page {
  max-width: 440px;
  margin: 40px auto;
  padding: 0 20px;
}

.login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--dark);
}

.login-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray-500);
  font-size: 0.8rem;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.login-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.login-social-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.login-social-btn:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.login-footer a {
  font-weight: 600;
  color: var(--primary);
}

/* Register Page */
.register-page {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 20px;
}

.register-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}

/* Notice Board */
.board-page {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 20px;
}

.board-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
}

.board-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.board-search .form-select {
  width: 140px;
}

.board-search .form-input {
  flex: 1;
}

.board-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.board-table table {
  width: 100%;
  border-collapse: collapse;
}

.board-table th {
  padding: 14px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-600);
  text-align: left;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.board-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}

.board-table tr:last-child td {
  border-bottom: none;
}

.board-table tr:hover td {
  background: var(--gray-50);
}

.board-num {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.board-notice-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  margin-right: 8px;
}

.board-date {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.board-count {
  color: var(--gray-500);
  font-size: 0.8rem;
}

/* Page Title Section */
.page-title-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 20px;
  text-align: center;
}

.page-title-section h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.page-title-section p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 8px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .arrow {
  transition: transform 0.3s ease;
  color: var(--gray-500);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* Party Detail */
.party-detail {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 20px;
}

.party-detail-header {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.party-detail-service {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.party-detail-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.party-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.party-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.party-detail-price-box {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.party-detail-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.party-detail-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.party-detail-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.party-detail-body p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.party-members {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.party-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.party-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
  font-weight: 700;
}

.party-member-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
}

.party-member-role {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}

/* My Page */
.mypage {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 20px;
}

.mypage-profile {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.mypage-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}

.mypage-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mypage-info p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.mypage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mypage-stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.mypage-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.mypage-stat-label {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.mypage-menu {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mypage-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-800);
  transition: var(--transition);
}

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

.mypage-menu-item:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.mypage-menu-item .icon {
  width: 20px;
  text-align: center;
  color: var(--gray-500);
}

.mypage-menu-item .arrow {
  margin-left: auto;
  color: var(--gray-400);
}

/* Terms / Privacy Page */
.content-page {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 20px;
}

.content-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.content-box h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--dark);
}

.content-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 12px;
  color: var(--dark);
}

.content-box p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.content-box ul, .content-box ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-box ul li, .content-box ol li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray-700);
  list-style: disc;
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .category-tab {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
  
  .party-grid {
    grid-template-columns: 1fr;
  }
  
  .party-list-item {
    flex-wrap: wrap;
  }
  
  .board-table th:nth-child(3),
  .board-table td:nth-child(3) {
    display: none;
  }
  
  .mypage-stats {
    grid-template-columns: 1fr;
  }
  
  .mypage-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .party-detail-price-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .login-box, .register-box {
    padding: 28px 20px;
  }
  
  .content-box {
    padding: 24px 20px;
  }
}
