/* ============================================================
   nav.css — Shared styles for fonts, reset, and navigation
   Imported by both index.html and carousel.html
   ============================================================ */

/* ===== Fonts ===== */
@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/Helvetica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica';
    src: url('../fonts/Helvetica-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Hiragino Sans';
    src: url('../fonts/Hiragino Kaku Gothic Pro W3.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Hiragino Sans';
    src: url('../fonts/Hiragino Kaku Gothic Pro W6.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Base ===== */
body {
    font-family: 'Helvetica', 'Hiragino Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ===== Header ===== */
header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    width: 100%;
    position: relative;
    z-index: 100;
}

.container-header {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Logo ===== */
.nav-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-container img {
    height: 60px;
    border-radius: 8px;
    padding: 2px 8px;
}

.logo-text {
    font-size: 20px;
    color: #666;
    font-weight: normal;
}

/* ===== Nav right column ===== */
.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.nav-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

/* ===== Search bar ===== */
.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid #555;
}

.search-bar input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 160px;
}

.search-bar button {
    background: #555;
    border: none;
    color: white;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
}

/* ===== Language selector ===== */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #555;
}

.lang-selector span {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}

.lang-selector span:hover {
    color: #000;
}

.lang-dropdown-container {
    position: relative;
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    padding: 8px 0;
    margin-top: 8px;
    display: none;
    z-index: 1000;
}

.lang-list.active {
    display: block;
}

.lang-list li {
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-list li:hover {
    background: #f5f5f5;
}

.lang-icon {
    width: 20px;
    height: auto;
    display: block;
}

.lang-selector i {
    font-size: 18px;
}

.globe-icon {
    width: 20px;
    height: auto;
    display: block;
}

/* ===== Main nav links ===== */
.main-nav {
    display: flex;
    gap: 28px;
    font-size: 15px;
}

.main-nav a {
    text-decoration: none;
    color: #444;
    font-weight: normal;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #000;
}

/* ===== Responsive nav ===== */
@media (max-width: 900px) {
    .container-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }

    .nav-right {
        width: 100%;
        align-items: flex-start;
    }

    .nav-top-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 14px;
    }
}
