/**
 * assets/css/canvas.css
 * 방구석아이들 웹 스튜디오 - 블록 렌더링 및 캔버스 스타일
 * 기본 개발 규칙 1(이모지 배제), 3(키워드 nowrap) 준수
 */

.canvas-block-wrapper {
  position: relative;
  transition: outline 0.15s;
  cursor: default;
}

.canvas-block-wrapper:hover {
  outline: 2px dashed #3182ce;
  outline-offset: -2px;
}

.canvas-block-wrapper.selected {
  outline: 2px solid #2b6cb0;
  outline-offset: -2px;
}

/* 블록 액션 툴바 (마우스 호버 또는 선택 시 표시) */
.block-action-bar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  background-color: #1a202c;
  border-radius: 4px;
  padding: 2px;
  gap: 2px;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.canvas-block-wrapper:hover .block-action-bar,
.canvas-block-wrapper.selected .block-action-bar {
  display: flex;
}

.block-act-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-act-btn:hover {
  background-color: #2d3748;
}

.block-act-btn svg {
  width: 14px;
  height: 14px;
}

/* 1. 네비게이션 블록 */
.blk-header-nav {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.blk-nav-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.blk-nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.blk-nav-link {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}

.blk-nav-phone {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #2b6cb0;
  color: #ffffff;
  text-decoration: none;
}

/* 2. 히어로 배너 블록 */
.blk-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blk-hero-media-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.blk-hero-media-bg video,
.blk-hero-media-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blk-hero-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.blk-hero-h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blk-hero-h2 {
  font-size: 20px;
  font-weight: 700;
  opacity: 0.95;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blk-hero-h3 {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 3줄 문구별 애니메이션 키프레임 */
@keyframes heroSlideDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes heroZoomIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.anim-slide_down {
  animation: heroSlideDown ease-out forwards;
}

.anim-slide_up {
  animation: heroSlideUp ease-out forwards;
}

.anim-fade_in {
  animation: heroFadeIn ease-out forwards;
}

.anim-zoom_in {
  animation: heroZoomIn ease-out forwards;
}

.blk-hero-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #3182ce;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}

/* 3. 카드 섹션 블록 */
.blk-cards-section {
  padding: 50px 24px;
}

.blk-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.blk-section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.blk-section-subtitle {
  font-size: 14px;
  color: #718096;
}

.blk-cards-grid {
  display: grid;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.blk-cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.blk-cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.blk-cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.blk-card-item {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.blk-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blk-card-desc {
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
}

/* 4. 입력 폼 블록 */
.blk-form-section {
  padding: 50px 24px;
}

.blk-form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blk-form-btn {
  width: 100%;
  padding: 12px;
  background-color: #2b6cb0;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

/* 5. 갤러리 미디어 블록 */
.blk-gallery-section {
  padding: 50px 24px;
}

.blk-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.blk-gallery-item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background-color: #f7fafc;
  display: flex;
  flex-direction: column;
}

.blk-gallery-thumb {
  height: 160px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
}

.blk-gallery-info {
  padding: 12px;
  background-color: #ffffff;
}

.blk-gallery-title {
  font-size: 13px;
  font-weight: 700;
}

.blk-gallery-sub {
  font-size: 11px;
  color: #718096;
}

/* 6. SNS 피드형 블록 (인스타그램 형태 청첩장) */
.blk-sns-container {
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.blk-sns-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.blk-sns-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blk-sns-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blk-sns-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blk-sns-username {
  font-size: 13px;
  font-weight: 700;
}

.blk-sns-meta {
  font-size: 11px;
  color: #718096;
}

.blk-sns-image-box {
  width: 100%;
  height: 380px;
  background-color: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
}

.blk-sns-body {
  padding: 14px 16px;
}

.blk-sns-likes {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blk-sns-caption {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.blk-sns-comments {
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blk-comment-row {
  font-size: 12px;
  line-height: 1.4;
}

.blk-comment-author {
  font-weight: 700;
  margin-right: 6px;
}

/* 7. 아코디언 계좌안내 블록 */
.blk-accordion-section {
  padding: 40px 24px;
}

.blk-accordion-box {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blk-accordion-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
}

.blk-accordion-head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  background-color: #f7fafc;
}

.blk-accordion-content {
  padding: 14px 18px;
  border-top: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.btn-copy-account {
  padding: 4px 10px;
  border: 1px solid #cbd5e0;
  background-color: #ffffff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* 8. 위치 오시는길 블록 */
.blk-map-section {
  padding: 40px 24px;
}

.blk-map-card {
  max-width: 700px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.blk-map-visual {
  height: 220px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
}

.blk-map-details {
  padding: 20px;
}

.blk-map-venue {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.blk-map-addr {
  font-size: 13px;
  color: #4a5568;
  margin-bottom: 16px;
}

.blk-map-transit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #718096;
  border-top: 1px solid #edf2f7;
  padding-top: 12px;
}

/* 9. 뉴스 언론사 블록 (조선일보 형태) */
.blk-news-portal {
  padding: 20px 24px;
  background-color: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
}

.blk-news-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid #111111;
  font-size: 12px;
  font-weight: 700;
  color: #666666;
}

.blk-news-breaking {
  background-color: #f7fafc;
  padding: 8px 12px;
  border-left: 3px solid #e53e3e;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0;
}

.blk-news-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.blk-news-headline-box {
  border-right: 1px solid #e2e8f0;
  padding-right: 20px;
}

.blk-news-category {
  font-size: 12px;
  font-weight: 700;
  color: #2b6cb0;
  margin-bottom: 6px;
}

.blk-news-headline-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blk-news-headline-summary {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blk-news-meta-row {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #a0aec0;
}

.blk-news-ranking-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blk-rank-title {
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid #111111;
  padding-bottom: 6px;
}

.blk-rank-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.blk-rank-num {
  font-weight: 800;
  color: #e53e3e;
  font-size: 14px;
}

/* 10. 공정 프로세스 블록 (GL컴퓨터자수 5단계) */
.blk-process-section {
  padding: 50px 24px;
}

.blk-process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.blk-process-card {
  background-color: #ffffff;
  padding: 20px 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.blk-process-step {
  font-size: 20px;
  font-weight: 900;
  color: #2b6cb0;
  margin-bottom: 6px;
}

.blk-process-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blk-process-desc {
  font-size: 11px;
  color: #718096;
  line-height: 1.4;
}

/* 11. 푸터 블록 */
.blk-footer {
  padding: 40px 24px;
  font-size: 12px;
  line-height: 1.6;
}

.blk-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blk-footer-brand {
  font-size: 16px;
  font-weight: 800;
}

.blk-footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0.85;
}

.blk-footer-copy {
  opacity: 0.65;
  margin-top: 8px;
}
