/* 블로그 상세 페이지 전용 스타일 */
/* 헤더/네비게이션은 styles.css 사용 */

:root {
  --primary-blue: #3b70ff;
  --dark-blue: #2563eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
}

/* 히어로 섹션 */
.hero-section-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-section {
  width: 100%;
  max-width: 1280px;
  height: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
  padding: 0 128px;
}

.hero-bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.hero-content {
  position: absolute;
  top: 190px;
  width: 100%;
  max-width: 1280px;
  padding: 0 128px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  z-index: 1;
}

.hero-title {
  color: white;
  font-size: 60px;
  font-weight: 700;
  line-height: 90px;
  text-align: left;
  font-family: "Pretendard", sans-serif;
}

.hero-date {
  position: absolute;
  right: 128px;
  bottom: 62px;
  color: white;
  font-size: 24px;
  font-weight: 400;
  z-index: 1;
}

/* 본문 섹션 */
.content-section-wrapper {
  width: 100%;
  background: white;
  display: flex;
  justify-content: center;
}

.content-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin: 0 auto;
  padding: 96px 128px;
}

/* 본문 스타일 */
.content-container p {
  color: #737373;
  font-size: 20px;
  font-weight: 400;
  line-height: 36px;
  font-family: "Pretendard", sans-serif;
  margin-bottom: 5px;
  text-align: left;
}

.content-container h2 {
  color: #18181b;
  font-size: 36px;
  font-weight: 700;
  font-family: "Pretendard", sans-serif;
  margin-top: 24px;
  margin-bottom: 12px;
  text-align: left;
}

.content-container h3 {
  color: #18181b;
  font-size: 28px;
  font-weight: 600;
  font-family: "Pretendard", sans-serif;
  margin-top: 16px;
  margin-bottom: 8px;
  text-align: left;
}

.content-container h4 {
  color: #18181b;
  font-size: 24px;
  font-weight: 600;
  font-family: "Pretendard", sans-serif;
  margin-top: 12px;
  margin-bottom: 6px;
  text-align: left;
}

.content-container strong {
  color: #18181b;
  font-weight: 700;
}

.content-container a {
  color: #3b70ff;
  text-decoration: underline;
  transition: color 0.3s;
}

.content-container a:hover {
  color: #2563eb;
}

.content-container hr {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  border: none;
  margin: 48px 0;
}

.content-container ul,
.content-container ol {
  color: #737373;
  font-size: 18px;
  line-height: 30px;
  margin: 20px 0;
  padding-left: 40px;
}

.content-container li {
  margin-bottom: 12px;
}

.content-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px auto;
  display: block;
}

.content-container figure {
  margin: 32px auto;
  text-align: center;
}

.content-container figure img {
  margin: 0 auto;
}

.content-container blockquote {
  border-left: 4px solid #3b70ff;
  padding-left: 24px;
  margin: 32px 0;
  color: #535355;
  font-style: italic;
}

.content-container code {
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 18px;
}

.content-container pre {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.content-container pre code {
  background: none;
  padding: 0;
}

/* 표 스타일 */
.content-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px auto;
  background: white;
  border: 1px solid #e5e7eb;
}

.content-container thead {
  background: #f3f4f6;
}

.content-container th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: #18181b;
  font-size: 18px;
  border-bottom: 2px solid #d1d5db;
  border-right: 1px solid #e5e7eb;
}

.content-container th:last-child {
  border-right: none;
}

.content-container td {
  padding: 16px 20px;
  color: #737373;
  font-size: 18px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  line-height: 1.6;
}

.content-container td:last-child {
  border-right: none;
}

.content-container tbody tr:nth-child(even) {
  background: #f9fafb;
}

.content-container tbody tr:hover {
  background: #f3f4f6;
}

.content-container blockquote {
  display: none;
}

.content-block {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.content-title {
  color: black;
  font-size: 36px;
  font-weight: 700;
  font-family: "Pretendard", sans-serif;
  text-align: left;
}

.content-subtitle {
  color: #18181b;
  font-size: 28px;
  font-weight: 600;
  font-family: "Pretendard", sans-serif;
  margin-top: 32px;
  margin-bottom: 16px;
  text-align: left;
}

.content-text {
  color: #737373;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  font-family: "Pretendard", sans-serif;
  margin-bottom: 20px;
  text-align: left;
}

.content-text strong {
  color: #18181b;
  font-weight: 700;
}

.content-image {
  width: 100%;
  max-width: 1280px;
  height: auto;
  object-fit: cover;
}

.content-divider {
  width: 100%;
  max-width: 1280px;
  height: 1px;
  background: #e5e7eb;
  border: none;
  margin: 48px 0;
}

/* 액션 버튼 */
.action-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  max-width: 1280px;
  width: 100%;
}

.action-btn {
  width: 384px;
  height: 96px;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #d4d4d4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none !important;
  background: white;
}

.action-btn:link,
.action-btn:visited,
.action-btn:hover,
.action-btn:active {
  text-decoration: none !important;
}

.action-btn:hover {
  border-color: var(--primary-blue);
  background: #f8faff;
}

