/* header */
.main-header {
  border-bottom: 1px solid var(--color-primary); 
  background-color: var(--color-background-page);
  transition: all 0.3s;
}

.main-header>.top-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.main-header>.top-bar>.site-title{
  color: var(--color-text);
}

.main-header>.top-bar>.header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

/* 언어 선택 드롭다운 */
#lang-select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  background-color: var(--color-background-page);
  color: var(--color-text);
  transition: all 0.3s;
}

/* 언어 선택 드롭다운 포커스 스타일 */
#lang-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

/* 언어 선택 드롭다운 내부 옵션 스타일링 (브라우저마다 제한적일 수 있음) */
#lang-select option {
    background-color: var(--color-background-page);
    color: var(--color-text);
}


/* 다크 모드 토글 버튼 스타일 */
.mode-toggle-btn {
  background-color: var(--color-background-page);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}
.mode-toggle-btn:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}


/* main */
.main-content {
  background-color: var(--color-background-page);
  transition: all 0.3s;
}

.main-content>.desc-bar {
  text-align: center;
  padding: 3rem 1rem;
}

.main-content>.desc-bar>h2 {
  margin-bottom: 1rem;
}

.main-content>.desc-bar>h2,
.main-content>.desc-bar>p {
  color: var(--color-text);
}

.tools-bar>.title-bar {
  margin-left: 1rem;
}

.tools-bar>.title-bar::after {
  display: block;
  content: " ";
  width: 50px;
  height: 3px;
  background: var(--color-border);
  transition: all 0.3s;
  margin-top: 6px;
}


.tools-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.tools-list>.list-item {
  padding: 0.5rem;
  width: 33.3%;
}

.tools-list>.list-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text);
    padding: 15px 20px;
    background-color: var(--color-background-page);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    min-height: 70px;
    max-height: 70px;
}

.tools-list>.list-item>a:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tools-list>.list-item>a>.tool-name {
    font-weight: 600;
}

.tools-list>.list-item>a>.tool-description {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
}


/* footer */
.main-footer {
  border-top: 1px solid var(--color-border); 
  background-color: var(--color-background-page);
  color: var(--color-text);
  transition: all 0.3s;
}

.main-footer>.copyright {
  padding: 1rem;
  font-size: 0.9rem;
}



/* 넓은 화면: 한 줄에 5개 아이템 설정 */
@media (min-width: 767px) {
    .tools-list>.list-item {
        width: 14.285%;
    }
}

