/* -------------------------------------------------------------
   Universal Base Core & Tag System for All Pages
   File: css/page.css
   ------------------------------------------------------------- */

/* ----------------------------------
   1. Universal Base CTA Button (.works-cta-btn)
   ---------------------------------- */
.works-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 0 !important; /* 0 Border Radius for Newspaper Aesthetic */
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(129, 140, 248, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.works-cta-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.works-cta-btn:hover {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.55);
  transform: translateY(-2px);
}

.works-cta-btn:hover svg {
  transform: translateX(4px);
}

/* ----------------------------------
   2. Date Badge (.bento-date)
   ---------------------------------- */
.tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  opacity: 0.65;
  flex-shrink: 0;
}

.tag-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #9ca3af;
  white-space: nowrap;
  width: auto;
}

/* ----------------------------------
   3. Tag Container & Category Tags
   ---------------------------------- */
.works-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  width: 100%;
}

.works-category-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px 0 16px;
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  width: auto;
  max-width: max-content;
  clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 10px 100%, 0% 50%);
  cursor: default;
}

/* 🎮 Game Category (INDIE GAME - Purple Glow) */
.works-category-tag--game {
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
}

/* 🎬 Visual Category (VISUAL - Yellow Glow) */
.works-category-tag--visual {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

/* 🎵 Music Category (MUSIC - Mint Green Glow) */
.works-category-tag--music {
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

/* ----------------------------------
   4. SKILL / Tool Pointed-Left Tags
   ---------------------------------- */
.works-skill-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px 0 16px;
  background: rgba(255, 255, 255, 0.06);
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: #9ca3af;
  white-space: nowrap;
  width: auto;
  max-width: max-content;
  clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 10px 100%, 0% 50%);
  cursor: default;
}

.works-skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  opacity: 0.85;
  flex-shrink: 0;
}

.works-skill-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.works-skill-icon--fill svg {
  fill: currentColor;
  stroke: none;
}