.action-icon {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.action-text {
  color: var(--gray-600);
  font-size: 24px;
  font-weight: 500;
  font-family: "Pretendard Variable", sans-serif;
  text-decoration: none !important;
}

/* action-button 스타일 (instagram-follower-growth-strategy-2025 이후) */
.action-button {
  width: 384px;
  height: 96px;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #d4d4d4;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.3s;
}

.action-button:link,
.action-button:visited,
.action-button:hover,
.action-button:active {
  text-decoration: none !important;
}

.action-button:hover {
  border-color: var(--primary-blue);
  background: #f8faff;
}

.button-icon {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.button-text {
  color: var(--gray-600);
  font-size: 24px;
  font-weight: 500;
  font-family: "Pretendard Variable", sans-serif;
  text-decoration: none !important;
}

/* 추천 블로그 섹션 */
.related-section {
  width: 100%;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
}

.related-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  padding: 96px 128px;
}

.related-title {
  width: 100%;
  max-width: 1280px;
  text-align: left;
  color: black;
  font-size: 36px;
  font-weight: 700;
  font-family: "Pretendard", sans-serif;
}

.related-grid {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.related-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-8px);
}

.related-card-image-wrapper {
  position: relative;
  width: 100%;
}

.related-card-image {
  width: 100%;
  height: 204px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.new-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 3px 8px;
  background: #2563eb;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: -0.5px;
  font-family: "Pretendard Variable", sans-serif;
}

.related-card-content {
  padding: 28px 20px;
  background: white;
  border-radius: 0 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-card-date {
  color: var(--gray-400);
  font-size: 16px;
  font-weight: 400;
  line-height: 12px;
  font-family: "Pretendard Variable", sans-serif;
}

.related-card-title {
  color: #18181b;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  font-family: "Pretendard", sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-more-blogs {
  min-width: 224px;
  min-height: 64px;
  padding: 20px 48px;
  background: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  font-family: "Pretendard", sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-more-blogs:hover {
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 112, 255, 0.3);
}

/* 반응형 디자인 - 블로그 상세 페이지 전용 */
@media (max-width: 1400px) {
  .hero-section {
    padding: 0 80px;
  }

  .hero-content {
    padding: 0 80px;
  }

  .hero-date {
    right: 80px;
  }

  .content-container {
    padding: 96px 80px;
  }

  .related-container {
    padding: 96px 80px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-section {
    height: auto;
    min-height: 400px;
    padding: 0 40px;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 60px 40px 40px;
  }

  .hero-date {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
  }

  .content-container {
    padding: 60px 40px;
  }

  .related-container {
    padding: 60px 40px;
  }

  .hero-title {
    font-size: 48px;
    line-height: 72px;
  }

  .content-title {
    font-size: 32px;
  }

  .content-text {
    font-size: 18px;
    line-height: 27px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .hero-section {
    height: auto;
    min-height: 300px;
    padding: 0 20px;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 60px 20px 40px;
  }

  .hero-date {
    position: relative;
    right: auto;
    bottom: auto;
    font-size: 14px;
    margin-top: 16px;
    text-align: left;
  }

  .content-container {
    padding: 40px 20px;
  }

  .related-container {
    padding: 40px 20px;
    gap: 40px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 36px;
  }

  .content-container h2 {
    font-size: 24px;
  }

  .content-container h3 {
    font-size: 20px;
  }

  .content-container h4 {
    font-size: 18px;
  }

  .content-container p {
    font-size: 16px;
    line-height: 28px;
  }

  .content-container ul,
  .content-container ol {
    font-size: 16px;
    line-height: 26px;
    padding-left: 24px;
  }

  .content-container table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }

  .content-container th,
  .content-container td {
    padding: 12px 10px;
    font-size: 14px;
  }

  .content-title {
    font-size: 24px;
  }

  .content-subtitle {
    font-size: 20px;
  }

  .content-text {
    font-size: 16px;
    line-height: 26px;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
    gap: 16px;
    margin-top: 32px;
  }

  .action-btn,
  .action-button {
    width: 100%;
    height: auto;
    min-height: 72px;
    padding: 16px;
  }

  .action-text,
  .button-text {
    font-size: 18px;
  }

  .action-icon,
  .button-icon {
    width: 36px;
    height: 36px;
  }

  .related-title {
    font-size: 24px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .related-card-image {
    height: 180px;
  }

  .related-card-content {
    padding: 20px 16px;
  }

  .related-card-title {
    font-size: 17px;
    line-height: 26px;
  }

  .related-card-date {
    font-size: 14px;
  }

  .btn-more-blogs {
    font-size: 18px;
    padding: 16px 32px;
    min-height: 56px;
  }
}


/* 480px 이하 추가 최적화 */
@media (max-width: 480px) {
  .hero-section {
    min-height: 250px;
  }

  .hero-content {
    padding: 40px 16px 30px;
  }

  .hero-title {
    font-size: 20px;
    line-height: 30px;
  }

  .hero-date {
    font-size: 13px;
  }

  .content-container {
    padding: 30px 16px;
  }

  .content-container h2 {
    font-size: 20px;
  }

  .content-container h3 {
    font-size: 18px;
  }

  .content-container p {
    font-size: 15px;
    line-height: 26px;
  }

  .related-container {
    padding: 30px 16px;
  }

  .related-title {
    font-size: 20px;
  }

  .action-btn,
  .action-button {
    min-height: 64px;
    padding: 14px;
  }

  .action-text,
  .button-text {
    font-size: 16px;
  }
}
