/* Works Detail Page Styles */
/* Base styles are loaded from base.css */

.work-detail {
  padding-top: 80px;
}

.work-detail__nav-top {
  padding: 24px 0;
}

/* Hero */
.work-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.work-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.work-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 0;
  color: #fff;
}

.work-hero__category {
  display: inline-block;
  background-color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.work-hero__title {
  font-size: 36px;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

/* Body */
.work-detail__body {
  padding-top: 60px;
  padding-bottom: 100px;
  max-width: 1000px;
  margin: 0 auto;
}

.work-overview {
  margin-bottom: 60px;
  border-bottom: 1px solid #eee;
  padding-bottom: 40px;
}

.work-overview__title {
  font-size: 24px;
  margin-bottom: 24px;
}

.work-overview__text {
  font-size: 16px;
  line-height: 1.8;
}

/* Grid Layout */
.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.work-section {
  margin-bottom: 48px;
}

.work-section__title {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.work-section__icon {
  color: var(--color-primary);
  width: 24px;
  height: 24px;
}

.work-section__box {
  background-color: var(--color-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.point-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.point-list__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}

.point-list__number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* Sidebar */
.work-sidebar {
  position: sticky;
  top: 100px;
}

.button--external {
  display: flex;
  width: 100%;
  justify-content: center;
  background-color: #333;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  font-weight: 700;
  margin-bottom: 32px;
  transition: opacity 0.3s;
}

.button--external:hover {
  opacity: 0.9;
}

.work-info {
  background-color: var(--color-bg);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.work-info__group {
  margin-bottom: 24px;
}

.work-info__group:last-child {
  margin-bottom: 0;
}

.work-info__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-info__icon {
  width: 16px;
  height: 16px;
}

.work-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-info__value {
  margin: 0;
  font-size: 14px;
}

.tag {
  font-size: 12px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #eee;
  color: #666;
}

/* Page Nav */
.page-nav {
  margin-top: 80px;
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 40px;
}

.page-nav__link {
  display: inline-block;
  text-decoration: none;
  color: #888;
}

.page-nav__text {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.page-nav__bar {
  display: block;
  width: 40px;
  height: 2px;
  background-color: #ddd;
  margin: 0 auto;
  transition: 0.3s;
}

.page-nav__link:hover .page-nav__text {
  color: var(--color-primary);
}

.page-nav__link:hover .page-nav__bar {
  background-color: var(--color-primary);
  width: 60px;
}