/* ========== 연애.zip Main Page ========== */

/* Header */
.main-header {
  text-align: center;
  padding: 48px 20px 24px;
}

.logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-accent {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-zip {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

.main-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 400;
}

/* Tab Filters */
.tab-filters {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tab-filters::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
}

.tab-btn.active {
  background: var(--accent-pink);
  color: #fff;
  border-color: var(--accent-pink);
}

@media (hover: hover) {
  .tab-btn:hover:not(.active) {
    border-color: var(--accent-pink);
    color: var(--accent-pink);
  }
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 20px 40px;
}

/* Test Card */
.test-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
  border: 1.5px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) {
  .test-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15);
    border-color: var(--accent-pink);
  }
}

.test-card:active {
  transform: translateY(-1px);
}

/* Disabled card (준비중) */
.test-card.disabled {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

/* Card Thumbnail */
.card-thumbnail {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 4px;
}

/* Card Accent Bar (fallback when no image) */
.card-accent {
  width: 40px;
  height: 4px;
  border-radius: 2px;
}

/* Card Title */
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Card Subtitle */
.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Card Meta (participants + duration) */
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Badges */
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.badge-hot {
  background: linear-gradient(135deg, #FF6B6B, #FF6B9D);
  color: #fff;
}

.badge-new {
  background: linear-gradient(135deg, var(--accent-mint), #34D399);
  color: #fff;
}

.badge-soon {
  background: var(--border);
  color: var(--text-secondary);
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 24px 20px 40px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 360px) {
  .card-grid {
    gap: 10px;
    padding: 0 14px 40px;
  }

  .test-card {
    padding: 16px 12px;
  }

  .card-accent {
    width: 32px;
  }

  .card-thumbnail {
    width: 52px;
    height: 52px;
  }

  .card-title {
    font-size: 14px;
  }

  .logo {
    font-size: 28px;
  }
}

@media (min-width: 481px) {
  .container {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}
