/* ==========================================
   Easy Start Page 전용 스타일
   ========================================== */

/* 이미지 그리드 스타일 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

/* OCR 이미지 그리드 (단일 이미지 가운데 정렬) */
#ocrImagePreview .image-grid {
  display: flex;
  justify-content: center;
}

/* image-card 스타일 (ocr-start용) */
.image-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-default);
  background: var(--bg-surface);
  max-width: 300px;
  margin: 0 auto;
}

.image-card img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
}

.image-card-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px !important;
  height: 28px !important;
  font-size: 16px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  padding: 0 !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
}

.image-card-remove:hover {
  background: rgba(255, 0, 0, 1);
}

.image-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid #E5E7EB;
}

.image-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.image-item .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #28A745;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

.image-item .remove-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px !important;
  height: 25px !important;
  font-size: 13px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  padding: 0;
  min-width: 25px;
  min-height: 25px;
  max-width: 25px;
  max-height: 25px;
}

.image-item .remove-btn:hover {
  background: rgba(255, 0, 0, 1);
}

/* 파일 업로드 박스 호버 효과 - 제거됨 */

/* ==========================================
   Easy Start Page - Main Structure
   ========================================== */

.Main {
  width: auto;
  height: auto;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: inline-flex;
}

.LayoutMust {
  width: 1440px;
  height: 40px;
  opacity: 0;
}

.EasyStartFixing {
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  margin-top: 80px;
}

.Background {
  width: 100%;
  min-height: calc(100vh - 80px);
  padding-top: 60px;
  padding-bottom: 40px;
  background: var(--bg-muted);
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  display: flex;
}

/* Step 컨테이너 내부 간격 */
#step1Container,
#step2Container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Step2 컨테이너 내부 요소들 중앙 정렬 */
#step2Container .Filebox,
#step2Container #uploadedImagesContainer,
#step2Container .Contentbox,
#step2Container .Recommendbtn {
  margin-left: auto;
  margin-right: auto;
}

/* ocr-start 페이지 요소들 간격 */
#step2Container #fileBox {
  margin-bottom: 24px;
}

#step2Container #uploadedImagesContainer {
  margin-bottom: 24px;
}

#step2Container .Contentbox {
  margin-bottom: 24px;
}

/* Title Area */
.title-area {
  text-align: center;
  margin-bottom: 24px;
  max-width: 888px;
  padding: 0 16px;
}

.title-main {
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--text-inkstone);
  font-size: 30px;
  font-family: Roboto;
  font-weight: 700;
  line-height: 36px;
  word-wrap: break-word;
}

.title-sub {
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--text-default);
  font-size: 18px;
  font-family: Roboto;
  font-weight: 400;
  line-height: 28px;
  word-wrap: break-word;
  margin-top: 8px;
}

/* File Upload Box */
.Filebox {
  width: 100%;
  max-width: 888px;
  min-height: 172px;
  padding: 34px;
  border-radius: 12px;
  outline: 2px dashed var(--border-default);
  outline-offset: -2px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-surface);
  box-sizing: border-box;
}

.MarginWrap {
  padding-top: 12px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.upload-text-main {
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--text-inkstone);
  font-size: 16px;
  font-family: Roboto;
  font-weight: 500;
  line-height: 24px;
  word-wrap: break-word;
}

.upload-text-sub {
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--text-slate);
  font-size: 12px;
  font-family: Roboto;
  font-weight: 400;
  line-height: 16px;
  word-wrap: break-word;
}

/* Uploaded Images Container */
.uploaded-images-container {
  display: none;
  width: 100%;
  max-width: 888px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}

.uploaded-images-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-inkstone);
}

/* Content Box */
.Contentbox {
  width: 100%;
  max-width: 888px;
  background: var(--bg-contentbox);
  border-radius: 12px;
  padding: 25px 10px 12px 10px !important;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  gap: 8px !important;
}

