/* StoryFab X - Script Detail Page Cinema Director Styles */
/* 电影导演工作室风格 - 脚本详情页 */

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

@radius-xl: 16px;

.container {
  padding: 24px;
  max-width: 1200px;
  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: 24px;

  h1 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 28px;
    color: @text-primary;
    margin: 0;
  }

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

/* 信息卡片 */
.infoCard {
  background: @bg-card;
  border-radius: @radius-lg;
  border: 1px solid @border-subtle;
  backdrop-filter: blur(20px);
  padding: 20px;
  margin-bottom: 24px;

  .infoRow {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;

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

      .value {
        font-size: 14px;
        color: @text-primary;
        font-weight: 500;
      }
    }
  }
}

/* 统计 */
.stats {
  margin-top: 16px;
  display: flex;
  gap: 24px;

  .statItem {
    .statLabel {
      font-size: 12px;
      color: @text-muted;
    }

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

/* 标签页 */
.tabs {
  background: @bg-card;
  border-radius: @radius-lg;
  border: 1px solid @border-subtle;
  backdrop-filter: blur(20px);
  margin-bottom: 24px;
  overflow: hidden;

  :global {
    .ant-tabs-nav {
      padding: 0 16px;
      margin-bottom: 0;

      .ant-tabs-tab {
        padding: 16px 20px;
        color: @text-secondary;
        font-family: var(--font-display, 'Outfit', sans-serif);

        &:hover {
          color: @text-primary;
        }

        &.ant-tabs-tab-active {
          .ant-tabs-tab-btn {
            color: @film-amber !important;
          }
        }
      }
    }

    .ant-tabs-ink-bar {
      background: @film-amber;
      box-shadow: @shadow-glow-amber;
    }

    .ant-tabs-content-holder {
      background: @bg-elevated;
    }

    .ant-tabs-content {
      padding: 24px;
    }
  }
}

/* 编辑器容器 */
.editorContainer {
  background: @bg-card;
  border-radius: @radius-lg;
  border: 1px solid @border-subtle;
  backdrop-filter: blur(20px);
  padding: 20px;
  margin-bottom: 24px;
}

/* 脚本内容 */
.scriptContent {
  background: @ink-black;
  border-radius: @radius-md;
  padding: 20px;
  min-height: 300px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 15px;
  line-height: 1.8;
  color: @text-secondary;
  white-space: pre-wrap;
}

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

  .header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .infoRow {
    flex-direction: column;
    gap: 12px !important;
  }

  .stats {
    flex-wrap: wrap;
    gap: 16px;
  }
}
