/* ════════════════════════════════════
   07-ai.css — AI 활용 섹션
   Room D(카드뉴스)와 Contact 사이. About Me의 세로 레일 모티프는 가져오되
   구성은 완전히 다르게 — 도구 카드 + 변화 카드로 박스화
   ════════════════════════════════════ */

.ai-mag {
  background: var(--paper);
  padding: 6rem 2.5rem 8rem;
  position: relative;
}
.ai-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
}

/* 좌측 세로 레일은 About Me의 .mag-rail을 그대로 재사용(같은 코드, 같은 위치) —
   .ai-mag가 position:relative라 About의 .mag-rail(position:absolute;left:0;top:50%)이
   여기서도 동일하게 작동함. 별도 CSS 불필요 */

.ai-main {
  flex: 1;
  min-width: 0;
}

/* 상단 헤더 줄 — 섹션 번호 / 타이틀 / 우측 페이지네이션 힌트 */
.ai-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.ai-head {
  margin-bottom: 3rem;
}
.ai-title {
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.ai-title-bar {
  width: 48px;
  height: 3px;
  background: #a88bd8;
  margin-bottom: 1.4rem;
}
.ai-philosophy {
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--ink2);
  max-width: 800px;
}

/* ── 01 사용한 AI 도구 ── */
.ai-section-hdr {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.ai-section-no {
  font-size: 2.5rem;
  font-weight: 600;
  color: #a88bd8;
  line-height: 1;
}
.ai-section-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}

.ai-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 5rem;
}
.ai-tool-card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem 1.3rem;
  background: rgba(255, 255, 255, 0.4);
}
/* ai Tool 아이콘 */
.ai-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  border: 1px dashed var(--rule);
  background: transparent;
  overflow: hidden;
}
.ai-tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ai-tool-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.ai-tool-list {
  list-style: none;
  margin-bottom: 1.1rem;
}
.ai-tool-list li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink2);
  line-height: 1.9;
  padding-left: 0.9rem;
  position: relative;
}
.ai-tool-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--ink2);
  opacity: 0.6;
}
.ai-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ai-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 5px;
}

/* 도구별 브랜드 컬러 — 태그 텍스트/테두리 색상만 (아이콘 배경은 이제 이미지 자리라 색 없음) */
.tool-chatgpt .ai-tag { color: #0e8f6f; }
.tool-claude .ai-tag { color: #c05f3c; }
.tool-gemini .ai-tag { color: #4258c9; }
.tool-figma .ai-tag { color: #9146d6; }
.tool-figjam .ai-tag { color: #6c4fe0; }

/* ── 02 AI를 통해 얻은 변화 ── */
.ai-results {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.ai-result-card {
  text-align: left;
  padding: 0 0.6rem;
}
.ai-result-icon {
  width: 56px;
  height: 56px;
  margin: 0 0 1rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a88bd8;
  font-size: 2rem;
}
.ai-result-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #a88bd8;
  display: inline-block;
}
.ai-result-desc {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink2);
  margin-top: 0.8rem;
  text-align: left;
}

/* 반응형 */
@media (max-width: 1200px) {
  .ai-tools {
    grid-template-columns: repeat(3, 1fr); /* 태블릿: 1줄에 3개 */
  }
  .ai-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .ai-mag {
    padding: 4.5rem 1.8rem 5rem;
  }
  .ai-inner {
    gap: 0;
  }
  .mag-rail {
    display: none;
  }
}

@media (max-width: 768px) {
  .ai-tools {
    grid-template-columns: repeat(2, 1fr); /* 모바일: 1줄에 2개 */
    gap: 1rem;
  }
  .ai-results {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .ai-title {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
  }
  .ai-philosophy {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .ai-mag {
    padding: 3.5rem 1.2rem 4rem;
  }
  .ai-tool-card {
    padding: 1.3rem 1.1rem;
  }
  .ai-section-no {
    font-size: 2rem;
  }
  .ai-section-title {
    font-size: 1.3rem;
  }
}