@charset "UTF-8"; /* UTF-8 인코딩 명시 */

/* 헤더 고정 및 스타일 */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 56px;
}

/* 네비게이션 바 스타일 */
.bd-navbar {
    padding: 0.75rem 1.5rem;
}

/* navbar-brand 스타일 */
.navbar-brand {
    font-size: 1.5rem; /* 24px */
    font-family: monospace;
    color: #333;
    padding: 0 0.5rem;
    transition: font-size 0.3s ease;
}

.navbar-brand .brand-highlight {
    color: white;
    font-weight: bold;
    font-size: 1.25em;
}

/* 콘텐츠와 헤더 간 간격 */
.content-wrapper {
    padding-top: 88px;
}

/* Google Translate 스타일링 */
.translate-container {
    text-align: right;
    position: relative;
    max-width: 240px; /* 셀렉트 박스 최대 너비 고정 */
}

.translate-container select {
    appearance: none;
    width: 100%;
    height: 38px;
    padding: 0 30px 0 12px;
    font-size: 15px;
    color: #444;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.translate-container select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.translate-container select::-ms-expand {
    display: none;
}

.translate-container::after {
    content: '\25BC';
    position: absolute;
    right: 12px;
    top: 25%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    pointer-events: none;
}

/* 로더 스타일 */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    display: none;
    z-index: 1001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 반응형 디자인 */
@media (max-width: 991px) {
    /* 태블릿 이하 */
    .header-fixed {
        min-height: 50px;
    }

    .bd-navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem; /* 20px */
    }

    .navbar-brand .brand-highlight {
        font-size: 1.2em;
    }

    .content-wrapper {
        padding-top: 75px;
    }

    .translate-container {
        max-width: 200px;
    }

    .translate-container select {
        height: 34px;
        font-size: 14px;
        padding: 0 25px 0 10px;
    }
}

@media (max-width: 767px) {
    /* 모바일 */
    .header-fixed {
        min-height: 48px;
    }

    .bd-navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.1rem; /* 17.6px */
        padding: 0 0.4rem;
    }

    .navbar-brand .brand-highlight {
        font-size: 1.15em;
    }

    .content-wrapper {
        padding-top: 75px;
    }

    .translate-container {
        max-width: 180px;
    }

    .translate-container select {
        height: 32px;
        font-size: 13px;
        padding: 0 20px 0 10px;
    }

    .translate-container::after {
        right: 10px;
    }
}

@media (max-width: 576px) {
    /* 아주 작은 화면 */
    .header-fixed {
        min-height: 45px;
    }

    .content-wrapper {
        padding-top: 72px;
    }

    .navbar-brand {
        font-size: 1rem; /* 16px */
        padding: 0 0.3rem;
    }

    .navbar-brand .brand-highlight {
        font-size: 1.1em;
    }

    .translate-container {
        max-width: 160px;
    }

    .translate-container select {
        height: 30px;
        font-size: 12px;
    }

    .loader {
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        border-width: 5px;
    }
}