.content-label {
  width: calc(100% - 10px);
  color: var(--text-inkstone);
  font-size: 14px;
  font-family: Roboto;
  font-weight: 500;
  line-height: 20px;
  margin: 0;
  padding: 0;
}

.Textarea {
  width: calc(100% - 10px);
  position: relative;
  background: var(--bg-textarea);
  border-radius: 12px;
  border: 1px solid var(--border-default);
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
}

.Textarea textarea {
  width: 100%;
  height: 218px;
  padding: 13px 17px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 16px;
  font-family: Inter;
  font-weight: 500;
  line-height: 24px;
  box-sizing: border-box;
  margin: 0;
}

.Div69 {
  width: calc(100% - 10px);
  justify-content: flex-end;
  align-items: center;
  display: flex;
  margin: 0;
}

.Textcnt {
  text-align: right;
  color: var(--text-slate);
  font-size: 12px;
  font-family: Roboto;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Recommend Button */
.Recommendbtn {
  width: 100%;
  max-width: 888px;
  height: 56px;
  padding: 16px 32px;
  background: var(--primary-brand);
  border-radius: 12px;
  border: none;
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: not-allowed;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.Recommendbtn:not(:disabled) {
  cursor: pointer;
}

.recommend-btn-text {
  text-align: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  color: var(--text-inkstone);
  font-size: 16px;
  font-family: Roboto;
  font-weight: 500;
  line-height: 24px;
  word-wrap: break-word;
}

/* 텍스트 영역 포커스 효과 */
.Textarea:focus-within {
  border-color: var(--primary-brand) !important;
  box-shadow: 0 0 0 3px rgba(255, 224, 134, 0.2);
}

/* 버튼 활성화 상태 - 호버 효과 제거됨 */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
  .EasyStartFixing [data-layer="사진과 텍스트를 입력하세요-48"] {
    font-size: 26px !important;
    line-height: 34px !important;
  }

  .EasyStartFixing [data-layer="AI가 분석하여 최적의 숏폼을 추천해드립니다-51"] {
    font-size: 16px !important;
    line-height: 24px !important;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
  }

  .image-item img {
    height: 110px;
  }

  .Filebox {
    padding: 24px !important;
    min-height: 140px !important;
  }

  .Textarea textarea {
    height: 180px !important;
  }

  /* 모든 메인 컨테이너 여백 조정 */
  .Filebox,
  #uploadedImagesContainer,
  .Contentbox,
  .Recommendbtn {
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
  .EasyStartFixing [data-layer="사진과 텍스트를 입력하세요-48"] {
    font-size: 22px !important;
    line-height: 28px !important;
    padding: 0 16px;
  }

  .EasyStartFixing [data-layer="AI가 분석하여 최적의 숏폼을 추천해드립니다-51"] {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .EasyStartFixing .Background {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .image-item img {
    height: 90px;
  }

  .Filebox {
    padding: 20px !important;
    min-height: 120px !important;
  }

  .Filebox svg {
    width: 36px !important;
    height: 36px !important;
  }

  .Filebox [data-layer="파일을 드래그하거나 클릭하여 업로드-60"] {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .Filebox [data-layer="최대 10개, 10MB 이하-63"] {
    font-size: 11px !important;
  }

  #uploadedImagesContainer,
  .Contentbox {
    padding: 16px !important;
  }

  #uploadedImagesContainer h5 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  .Contentbox [data-layer="내용 (필수)-67"] {
    font-size: 13px !important;
  }

  .Textarea textarea {
    height: 150px !important;
    font-size: 14px !important;
    padding: 12px 14px !important;
  }

  .Textcnt {
    font-size: 11px !important;
  }

  .Recommendbtn {
    height: 48px !important;
    padding: 12px 20px !important;
  }

  .Recommendbtn .Ai77 {
    font-size: 15px !important;
  }

  /* 모든 메인 컨테이너 여백 조정 */
  .Filebox,
  #uploadedImagesContainer,
  .Contentbox,
  .Recommendbtn {
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

