/* Screen Reader Only 클래스 - 접근성을 위한 숨김 요소 */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip link - 접근성을 위한 메인 컨텐츠 건너뛰기 링크 */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* 추가적인 접근성 개선 CSS */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus 스타일 개선 */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .sr-only {
    /* 고대비 모드에서도 숨김 유지 */
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
  }
}

/* 애니메이션 줄이기 설정을 고려 */
@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* Footer 스타일 (HTML에서 추가된 footer를 위해) */
.site-footer {
  margin-top: 40px;
  padding: 40px 0;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-title {
  color: #1f2937;
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: bold;
}

.footer-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-list,
.usage-guide,
.seo-content,
.keyword-section,
.related-tools {
  margin-bottom: 32px;
}

.feature-list h3,
.usage-guide h3,
.seo-content h3,
.keyword-section h3,
.related-tools h3 {
  color: #1f2937;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-list ul,
.seo-content ul {
  list-style-type: none;
  padding-left: 0;
}

.feature-list li,
.seo-content li {
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.feature-list li:last-child,
.seo-content li:last-child {
  border-bottom: none;
}

.usage-guide ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}

.usage-guide li {
  counter-increment: step-counter;
  padding: 12px 0 12px 40px;
  position: relative;
  border-bottom: 1px solid #e5e7eb;
}

.usage-guide li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 12px;
  background: #2563eb;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.footer-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.footer-links a {
  color: #2563eb;
  text-decoration: none;
  margin: 0 8px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 12px;
  color: #6b7280;
  font-size: 14px;
}

/* 언어 토글 버튼 스타일 개선 */
.lang-button {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.lang-button:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.lang-button:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* 광고 영역 스타일 */
.advertisement {
  margin: 20px 0;
  text-align: center;
}

.advertisement iframe {
  max-width: 100%;
  height: auto;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .footer-content {
    padding: 0 16px;
  }
  
  .footer-title {
    font-size: 20px;
  }
  
  .usage-guide li {
    padding-left: 32px;
  }
  
  .usage-guide li::before {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}