/* =============================================
   Complete Navigation - All Elements
   완전한 네비게이션 (모든 요소 포함)
   Version: v40-complete-nav
   ============================================= */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    z-index: 1000;
}

.nav-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
}

.hamburger-btn:hover span {
    background: var(--gray-600);
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Navigation Menu Links */
.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    flex: 1;
}

.nav-item {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: var(--black);
}

/* Navigation Actions (Icons) */
.nav-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-icon {
    color: var(--black);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.nav-icon:hover {
    color: var(--gray-600);
}

.nav-icon-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Desktop: Show icon text */
@media (min-width: 769px) {
    .nav-icon-text {
        display: inline-block;
    }
}

.nav-icon.download {
    width: 40px;
    height: 40px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-icon.download:hover {
    background: var(--gray-900);
    color: var(--white);
}

/* Diary Button - Same style as download */
.nav-icon.diary {
    width: 40px;
    height: 40px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-icon.diary:hover {
    background: var(--gray-900);
    color: var(--white);
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    padding: 20px 0;
}

.mobile-dropdown.active {
    display: block;
}

.mobile-dropdown .nav-item {
    display: block;
    padding: 12px 40px;
    text-align: left;
}

/* Tablet */
@media (max-width: 1024px) {
    .nav-wrapper {
        padding: 16px 30px;
        gap: 30px;
    }
    
    .nav-menu {
        gap: 30px;
    }
    
    .nav-item {
        font-size: 14px;
    }
    
    .nav-actions {
        gap: 20px;
    }
    
    .nav-icon {
        gap: 10px;
    }
    
    .nav-icon-text {
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-wrapper {
        padding: 12px 16px;
        gap: 12px;
        position: relative;
    }
    
    /* Hamburger button on the left */
    .hamburger-btn {
        order: 1;
        padding: 4px;
    }
    
    /* Logo in the center */
    .logo {
        font-size: 18px;
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Actions on the right */
    .nav-actions {
        order: 3;
        margin-left: auto;
        gap: 8px;
    }
    
    /* Hide desktop menu, show in dropdown */
    .nav-menu {
        display: none;
    }
    
    .nav-icon {
        font-size: 16px;
    }
    
    .nav-icon-text {
        display: none;
    }
    
    .nav-icon.download {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .nav-icon.diary {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    /* Hide search icon on mobile */
    .nav-icon[href="search.html"] {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 10px 12px;
        gap: 8px;
        position: relative;
    }
    
    /* Hamburger button on the left */
    .hamburger-btn {
        order: 1;
        padding: 4px;
    }
    
    .hamburger-btn span {
        width: 18px;
    }
    
    /* Logo in the center */
    .logo {
        font-size: 16px;
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Actions on the right */
    .nav-actions {
        order: 3;
        margin-left: auto;
        gap: 6px;
    }
    
    .nav-icon {
        font-size: 14px;
    }
    
    .nav-icon.download {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .nav-icon.diary {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    /* Hide search icon on mobile */
    .nav-icon[href="search.html"] {
        display: none;
    }
    
    /* Hide login/signup text and reduce icon */
    .nav-icon[href="login.html"],
    .nav-icon[href="signup.html"] {
        font-size: 16px;
    }
}
