/* StoryFab X - Project Detail Cinema Director Styles */
/* 电影导演工作室风格 - 项目详情页 */

@import (reference) '../../styles/mixins.less';
@import (reference) '../../styles/variables.less';

@bg-primary: #0d0d0f;

@radius-xl: 16px;

.container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 页面头部 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  background: @bg-card;
  backdrop-filter: blur(20px);
  border-radius: @radius-xl;
  border: 1px solid @border-subtle;
}

.titleArea {
  display: flex;
  flex-direction: column;
  gap: 8px;

  h2 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 28px;
    background: linear-gradient(90deg, @film-amber, @film-amber-light);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
  }

  .projectMeta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: @text-muted;
  }
}

.headerActions {
  display: flex;
  gap: 12px;

  :global {
    .ant-btn {
      font-family: var(--font-display, 'Outfit', sans-serif);
      font-weight: 500;
      border-radius: @radius-md;
      transition: all 0.2s ease;

      &.ant-btn-primary {
        .amber-btn-primary();
        color: @ink-black !important;
        box-shadow: @shadow-glow-amber;

        &:hover {
          filter: brightness(1.1);
          transform: translateY(-1px);
        }
      }

      &:not(.ant-btn-primary) {
        background: @bg-surface;
        border-color: @border-default;
        color: @text-secondary;

        &:hover {
          border-color: @film-amber;
          color: @film-amber;
        }
      }
    }
  }
}

/* 工作流容器 */
.workflowContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* 工作流卡片 */
.workflowCard {
  padding: 24px;
  background: @bg-card;
  border-radius: @radius-lg;
  border: 1px solid @border-subtle;
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  &:hover {
    border-color: rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
    box-shadow: @shadow-glow-amber;
  }

  .cardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;

    h4 {
      font-family: var(--font-display, 'Outfit', sans-serif);
      font-weight: 600;
      font-size: 16px;
      color: @text-primary;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 8px;

      .anticon {
        color: @film-amber;
      }
    }
  }

  .cardContent {
    p {
      font-size: 13px;
      color: @text-muted;
      line-height: 1.6;
      margin-bottom: 16px;
    }
  }

  .cardActions {
    display: flex;
    gap: 8px;

    :global .ant-btn {
      font-size: 13px;
      height: 36px;
    }
  }
}

/* 统计卡片 */
.statsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.statCard {
  padding: 20px;
  background: @bg-card;
  border-radius: @radius-lg;
  border: 1px solid @border-subtle;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 16px;

  .statIcon {
    width: 48px;
    height: 48px;
    border-radius: @radius-md;
    background: rgba(212, 165, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: @film-amber;
    border: 1px solid rgba(212, 165, 116, 0.2);
  }

  .statInfo {
    .statLabel {
      font-size: 12px;
      color: @text-muted;
      margin-bottom: 4px;
    }

    .statValue {
      font-family: var(--font-display, 'Outfit', sans-serif);
      font-size: 24px;
      font-weight: 700;
      color: @text-primary;
    }
  }
}

/* 标签 */
:global {
  .ant-tag {
    border-radius: 4px;
    font-size: 11px;
    padding: 2px 8px;
  }

  .ant-tag-blue {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    color: #06b6d4;
  }

  .ant-tag-green {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
  }

  .ant-tag-orange {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
  }
}

/* 响应式 */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .header {
    padding: 16px;
  }

  .titleArea h2 {
    font-size: 22px;
  }

  .headerActions {
    width: 100%;
    flex-direction: column;
  }

  .statsContainer {
    grid-template-columns: 1fr;
  }
}
